March 8th, 2010, 7:27 pm
Dear all,I have an issue with bbg/vba. I can download any data i want, using the functions above, but it is a lot slower than using "BDP" fonctions in worksheets (which are, unfortunately, asynchronous)what I want to download is:opt_chain for 1 underlying (let's say: sx5e index)and then, for all option tickers: px_bid, px_ask, px_mid etc...I simply wanted to know if it was possible to do a "one shot" request using the bbg api, to accelerate the process (instead of iterating the bbg function for every option ticker)Thank you. NB: problem solved! using the following code: bbg_Ticker2 = Array("APV US 03/20/10 C125 Equity", "APV US 03/20/10 C130 Equity", "APV US 03/20/10 C135 Equity") bbg_Fields2 = Array("OPT_EXPIRE_DT", "OPT_PUT_CALL", "OPT_STRIKE_PX", "PX_BID", "PX_ASK", "PX_MID") bbg_Result2 = vbEmpty bbg_Result2 = bbControl.SynchReq(bbg_Ticker2, bbg_Fields2)Public Function SynchReq(vtSecurity As Variant, vtFields As Variant) As Variant SynchReq = objBloomberg.BLPSubscribe(vtSecurity, vtFields)End Functionedit 2: actually, it is still not very efficient. for a reason that i ignore, if the "bbg_Ticker2" is composed of opt_chain (ie: 2000 options on sx5e), it takes about 3 minutes to download everything! i'll ask bloomberg help during lunch time, but right now, i don't have access to bbg anymoredid you ever notice this problem ?thank you
Last edited by
Moriaben on March 8th, 2010, 11:00 pm, edited 1 time in total.