Closed travis-leith closed 2 years ago
Looks like you are passing in new year's day to bdp, but the 12th in excel.
Correcting for the date, the code works as expected:
library(Rblpapi)
blpConnect()
bdp("AMS LN Equity","VWAP_VOLUME", overrides = c(VWAP_START_DT = "20211201", VWAP_END_DT = "20211201"))
#> VWAP_VOLUME
#> AMS LN Equity 120502
Some of this code is old. I have since written code where I use anytime::anydate
to reliably go from a text of date in just about any format to a Date
object. (And that use case was one of the motivations for anytime
as I got tired of having to spec dates when most people automagically write something close enough to ISO 8601 standards....
We could do the same here at the cost of an added dependency (or use a helper function shadowing that idea if we like the approach but hate the dependency).
sorry about this, silly mistake on my part.
No worries, stuff happens. We all have overlooked a bad option setting here or there before.
For the following variations, I get no result
But in Excel, I get a result
I can do what I need to get done in Excel, but I thought I'd report the discrepancy here.