MLS
MLS

Reputation: 112

How to get Security description using Rblpapi?

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)

Upvotes: 0

Views: 112

Answers (1)

Emmanuel Hamel
Emmanuel Hamel

Reputation: 2213

You can consider the following approach :

library(Rblpapi)
con <- blpConnect()

ovrr <- c("SECURITY_NAME_LANG" = "1")
bdp(securities = "bloomberg ticker", fields = "CIE_DES", overrides = ovrr)

Upvotes: 0

Related Questions