OHLCV, indicator, event, and runtime types used by StockChart.
Import
importtype { OHLCVData } from"@sixtyfold/stock";
Use the public entry point shown above.
CandleStyle
Style for rendering price data
Import@sixtyfold/stock·type
type CandleStyle = "filled" | "hollow" | "ohlc"
KeyboardAnnouncementMessages
Localizable announcements emitted after keyboard chart actions.
Import@sixtyfold/stock·interface
interface KeyboardAnnouncementMessages
Member
Definition
Description
panLeft?
string | undefined
Pan left text.
panRight?
string | undefined
Pan right text.
reset?
string | undefined
Reset text.
selectionCancelled?
string | undefined
Selection cancelled text.
viewport?
string | undefined
Optional viewport context appended after a successful pan, zoom, or reset. The placeholders {startPercent}, {endPercent}, and {spanPercent} are replaced with positions relative to the complete data range. Set an empty string to announce only the action message.
zoomIn?
string | undefined
Zoom in text.
zoomOut?
string | undefined
Zoom out text.
OHLCVData
Six aligned ordered timestamp, OHLC, and volume columns.
Import@sixtyfold/stock·interface
interface OHLCVData
Member
Definition
Description
close
Float64Array<ArrayBufferLike>
Closing price column aligned by index with the OHLCV timestamps.
high
Float64Array<ArrayBufferLike>
Upper bound values aligned by index with X and the matching lower-bound column.
length
number
Number of active aligned rows to read from the supplied data columns.
low
Float64Array<ArrayBufferLike>
Lower bound values aligned by index with X and the matching upper-bound column.
open
Float64Array<ArrayBufferLike>
Opening price column aligned by index with the OHLCV timestamps.
timestamp
Float64Array<ArrayBufferLike>
Unix timestamps (ms). Ascending and descending input are accepted.
volume
Float64Array<ArrayBufferLike>
Volume column aligned by index with the OHLCV timestamps and price columns.
OverlayErrorCallback
Called when an overlay update has one or more resolution or delivery failures.
Import@sixtyfold/stock·type
type OverlayErrorCallback = (error: ChartOverlayError) => void
RendererErrorCallback
Called once when the chart renderer fails and is about to be torn down.
Import@sixtyfold/stock·type
type RendererErrorCallback = (error: ChartRendererError) => void
RendererFailurePhase
Stage at which a chart renderer stopped working.
Import@sixtyfold/stock·type
type RendererFailurePhase = "initialization" | "runtime"
StockCandleBatch
One transferable aligned OHLCV column batch used during streaming installation.
Import@sixtyfold/stock·interface
interface StockCandleBatch
Member
Definition
Description
close
Float64Array<ArrayBufferLike>
Closing price column aligned by index with the OHLCV timestamps.
high
Float64Array<ArrayBufferLike>
Upper bound values aligned by index with X and the matching lower-bound column.
low
Float64Array<ArrayBufferLike>
Lower bound values aligned by index with X and the matching upper-bound column.
open
Float64Array<ArrayBufferLike>
Opening price column aligned by index with the OHLCV timestamps.
timestamp
Float64Array<ArrayBufferLike>
Timestamp in Unix epoch milliseconds. Keep it ordered with the other aligned columns.
volume
Float64Array<ArrayBufferLike>
Volume column aligned by index with the OHLCV timestamps and price columns.
StockChartStats
Renderer and aggregation telemetry for the active stock dataset and frame.
Import@sixtyfold/stock·interface
interface StockChartStats
Member
Definition
Description
aggregation
string
Aggregation text.
bufferUsage
number
Buffer usage value.
firstRenderTime
string
First render time text.
fps
number
Fps value.
frameTime
string
Frame time text.
lodBuilt
number
LOD built value.
lodLevel
number
LOD level value.
lodReady
boolean
Whether to enable LOD ready.
lodTotal
number
LOD total value.
renderedCandles
number
Rendered candles value.
renderMode
"worker" | "main"
Selects the render mode.
ringBuffer
boolean
Whether to enable ring buffer.
totalCandles
number
Count reported for total candles in the current stock chart stats snapshot.
totalReceived
number
Count reported for total received in the current stock chart stats snapshot.
visibleCandles
number
Visible candles value.
StockCrosshairIndicatorValue
Fields for stock crosshair indicator value.
Import@sixtyfold/stock·interface
interface StockCrosshairIndicatorValue
Member
Definition
Description
color
string
Stock crosshair indicator value color.
formattedValue
string
Formatted value text.
id
string
Unique identifier for this stock crosshair indicator value.
label
string
Stock crosshair indicator value label.
value
number
Value value.
StockCrosshairMoveDetail
Stock candle and derived values under the active crosshair.
Indicator configurations or computed indicator values associated with stock crosshair move detail; order is preserved for rendering and tooltip display.
screenX
number
Screen X value.
screenY
number
Screen Y value.
timestamp
number
Timestamp in Unix epoch milliseconds. Keep it ordered with the other aligned columns.
StockIndicator
Declarative stock indicator configuration.
Import@sixtyfold/stock·type
type StockIndicator = SMAIndicatorConfig | EMAIndicatorConfig | BollingerBandsIndicatorConfig | VWAPIndicatorConfig
StockIndicatorLineDash
Accepted values for stock indicator line dash.
Import@sixtyfold/stock·type
type StockIndicatorLineDash = "solid" | "dashed" | "dotted"
StockMarkerPosition
Vertical anchor used when positioning a stock marker.
Import@sixtyfold/stock·type
type StockMarkerPosition = "above" | "below" | "price"