Skip to content

parseCotRows ​

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

parseCotRows(body, dataset, limit?): CotRow[]

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

Parses a Socrata COT JSON body into typed rows. Pure and network-free.

Parameters ​

body ​

string

dataset ​

CotDataset

limit? ​

number

Returns ​

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.