resolveCotMarketCodes
Import from: @xbbg/xnews, @xbbg/xnews/catalog
resolveCotMarketCodes(
markets): readonlystring[]
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[]
