Upload a request file to query Bloomberg. A response file will be generated by Bloomberg.
The request file can be user-defined following the Bloomberg Data License documentation or generated with the RblRequestBuilder
function.
The response file needs to be downloaded (see RblDownload
) and parsed (see RblParse
) to import the data in R.
character string representing the request file according to Bloomberg Datalicense documentation. Can be generated with the RblRequestBuilder
function
name assigned to the remote file. Only alphanumeric characters and underscores are allowed. Invalid characters are removed.
logical. Should R report extra information on progress?
A list with components
the request filename
the response filename
if (FALSE) { # \dontrun{
# 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')
)
# Upload the request file
req <- RblUpload(RblRequest)
req
} # }