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
MDS exposes one fixed kline bucket set by the service, not a selectable interval API. The current service config usestimebar_bucket_size_ms = 1000, so one bucket is one second. REST history is capped at 18000 rows per page and the in-memory retention is 7 days of one-second bars.
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.