fetchCotReport
Import from: @xbbg/xnews
Call Signature
fetchCotReport(
family,options?):Promise<DataRelease<CotLegacyRow>>
Defined in: src/sources/cot.ts (declaration: sources/cot.d.ts:76)
Fetches CFTC Commitments of Traders rows as a typed DataRelease.
Without since/until this resolves the dataset's latest report week in one probe request and returns exactly that week's rows. With a date bound it returns rows across the window, newest first, capped by limit (default 5000, Socrata ceiling 50000). Resolves undefined when nothing matches (or limit is 0).
Parameters
family
"legacy"
options?
Returns
Promise<DataRelease<CotLegacyRow>>
Call Signature
fetchCotReport(
family,options?):Promise<DataRelease<CotDisaggregatedRow>>
Defined in: src/sources/cot.ts (declaration: sources/cot.d.ts:77)
Fetches CFTC Commitments of Traders rows as a typed DataRelease.
Without since/until this resolves the dataset's latest report week in one probe request and returns exactly that week's rows. With a date bound it returns rows across the window, newest first, capped by limit (default 5000, Socrata ceiling 50000). Resolves undefined when nothing matches (or limit is 0).
Parameters
family
"disaggregated"
options?
Returns
Promise<DataRelease<CotDisaggregatedRow>>
Call Signature
fetchCotReport(
family,options?):Promise<DataRelease<CotTffRow>>
Defined in: src/sources/cot.ts (declaration: sources/cot.d.ts:78)
Fetches CFTC Commitments of Traders rows as a typed DataRelease.
Without since/until this resolves the dataset's latest report week in one probe request and returns exactly that week's rows. With a date bound it returns rows across the window, newest first, capped by limit (default 5000, Socrata ceiling 50000). Resolves undefined when nothing matches (or limit is 0).
Parameters
family
"tff"
options?
Returns
Promise<DataRelease<CotTffRow>>
Call Signature
fetchCotReport(
family,options?):Promise<DataRelease<CotCitRow>>
Defined in: src/sources/cot.ts (declaration: sources/cot.d.ts:79)
Fetches CFTC Commitments of Traders rows as a typed DataRelease.
Without since/until this resolves the dataset's latest report week in one probe request and returns exactly that week's rows. With a date bound it returns rows across the window, newest first, capped by limit (default 5000, Socrata ceiling 50000). Resolves undefined when nothing matches (or limit is 0).
Parameters
family
"cit"
options?
Returns
Promise<DataRelease<CotCitRow>>
Call Signature
fetchCotReport(
family,options?):Promise<DataRelease<CotRow>>
Defined in: src/sources/cot.ts (declaration: sources/cot.d.ts:80)
Fetches CFTC Commitments of Traders rows as a typed DataRelease.
Without since/until this resolves the dataset's latest report week in one probe request and returns exactly that week's rows. With a date bound it returns rows across the window, newest first, capped by limit (default 5000, Socrata ceiling 50000). Resolves undefined when nothing matches (or limit is 0).
Parameters
family
options?
Returns
Promise<DataRelease<CotRow>>
