How do I run parallel bloomberg blp timeseries?

Hi, I am trying to get multiple intraday securities from bloomberg and noticed that the runtime is extremely long(each timeseries takes about 10-20 seconds). Is there away to run the blp timeseries in parallel to save time since it will take an hour just to run 100-200 securities?
Sample of my code. %Declare ProductList Array
% Grab data (Run timeseries in parallel)
[Data_Trade] = timeseries(blp,Product1,{floor(now)-90,floor(now)-1},5,'Trade');
[Data_Bid] = timeseries(blp,Product1,{floor(now)-90,floor(now)-1},5,'Bid');
[Data_Ask] = timeseries(blp,Product1,{floor(now)-90,floor(now)-1},5,'Ask'); %end parallel computing
%%Run data calculations
Thanks

답변 (1개)

Shashank Prasanna
Shashank Prasanna 2013년 7월 18일

0 개 추천

There is no way for me to test this out since I don't have blp connection, but if you have the parallel computing toolbox, try doing the above in a parfor loop. Have the 'Trade', 'Bid' etc in a variable which can be indexed with the loop variable.

댓글 수: 3

Jon
Jon 2013년 7월 19일
thanks. will try it out!
Jon
Jon 2013년 7월 19일
Tried using spmd with 3 matlab pool workers but getting an error.
TypeTrade = {'Bid','Ask','Trade'};
spmd
a = timeseries(c,Product1,{floor(now)-60,floor(now)-1},5,char(TypeTrade(labindex)));
b = timeseries(c,Product1,{floor(now)-60,floor(now)-1},5,char(TypeTrade(labindex)));
c = timeseries(c,Product1,{floor(now)-60,floor(now)-1},5,char(TypeTrade(labindex)));
end
Error msges(Invalid Property Name)
1) for lab 1,2,3.. Warning: Element(s) of class 'blp' do not match the current constructor definition. The element(s) have been converted to structures.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Bloomberg Desktop에 대해 자세히 알아보기

질문:

Jon
2013년 7월 18일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by