Skip to Content
TutorialsImplement DatafeedOverview

Implement a datafeed

Build a custom data source for the GoCharting chart in three steps: create the widget, serve history, then stream live updates.

Realtime is one of two paths (pick one — not both):

  • subscribeTicks — push trades; the SDK aggregates ticks into the active candle.
  • subscribeBars — push complete OHLCV bars for the chart resolution; the SDK applies them directly (no tick aggregation).

If both are implemented, the SDK prefers ticks and ignores bars.

Tutorial path

StepPageWhat you build
1Widget setupContainer + createChart + stub datafeed
2Datafeed implementationresolveSymbol, getBars, optional searchSymbols / searchSymbolsPaginated
3Streaming implementationsubscribeTicks / unsubscribeTicks or subscribeBars / unsubscribeBars

Prerequisites

  • GoCharting SDK installed (@gocharting/chart-sdk or UMD)
  • A license key (use the demo key for local testing)
  • A backend (or mock) that can return OHLCV history and, for live charts, trade ticks or bars
Last updated on