RblRequestBuilder {RblDataLicense} | R Documentation |
Build a request file to query Bloomberg
Description
The request file is generated according to Bloomberg Data License Documentation. Refer to the Documentation to build the request.
Usage
RblRequestBuilder(header, fields, identifiers, overrides = c())
Arguments
header |
named vector of headers. E.g. c(FIRMNAME = RblUser(), PROGRAMNAME = 'getdata') |
fields |
vector of Bloomberg fields. E.g. c('PX_LAST', 'PX_OPEN', 'PX_HIGH', 'PX_LOW') |
identifiers |
vector of Bloomberg identifiers. E.g. c('SXXE Index', 'SX5E Index') |
overrides |
named vector of Bloomberg overrides. E.g. c('END_DT' = '20100101') |
Value
character string representing the request file. Upload it to query Bloomberg (see RblUpload
)
Examples
## Not run:
# Run RblConnect first
# Build a request file to download the daily closing prices of
# EURO STOXX Index from 2005-01-01 to 2015-12-31.
RblRequest <-
RblRequestBuilder(
header = c(FIRMNAME = RblUser(),
PROGRAMNAME = 'gethistory',
DATERANGE = '20050101|20151231'),
fields = c('PX_LAST'),
identifiers = c('SXXE Index')
)
RblRequest
## End(Not run)
[Package RblDataLicense version 0.2.5 Index]