fmpc_cots_data: Get COTS data

Description Usage Arguments Value Examples

View source: R/other.R

Description

Provides raw data from Commitment of Traders report

Usage

1
2
3
4
5
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

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

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


## End(Not run)

fmpcloudr documentation built on March 2, 2021, 1:06 a.m.