API Reference
createChart
ChartOptions
LayoutOptions
GridOptions
PriceScaleOptions
Chart
Series Methods
Scale Access
Events
Utility
Lifecycle
Series
All series share these common methods:CandleSeries
LineSeries
AreaSeries
ExtendsLineSeries with a gradient fill beneath the line.
LineData shape as LineSeries.
VolumeSeries
Automatically creates a separate pane at 22% of chart height.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
Theoutcome field tells you which side of a binary market this token represents.
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.
