storethat_futures_spot: Retrieves futures spot historical data from from a...

Description Usage Arguments Value Examples

Description

Provided with a set of Bloomberg futures active contract tickers and a time period, retrieves the corresponding futures historical spot data previously stored in a storethat SQLite database. Futures spot data refers to the corresponding cash market.

Usage

1
storethat_futures_spot(file, active_contract_tickers, start, end, verbose)

Arguments

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.

Value

An S4 object of class FuturesSpot.

Examples

1
2
3
4
5
6
7
8
## Not run: 

    storethat_futures_market(type = "spot",
      active_contract_tickers = c("W A Comdty", "KWA Comdty"),
      start = "2000-01-01", end = as.character(Sys.Date()))

  
## End(Not run)

bautheac/pullit documentation built on June 7, 2021, 12:11 p.m.