pdblp allows daily historical Bloomberg requests via:
con = pdblp.BCon(debug=False)
con = start()
df = con.bdh(['SPY Equity'], 'PX_LAST', '20150103', '20150619')
How can intraday price/volume/open interest etc requests be made?
Desired behavior resembling as below, the price on 15 minute intervals.
df = con.bdh(['SPY Equity'], 'PX_Last', ... , periodSelection = 'MINUTE', period=15)
Start time and end time must be in UTC timezone. So a bit of conversions should be made - and need to account for daylight savings as well.
Using
xbbg
instead is much easier:Need the full equity ticker here to find the timezone of exchange.
Have you looked at the intraday request python example? You need to specify the timing in your request.
I'm not exactly sure what you're trying to do, if you want historical intra-day then use the above and add the parameters for intra-day timing in your request. Then parse the output. However, if you're looking to do some function based on the live feed, the way I've done it is to set a cron job on the python script that grabs the rate/security every X minutes and save it into a database. Not sure if you're looking to do a real-time function, or just pull historicals.
IntradayTickRequests are not currently supported in pdblp, but if you don't want to use the main api, within pdblp try this and it should work:
Let me know if I misread your question.