Provides raw data from Commitment of Traders report

fmpc_cots_data(
  cots_sym = "all",
  startDate = Sys.Date() - 30,
  endDate = Sys.Date()
)

Arguments

cots_sym

COTS symbol that can be found in fmpc_cots_symbols. Default is 'all'. Date parameters are only valid with 'all'. Otherwise the full history is pulled.

startDate

filter start date in yyyy-mm-dd format.

endDate

filter end date in yyyy-mm-dd format.

Value

a data frame of cots data

Examples

if (FALSE) { # Must set a valid API token fmpc_set_token('FMPAPIKEY') fmpc_cots_data() }