Skip to content

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? ​

CotFetchOptions

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? ​

CotFetchOptions

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? ​

CotFetchOptions

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? ​

CotFetchOptions

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 ​

CotReportFamily

options? ​

CotFetchOptions

Returns ​

Promise<DataRelease<CotRow>>

Last updated:

xbbg is independent open-source software and is not affiliated with, endorsed by, sponsored by, or approved by Bloomberg Finance L.P.