Closed egghead168 closed 3 years ago
I think the reason are typos in parameter securities
(where an exchange ticker like "US" is missing) and a missing underscore "_" in parameter fields
("PX LAST" should be "PX_LAST"):
library(Rblpapi)
blpConnect()
# not working
bdh("IBM Equity", c("PX LAST", "VOLUME"), start.date = Sys.Date()-30)
# working - adding "US" in securities and "_" in field "PX_LAST"
bdh("IBM US Equity", c("PX_LAST", "VOLUME"), start.date = Sys.Date()-30)
ah, changing "PX LAST" to "PX_LAST" worked. Thanks a lot. If you use Bloomberg API in excel, both will work fine. So I didn't realize they were treated differently here.
Hi,
the following code keeps getting an error. Is it because my blpapi version is not compatible? I believe I'm using blpapi 3.7.1.1.
Thanks.