Skip to main content

API Reference

createChart

ChartOptions

LayoutOptions

GridOptions

PriceScaleOptions


Chart

Series Methods

Scale Access

Events

CrosshairMoveParams:
ClickParams:

Utility

Lifecycle


Series

All series share these common methods:

CandleSeries

Data shape:

LineSeries

Data shape:
Live mode:
Price line overlay:
The price line renders as a dashed horizontal line across the chart with a label on the left and a price badge on the right axis. The Y-axis auto-expands to keep the price line visible.

AreaSeries

Extends LineSeries with a gradient fill beneath the line.
Uses the same LineData shape as LineSeries.

VolumeSeries

Automatically creates a separate pane at 22% of chart height.
Data shape:

TimeScale

Live mode behavior: When live, the chart auto-scrolls to show the latest data. If the user pans or zooms away, the chart remembers and snaps back to live after 4 seconds of idle. This gives users freedom to explore history while keeping the default view current.

Orderbook

OrderbookOptions

BookData


createShortFormOverlay

One-liner to add Polymarket short-form price-to-beat overlays to any live chart. Adds interval buttons, auto-discovers markets, draws a dashed price-to-beat line, and shows live odds with a countdown timer.

ShortFormOverlayOptions

ShortFormOverlay (return type)

What it renders

  • Interval buttons (5m, 15m, 1h) — click to toggle on/off
  • Price-to-beat line — horizontal dashed blue line on the chart
  • Odds display — “24% up · 77% down · 1m35s” with live countdown
  • Auto-rotation — discovers the next market window when the current one expires

PolynodeProvider — MarketInfo

The outcome field tells you which side of a binary market this token represents.
The neg_risk field indicates a multi-outcome event on Polymarket. When provider.event() searches for multi-outcome markets, it prioritizes neg_risk: true markets to find genuine events (elections, World Cup, NBA Finals) rather than binary matches.