0

I just want to get the security description output. Here is the code below just to get the security values.

In my bloomberg terminal it gives the description of "Generic First Corn" so I expect this as a result.

library(Rblpapi)
blpConnect()
bdh <- bdh("c 1 comdty", c('px_last', 'px_open'), start.date=Sys.Date()-31)
print(bdh)
MLS
  • 108
  • 14
  • You are querying the last price and the open price. You need to use another field if you want the description... – assylias Feb 14 '19 at 15:22
  • 1
    I figured it out I just needed to use bdp instead of bdh and pass "NAME" – MLS Feb 18 '19 at 13:32

0 Answers0