Provides raw data from Commitment of Traders report

fmpc_cots_data(
  cots_sym = "all",
  type = c("report", "analysis"),
  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.

type

'report' is the raw data, 'analysis' is analysis of raw reports

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()
fmpc_cots_data('gc','analysis')

}