Release all resources (close socket, abort fetch, clear timers).
Fetch a historical candle range. Resolve with the candles ASC by time.
Called by OHLCVChart if it wants to wire its own reporter after construction.
Start a live stream. onUpdate is called with new/updated candles.
Stop a live stream started by subscribe.
Interface hosts implement to feed the chart with history + live updates.
@rekurt/openkline-coreshipsPollingTransportand the abstractWebSocketTransportbase as concrete starting points, but custom transports are trivially written — the interface has only four methods.Error handling: both
fetchHistoryandsubscribeshould throw (or reject in the async case) on failure; the chart'sDataFeedforwards those errors throughChartConfig.onErrorwith a structuredChartErrorpayload.