Skip to main content

COT


Implementation details​

Class names​

Model nameParameters classData class
COTCOTQueryParamsCOTData

Import Statement​

from openbb_core.provider.standard_models.cot import (
COTData,
COTQueryParams,
)

Parameters​

NameTypeDescriptionDefaultOptional
idstrThe series ID string for the report. Default report is Two-Year Treasury Note Futures.042601True
start_dateUnion[str, date]Start date of the data, in YYYY-MM-DD format.NoneTrue
end_dateUnion[str, date]Start date of the data, in YYYY-MM-DD format.NoneTrue
transformLiteral['diff', 'rdiff', 'cumul', 'normalize']Transform the data as difference, percent change, cumulative, or normalize.NoneTrue
collapseLiteral['daily', 'weekly', 'monthly', 'quarterly', 'annual']Collapse the frequency of the time series.NoneTrue
providerLiteral['nasdaq']The provider to use for the query, by default None. If None, the provider specified in defaults is selected or 'nasdaq' if there is no default.nasdaqTrue

Data​

NameTypeDescription
datedateThe date of the data.