Skip to main content

Example events

perps_tickers:
perps_trades:<instrument>:
perps_book:<instrument>every delivered message is a complete snapshot of the top 20 levels per side. A successful subscription acknowledgement does not guarantee that the first snapshot has arrived. Replace your local book with each message; merging messages as if they were deltas will accumulate stale levels and cross the book. Fetch the REST book if startup requires immediate state:
perps_klines:<instrument>:<interval>:
Candles are [open_time, open, high, low, close, volume, trade_count] — the same layout as REST klines. Each event carries the current candle for the interval, sent only when its contents change (a trade prints, or a new period opens). A candle is final once you see an event with a later open_time for the same instrument and interval. Quiet markets send nothing — silence means no change, not a dropped connection (the 30-second server pings cover liveness).