Provides raw data from Commitment of Traders report
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.
'report' is the raw data, 'analysis' is analysis of raw reports
filter start date in yyyy-mm-dd format.
filter end date in yyyy-mm-dd format.
a data frame of cots data
if (FALSE) {
# Must set a valid API token
fmpc_set_token('FMPAPIKEY')
fmpc_cots_data()
fmpc_cots_data('gc','analysis')
}