Returns
Arguments
Subscription example
Usage Guidelines
- Event ID format varies by platform:
- Polymarket:
<eventSlug>:Polymarket:<exchangeAddress>:<networkId>(e.g.,67284:Polymarket:0xc5d563a36ae78145c45a50134d48a1215220f80a:137) - Kalshi:
<eventSlug>:Kalshi(e.g.,KXMVESPORTSMULTIGAMEEXTENDED-S2026350C4EF9BCE:Kalshi)
- Polymarket:
- Subscribe using
eventIdto receive live bar chart data for a prediction event - Bars are provided across multiple resolutions simultaneously:
min1,min5,min15,min30,hour1,hour4,hour12,day1, andweek1 - Updates stream whenever new trading activity occurs, recalculating affected bars
Troubleshooting Tips
Which resolution should I use for charting?
Which resolution should I use for charting?
min1 for tick-by-tick updates, min5 or min15 for short-term charts (1-hour view), hour1 or hour4 for medium-term (1-day to 1-week view), and day1 or week1 for long-term historical views. Request only the resolutions you need to reduce data volume.What does the timestamp (t) represent?
What does the timestamp (t) represent?
t field is the Unix timestamp marking the start of that bar’s time period. For example, a 5-minute bar with t: 1710345600 covers the period from that timestamp to 5 minutes later (1710345900). Bars are aligned to clean intervals (e.g., :00, :05, :10 for 5-minute bars).How do I interpret OHLC values for liquidity and open interest?
How do I interpret OHLC values for liquidity and open interest?
o is the value at the bar’s start, h is the maximum, l is the minimum, and c is the value at the bar’s end. This helps visualize how capital flow changed over time.What's the difference between volumeUsd and totalVolumeUsd?
What's the difference between volumeUsd and totalVolumeUsd?
volumeUsd is the trading volume that occurred during that specific bar period, while totalVolumeUsd is the cumulative all-time volume for the event up to that bar. Use volumeUsd for bar charts and totalVolumeUsd to show total market size.How often are bars updated?
How often are bars updated?
Do all resolutions always have data?
Do all resolutions always have data?
min1 or min5) while larger resolutions (e.g., hour1, day1) have data. Check for null before rendering.How do I handle bar updates for completed periods?
How do I handle bar updates for completed periods?
lastEventTimestamp to determine freshness.