Description Usage Arguments Value See Also Examples
Provided with a set of Bloomberg futures active contract tickers and a time period, retrieves the corresponding futures historical aggregate data previously stored in a storethat SQLite database. For each individual field, futures aggregate data represents the aggregation of the corresponding field values over all the corresponding term structure contracts.
1 | storethat_futures_aggregate(file, active_contract_tickers, start, end, verbose)
|
file |
a scalar chatacter vector. Specifies the target storethat SQLite database file. |
active_contract_tickers |
a chatacter vector. Specifies the futures active contract Bloomberg tickers to query data for. |
start |
a scalar character vector. Specifies the starting date for the query in the following format: 'yyyy-mm-dd'. |
end |
a scalar character vector. Specifies the end date for the query in the following format: 'yyyy-mm-dd'. |
verbose |
a logical scalar vector. Should progression messages be printed? Defaults to TRUE. |
An S4 object of class FuturesAggregate.
"GFUT <GO>" on a Bloomberg terminal.
The rolls dataset in the
BBGsymbols package
(finRes suite) for details
regarding the roll_type
& roll_adjustment
parameters.
The fields dataset in the BBGsymbols package for details on the Bloomnerg fields used here.
1 2 3 4 5 6 7 8 | ## Not run:
storethat_futures_market(type = "aggregate",
active_contract_tickers = c("W A Comdty", "KWA Comdty"),
start = "2000-01-01", end = as.character(Sys.Date()))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.