A subscribe on the live WebSocket feed can now carry since, a bar time in epoch milliseconds. The feed sends that channel's bars from then on, oldest first, holds any live rows that arrive meanwhile, and then carries on live, so nothing falls between the history and the stream. After a reconnect, subscribe with since set to the last bar you have.
{"op":"subscribe","id":"r1","channels":[{"dataset":"ohlcv","exchange":"binance-futures","interval":"1m","symbols":["perpetual-BTC-USDT:USDT"],"since":1793700000000}]}
- How far back: an hour of 1m to 30m bars, a day of hourly bars and two days of daily bars. A channel always keeps its newest bar, and anything older comes from the REST API.
- Gaps are named. A
replayedframe ends each channel's replay with the bars it covered and any the feed doesn't hold, so you can fill exactly those from REST. - Sized for any client. Frames are at most 32 KB, and one subscribe replays up to 20,000 rows and 4 MB. Past that,
truncatedtells you to fetch the rest. - On every paid plan, for the datasets and intervals your plan streams.