fmpc_cots_data {fmpcloudr}R Documentation

Get COTS data

Description

Provides raw data from Commitment of Traders report

Usage

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


## Not run: 

# Must set a valid API token
fmpc_set_token('FMPAPIKEY')
fmpc_cots_data()


## End(Not run)

[Package fmpcloudr version 0.1.5 Index]