charton API / @chart-on/core / index / DepthCurve
Interface: DepthCurve
Defined in: packages/core/src/numeric/depth.ts:11
The two sides of a depth curve, each sorted by price, ready for setData on a step line.
Properties
asks
asks:
NumericItem[]
Defined in: packages/core/src/numeric/depth.ts:13
bids
bids:
NumericItem[]
Defined in: packages/core/src/numeric/depth.ts:12
crossed
crossed:
boolean
Defined in: packages/core/src/numeric/depth.ts:20
The best bid is at or above the best ask: a crossed or locked book, which a live book only shows for a moment (or when its feed is out of step). The curves are still built as given, so they overlap on the chart; check this to warn, or to wait for the next update.