Skip to main content

cot

Get Commitment of Traders Reports.

Examples​

from openbb import obb
obb.regulators.cftc.cot(provider='nasdaq')
# Get the Commitment of Traders Report for Gold.
obb.regulators.cftc.cot(id='GC=F', provider='nasdaq')
# Enter the report ID by the Nasdaq Data Link Code.
obb.regulators.cftc.cot(id='088691', provider='nasdaq')
# Get the report for futures only.
obb.regulators.cftc.cot(id='088691', data_type=F, provider='nasdaq')

Parameters​

NameTypeDescriptionDefaultOptional
idstrThe series ID string for the report. Default report is Two-Year Treasury Note Futures.042601True
providerLiteral['nasdaq']The provider to use, by default None. If None, the priority list configured in the settings is used. Default priority: nasdaq.NoneTrue

Returns​

OBBject
results : List[COT]
Serializable results.

provider : Optional[Literal['nasdaq']]
Provider name.

warnings : Optional[List[Warning_]]
List of warnings.

chart : Optional[Chart]
Chart object.

extra : Dict[str, Any]
Extra info.

Data​

NameTypeDescription
datedateThe date of the data.