Skip to content

resolveCotMarketCodes ​

Import from: @xbbg/xnews, @xbbg/xnews/catalog

resolveCotMarketCodes(markets): readonly string[]

Defined in: src/sources/cot.urls.ts (declaration: sources/cot.urls.d.ts:50)

Resolves preset symbols, aliases, and raw CFTC contract market codes to a deduplicated code list (presets contribute their historical codes too). Anything that is neither a preset nor code-shaped is a RangeError.

Parameters ​

markets ​

readonly string[]

Returns ​

readonly string[]

Last updated:

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