GET /markets or GET /market/{asset_id} to discover listed markets and book decimals, then use MDS for depth, trades, klines, and tickers.
Raw depth sync
tpluspy parsing
MarketDataClient.
Klines
Candlesticks are 1 second wide by default; passinterval for wider ones. A page holds at most 1500 candlesticks, the same at every interval, so a wide window has to be paged. How far back history reaches depends on the width requested: second-wide candlesticks reach back 7 days, minute-wide ones 90 days, 15-minute ones a year, and hour-wide ones 3 years; 4 hours and wider reach the whole history of the market.
REST:
volume is quote/notional volume: the updater adds trade.price * trade.quantity.
v0 and v1 envelopes
MDS market-data streams send a welcome frame, then bare payloads:tplus.ws.v1 is present in Sec-WebSocket-Protocol; v0 is the bare payload. See WebSocket streams.
Reconnect
On disconnect, re-fetch the matching REST snapshot before applying new WS messages. MDS streams close on broadcast lag without a resync envelope. OMS v1 streams can sendRESYNC_REQUIRED before close code 1013.