Comments (6)
I am not sure. I think I'd want to double check with other API clients and their defaults.
from rblpapi.
Correct me if I'm wrong but doesn't the use of getOption with a default of NULL allow each user to specify their own preferred set of options?
The other concern I can see is if returnAs were put into an options vector then this may break code that relied on the current returnAs option.
from rblpapi.
If you override a default of NULL
with your value ... you get your value? What am I missing?
from rblpapi.
The preferred setting in getBarsOptions in a particular project could differ from the default. I am trying to:
- Use getOption to keep preferred options for a project for getBars across different calls, but still be able to override these by passing a vector of options on a particular call
- Have a default if getBarsOptions is not specified. This could be
NULL
or it could be something else likec("gapFillInitialBar"="TRUE", "adjustmentFollowDPDF"="TRUE")
. I think following DPDF seems to make sense (and may be safer) as a default because that is what the user has set on their terminal. If the default isNULL
then the data returned would not be adjusted for corporate actions irrespective of the DPDF settings. Filling the initial bar is not a necessity for a default
from rblpapi.
We could do that, but I don't want to put an infinity of values into options()
.
As an alternative can you not simply define alternate (local) wrappers:
getBars1 <- function(...) {
getBars(..., options=c("gapFillInitialBar"="TRUE","adjustmentFollowDPDF"="TRUE"))
}
etc possibly setting the option values as function arguments there too?
from rblpapi.
Yes, that is also fine. Will close this.
from rblpapi.
Related Issues (20)
- Installation failure Rblpapi MacOS HOT 6
- How do I connect to Bloomberg Anywhere HOT 1
- include.non.trading.days = TRUE not returning non-trading days. HOT 2
- getBars doesn't work for equities HOT 6
- Hourly OHLCV in subscription and orders HOT 9
- Cannot install with Newer version of R, 4.2.1 HOT 4
- Connection failed using Bloomberg Everywhere version in OS X environment HOT 1
- Remove dependence on fts
- Larger cap for lookupSecurity maximum results HOT 8
- Bdp returns NA value for id_bb_company HOT 4
- Filling holidays historical prices with the last available price HOT 4
- Could I get a Pay Index through Rblpapi? HOT 4
- Downloading Yield Curve Data HOT 1
- Connection funnyness HOT 5
- documenting valid periodicitySelection options, semiannual not supported HOT 3
- Page Data Service HOT 4
- Downloading Credit Default Swaps (CDS) HOT 4
- Is there any plan to update Blpapi headers and run-time? HOT 1
- BQL implementation request HOT 1
- Server Api connection string HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rblpapi.