Skip to main content

Module data

Module data 

Source
Expand description

Core data model: basic types, columnar (SoA) input formats and column storage.

Structs§

BandId
Identifier of a band (fill between two series) in a chart.
BarUpdate
A real-time update for Chart::update_last.
ChangeLog
Generation counter plus a fixed-size log of changed logical index spans.
DeqColumn
A contiguous column with free space at both ends.
DrawingId
Identifier of a drawing.
IdxSpan
Half-open span of logical indices, start..end.
IndicatorId
Identifier of an indicator in a chart.
LayerPluginId
Identifier of a layer plugin in a chart.
OhlcColumns
OHLC(V) series in columnar layout — the input format of set_data and friends.
OhlcLevelView
Read-only view of one level of an OHLC series.
PaneId
Identifier of a pane in a chart.
PriceLineId
Identifier of a price line in a chart.
SeriesId
Identifier of a series in a chart.
TimeIndex
Sorted union of the timestamps of all series, with stable logical indices.
ValueColumns
Single-value series in columnar layout (line, area, histogram).

Enums§

Column
A read-only column of one LOD level: f64 at level 0, f32 above.
DataChange
A data change, as seen by downstream consumers (LOD, indicators).
DataDelta
What changed in a series since a given generation.
SeriesMapping
How the points of one series map to logical indices of the TimeIndex.
ValidationMode
How bars that violate low <= min(open, close) <= max(open, close) <= high are handled. The default is the same in debug and release builds.

Constants§

ANCHOR
Fixed logical index origin for LOD buckets and GPU chunks. Logical indices must stay above it.
MIN_LOD_LEVEL
Lowest LOD level that is built (level 1 is skipped).

Type Aliases§

LogicalIndex
Logical index: position on the global time index. May be negative or beyond the data (empty space). Fractional values address positions between bars.
Timestamp
UTC timestamp in milliseconds. The engine does not handle time zones internally; time zones only affect label formatting.