Use this tag for questions about the Rblpapi package, which is used to retrieve data from the Bloomberg Professional system.
Questions tagged [rblpapi]
46 questions
0
votes
1 answer
using Rblpapi to pull intraday data
I am trying to recreate this excel call in R:
#=@BDH("AAPL Equity","CLOSE","2021-02-17 09:00:00","","BarTp","Trade","BarSz=15","cols=2;rows=33")
However I can't seem to get the syntax right.
How can I pass that info Rblapi:bdh function?
I keep…

Rafael
- 3,096
- 1
- 23
- 61
0
votes
1 answer
Finding GICS Sector using Rblpapi in R
I am trying to replace a column in my data with the output of function: bdp(column + "equity", "GICS_SECTOR NAME")
Require(Rblpapi)
#Create raw data example
ticker <- c(2,3,4,5,6)
sector <- c(NA,NA,NA,NA,NA)
dataraw <- data.frame(ticker,…

hoppekevin
- 1
- 1
0
votes
1 answer
Rblpapi: Is there a way to run these requests as a batch?
My code
library(Rblpapi)
library(purrr)
blpConnect()
tickers = c("AAPL US Equity", "VOD LN Equity")
adjustmentFactors = setNames({
tickers %>% map(function(ticker){
res = bds(
security = ticker
, field = "EQY_DVD_ADJUST_FACT"
…

Chechy Levas
- 2,206
- 1
- 13
- 28
0
votes
1 answer
Download Bloomberg Terminal's information using R
I've been looking for some clear examples for this approach. I know it requires an API in some cases. I've found the libraries Rblpapi and RblDataLicense, but I haven't been able to find a clear example to base on.
I need to download data from the…

MauroLT
- 1
0
votes
0 answers
How to disconnect a Rblpapi::blpConnect()
if I called a con = Rblpapi::blpConnect() and then removed the con variable, or if I just called Rblpapi::blpConnect() without assigning to a variable, then the connection to the Bloomberg is established and remains open even if con is removed. Even…

Courvoisier
- 904
- 12
- 26
0
votes
1 answer
change currency output of bdh
How can I set the currency for this to dollars?
bdh(securities = "SBMAR1 Comdty", fields = 'PX_LAST', start.date = today() - 10, end.date = today())
I tried:
bdh(securities = "SBMAR1 Comdty", fields = 'PX_LAST', start.date = today() - 10, end.date…

Rafael
- 3,096
- 1
- 23
- 61
0
votes
0 answers
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 <-…

MLS
- 108
- 14
0
votes
1 answer
Bloomberg fund price set currency
I get the error message
Error in bdh_Impl(con, securities, fields, start.date, end.date, options, : Sub-element '(null)' does not exist.
It only appears when I try to set options = c("curr"="SEK"). If i delete that row, it downloads the data…

jacob
- 810
- 3
- 9
- 19
0
votes
1 answer
blpapi formula working in excel but not in R
I am trying to substitute some excels that we were using to retrieve some data from bloomberg, with a script in R that can automate some tasks.
Usually with rblpapi I can use the same commands that works for Excel in R, but I have founded one that…

Alx_Roth
- 13
- 5
0
votes
1 answer
Rblpapi overrides setting is unused argument in bds
I am trying to use the Rblpapi package, and am able to pull data and connect to the api easily. However when using overrides I encounter this error everytime.
overrd <- c("START_DT" = "20150101", "END_DT" = "20160101")
bds("CPI YOY Index",…

Carlos_Danger
- 1
- 1
0
votes
1 answer
Rblpapi R Bloomberg data download
I am trying to dowload some FX Forward points data from Bloomberg to calculate some yield differentials. For doing so I need to downlowd the number of days betwen the value date and the settlement date for which the foward points are being priced…

user3690243
- 113
- 1
- 11
0
votes
1 answer
R - Bin stock trade data by second, VWAP trade but clump volume
Not a duplicate of:
Binning Dates in R
or
Binning time data in R
Context
I am using getMultipleTicks in Rblpapi to pull tick data for a stock (TSLA in this example) over a month:
rawData = getMultipleTicks("tsla us equity", eventType = "TRADE",…

Robert Tan
- 634
- 1
- 8
- 21
0
votes
0 answers
Rblpapi - Error
I use Rblpapi package on a PC at work. I've tried to install it on my Mac at home, however, I get the below error. I'm not sure what the problem is... all other packages work. Any suggestions?
library(Rblpapi)
Error in dyn.load(file, DLLpath =…

trdr
- 23
- 1
- 5
0
votes
2 answers
Whats the difference between 'options' and 'overrides' in Rblpapi?
In the documentation here, Bloomberg does not make a distinction in the request. The requests can only have 3 things:securities, fields and overrides.
So what are options? How do they get used? Is this a distinction imposed by Rblpapi? Can someone…

lukehawk
- 1,423
- 3
- 22
- 48
0
votes
1 answer
R and Rblpapi: flexible start dates
I'm using Rblpapi's bdh formula to download Bloomberg time series data and trying to separate the date variable from the rest of the code in order to gain flexibility. I'm struggling, however, to get this working. My code looks as follows:
periods…

mr_bungles
- 77
- 1
- 11