Market Data WebSocket changelog
Consumer-facing history of the client wire (asyncapi.yaml is the contract; this file says what changed, for the people who parse it). Every client-visible change has its section here, newest first, each stating what each side of the deploy window sees.
2.0.13 — 2026-11-05 — Every message is named by an operation, so generators model the data events
The document now names every message in an operation. A code generator builds its types from
the messages that operations name. Until now there were two operations, subscribe and
unsubscribe, both on the session channel. The twelve data channels had none, so a generator
emitted no type for any data event.
- One
receiveper data channel, named after it:receiveTrade,receiveBook,receiveTob,receiveMark,receiveFunding,receiveOi,receiveIndex,receiveCandlestick,receiveTicker,receiveAggBook,receiveVolBookandreceiveHealth, each naming its channel’s one message. Regenerated, your types gainTradeEvent,BookEvent,TobEvent,MarkEvent,FundingEvent,OiEvent,IndexEvent,CandlestickEvent,TickerEvent,AggBookEvent,VolBookEventandHealthEvent, with the types beneath them (TradeEventDataItem,BookEventData,AggLevel, …). receiveSessionnames what the gateway sends on the session’s own lane:opAck,heartbeatEventandsessionOpenedEvent.subscribeandunsubscribename their own request,subscribeRequestandunsubscribeRequest. They named no messages before, which AsyncAPI 3 reads as every message on the channel, so each also claimed the gateway’s acks, heartbeats and opening frame.
No schema changes. Each new type is generated from the schema the document already stated, so a
client that wrote the data events by hand can replace them with the generated ones. The types you
generated before come out unchanged, except a union a generator names after the session
channel (Modelina’s Session): it now holds the three frames the gateway sends on that lane, and
no longer the two requests.
Deploy window: nothing on the socket changes. Both sides of the deploy send and accept the same frames.
2.0.12 — 2026-11-05 — A refused handshake, as a browser sees it
Documentation only: nothing on the wire changes. The description listed the HTTP statuses that
answer a refused handshake as if every client could read them; a browser cannot. Its WebSocket
reports every failed handshake the same way — an error event, then close with code 1006 —
whatever the status. A new paragraph, A refused handshake, in a browser, gives a browser its
rule: stop on a 401 or 403 from POST /ws-tickets, where its refusals are readable, and treat a
handshake that fails on a ticket you have just created as the 503 — a back-off, then a new
ticket used at once, and a cap on the attempts. The ticket scheme’s notes and the Origin
header say the same.
Deploy window: a 2.0.11 member and a 2.0.12 member behave identically.
2.0.11 — 2026-11-04 — Every schema has a title, so generated models are named
Every schema a code generator turns into a type now carries a title, so a generator names its
models from them instead of emitting AnonymousSchema_<n>. The <n> was a position counter, so
any edit to this document renumbered every model after it. The names follow one rule:
- a schema under
components.schemasis its key in PascalCase:tier→Tier,aggBookEntry→AggBookEntry; - a message’s payload is its key under
components.messagesin PascalCase:subscribeRequest→SubscribeRequest,bookEvent→BookEvent. The key, not the message’sname:sessionOpenedEvent(name: sessionOpened) →SessionOpenedEvent; - an inline object or enum is its parent’s title followed by the property name in PascalCase,
with
Itemfor an array’s items:SubscribeRequestParams,OpAckTopicsItem,OpAckTopicsItemState,BookEventData.
Titles are unique within the document. Regenerate your types to pick up the names. The generated types differ from before only in their names.
Deploy window: nothing on the socket changes. Both sides of the deploy send and accept the same frames.
2.0.10 — 2026-10-30 — The ticket is minted at the REST API’s POST /ws-tickets
The ticket scheme and the authentication notes name the REST API’s ticket route
POST /ws-tickets, relative to the REST API’s base URL like every other path; they named it
POST /v1/ws-tickets. Behind https://api.immix.xyz/v1 the full URL is unchanged:
https://api.immix.xyz/v1/ws-tickets. Nothing on this socket changes. Deploy window: where
the trading REST API mints market-data tickets, a member below its contract 0.63.0 serves the
route at /v1/ws-tickets, and from 0.63.0 at /ws-tickets.
2.0.9 — 2026-10-21 — Kraken Futures on the trade, book, top-of-book, mark, open-interest and funding channels
What changed
- A new venue,
kraken_futures, publishes on the existing channels for its BTC, ETH and SOL linear perpetuals and its BTC inverse perpetual (trade,book,tob,mark,oi,funding). The gateway’s derivedcandlestickandtickerchannels therefore carry Kraken Futures instruments too. No message shape changes; the topics carry new instruments. tradeIdis Kraken Futures’ own per-market trade sequence number, which rises by one per print. Prints of block trades — negotiated off the book and booked through it — are not published, so Kraken Futures’ own trade history can show a print this stream does not.- The
bookis the venue’s whole book, opened by a snapshot and kept by deltas that each change one level; it is the busiest book in the platform, over a thousand deltas a second on the BTC perpetual. There is no checksum; the platform re-anchors each book periodically, so expect an occasional fresh snapshot on a healthy book. tobis the venue’s own best bid and offer, refreshed several times a second on active contracts; a contract with an empty side sends notob— and, until it has been quoted on both sides since the platform subscribed it, nomark— until both sides are quoted.markandoipublish when they change, not on every venue tick; an unchanged value is published again after a minute, and each time the platform resubscribes the instrument (a reconnect or a failover).markis rounded to two decimals past the contract’s price increment as its quotes have shown it — for the first moments after a connector start, before a quote has used the increment’s last decimal, amarkcan carry fewer decimals than it settles at.oiis in the contract’s own unit: the base coin on the linear perpetuals, US dollars (one per contract) on the inverse.- Kraken Futures funding settles hourly:
rateis the hourly rate for the period ending atfundingTs,intervalMinutesis60,predictedRateis the venue’s prediction for the next hour andnextFundingTsits end, one hour afterfundingTs.methodis"current_period". The rate is relative (a fraction of the position’s value), as every venue’s is here, never Kraken’s absolute per-contract figure. A message refreshes when the prediction moves — about once a minute — and at each hourfundingTsmoves on andratetakes the valuepredictedRateheld.settledRate,settledTs,minRate,maxRate,premium,interestRateandsettStatearenull.
Across the deploy window
- Before the deploy no
kraken_futuresinstrument is listed or published; after it, the instruments appear in the venue listings and publish on subscribe. Nothing about an existing venue changes.
2.0.8 — 2026-10-16 — Bitget on the trade, book, top-of-book, mark, open-interest and funding channels
What changed
- A new venue,
bitget, publishes on the existing channels for its BTC, ETH and SOL spot pairs against USDT (trade,book,tob) and its BTC, ETH and SOL USDT-margined perpetuals (trade,book,tob,mark,oi,funding). The gateway’s derivedcandlestickandtickerchannels therefore carry Bitget instruments too. No message shape changes; the topics carry new instruments. - A spot pair and its perpetual are different instruments with different ids, though Bitget
itself calls both
BTCUSDT. tradeIdis Bitget’s own trade id. Fills of retail-price-improvement (RPI) orders are not published: that liquidity is available to retail takers only, so Bitget’s own trade history for a market with RPI orders (its SOLUSDT perpetual) shows a few more prints than this stream.- The
bookexcludes RPI liquidity: it is the venue’s plain book, up to 1,000 levels a side, opened by a snapshot and kept by deltas, with no checksum; the platform re-anchors each book periodically, so expect an occasional fresh snapshot on a healthy book. markandoipublish when they change, not on every venue tick; an unchanged value is published again after a minute, and each time the platform resubscribes the instrument (a reconnect or a failover).oiis in the base coin, rounded to 8 decimals.- Bitget funding:
rateis the rate that settles atfundingTs, the venue’s next settlement, andintervalMinutesis the venue’s current funding interval for that perpetual — read both from each message rather than assuming a grid: Bitget can move a contract to a shorter interval when its rates are extreme. Every launch perpetual settles every 8 hours today (480, at 00:00, 08:00 and 16:00 UTC).methodis"current_period", andminRate/maxRateare the venue’s bounds on the rate. The value refreshes about once a minute.predictedRate,nextFundingTs,settledRate,settledTs,premium,interestRateandsettStatearenull. exchTsis the venue’s own time, millisecond-precise.
Each side of the deploy window
- Before: no topic carries a Bitget instrument.
- After: Bitget instruments appear on the channels above as the connector subscribes them; nothing about any other venue’s frames changes.
2.0.7 — 2026-10-16 — KuCoin futures on the mark channel
What changed
marknow serves KuCoin futures — USDT-margined and inverse perpetuals and dated futures (for examplemark.KUCOIN_FUTURES@BTC/USDT:USDT), a readout whenever the venue’s mark moves, at most one a second per instrument. A contract whose mark is not moving sends nothing; silence on this channel is a steady mark, not a lost feed.- The price carries the venue’s own mark precision, which can be finer than the same contract’s trade prices: KuCoin’s BTC/USDT perpetual marks at two decimal places and trades at one.
fundingandoido not serve KuCoin futures yet. The venue’s stream states its live funding rate without the settlement time it applies to, and states open interest on no stream at all; both arrive in a later release.
Each side of the deploy window
- Before: no readout arrives on
markfor a KuCoin futures instrument. - After: KuCoin futures instruments appear on
markas the connector subscribes them; nothing about any other venue’s or channel’s frames changes, and no field, type or frame shape changes.
2.0.6 — 2026-10-16 — KuCoin spot on the book channel
What changed
booknow serves KuCoin spot instruments (for examplebook.KUCOIN@BTC/USDT), under the same sync contract as every other venue: a restatement (snapshot: true) when a book anchors, then chained deltas. A KuCoin spot book is therefore also a source a client can name in anagg_bookorvol_bookcomposition.- A KuCoin spot book is complete only to 100 levels a side. The venue’s public snapshot serves 100 levels; a level deeper than that appears once an update touches it, but a resting level below the snapshot that never changes is not in the book.
- A pair that is not trading still has a book within seconds of the venue connection coming up: the book is seeded from the venue’s snapshot once its subscription is acknowledged, not at the pair’s first change — on a large universe, at the pace the venue’s snapshot budget allows, busy pairs first.
- Like every other venue’s book, a KuCoin spot book states the venue’s own digits: the pair is learned from the venue, can widen, and a widen arrives as a restatement.
Deploy window: before the upgrade no frame arrives on book for a KuCoin spot
instrument, and a composition naming one holds it out of the merge as stale; after, the
book anchors and streams, and such a composition gains the source through an ordinary
recovered frame. Nothing changes for any other venue, and no field, type or frame shape
changes.
2.0.5 — 2026-10-15 — Nado on the trade, book, top-of-book, funding and open-interest channels
What changed
- A new venue,
nado, publishes on the existing channels for its BTC, ETH and SOL perpetuals (quoted and margined in USDT0):trade,book,tob,fundingandoi. The gateway’s derivedcandlestickandtickerchannels therefore carry Nado instruments too. Nado publishes nomark. No message shape changes; the topics carry new instruments. - Every Nado
tradeIdis"0": the venue sends no trade id, and one taker crossing several makers prints several real trades with the same time and often the same price and size. Do not deduplicate Nado prints bytradeId— every print on the stream is a distinct trade.sideis the taker’s. Prints made while the connector’s connection is down are a gap: the venue replays none. - Sizes are the base coin (BTC, ETH, SOL) on every Nado
trade,book,tobandoiquantity. - Nado funding is the hourly rate: Nado settles funding every hour, on the hour.
rateis the rate that settles atfundingTs(8 decimals);fundingTsis the next whole hour (UTC);intervalMinutesis60;methodis"current_period". A position’s funding at eachfundingTsis its notional (size × price) ×rate, not its base-coin size ×rate. Nado itself quotes a 24-hour figure — 24 ×rate. The rate updates about every 20 seconds.predictedRate,nextFundingTs,settledRate,settledTs,minRate,maxRate,premium,interestRateandsettStatearenull. - Nado open interest publishes once an hour, on the hour — the venue states it with each
hourly settlement and nowhere else on its stream — so an
oivalue is up to an hour old. exchTsis the venue’s own time on every Nado frame, nanosecond-precise.- The
bookis opened by a snapshot of up to 100 levels a side and kept by deltas at any depth, with no checksum; the platform re-anchors each book periodically, so expect an occasional fresh snapshot on a healthy book. Atobside the venue reports empty isnull. tradeId’s description now says what it carries on every venue: the venue’s own id, or a 64-bit hash of it where that id is not a number (MEXC, Bybit’s linear trades — so thosetradeIds do not match the venue’s own trade history), and"0"where the venue sends none.
Each side of the deploy window
- Before: no topic carries a Nado instrument.
- After: Nado instruments appear on the channels above as the connector subscribes them; nothing about any other venue’s frames changes.
2.0.4 — 2026-10-14 — BingX spot on the trade, book and top-of-book channels
What changed
- A new venue,
bingx_spot, publishes on the existing channels for its BTC-USDT, ETH-USDT and XRP-USDT spot pairs:trade,bookandtob. The gateway’s derivedcandlestickandtickerchannels therefore carry BingX instruments too. No message shape changes; the topics carry new instruments. - The
bookis the venue’s 1,000-level window, opened by a snapshot and kept by deltas. It carries no checksum, and the platform re-anchors each book periodically, so expect an occasional fresh snapshot on a healthy book. The venue sends an update about every 600 ms that mostly changes nothing, and the platform publishes only the levels that changed, so most BingXbookdeltas carry no levels at all: an empty delta is a healthy book’s heartbeat, and itsprevExchangeSeqchains like any other. - A BingX
tobframe is the venue’s own top of book, which on this venue equals thebook’s first level, stamped a few milliseconds after the book state it restates. - BingX
tradeframes do not replay history, but can arrive out of trade-id order. The venue pushes prints from several threads, so a print can arrive after one with a highertradeId. Order trades by the frame’s sequencing (seq), not bytradeId. - The BingX trade side follows the venue’s taker. A print the venue marks with
m: trueis published as a buy (the buyer took). This differs from the platform’s previous (v2) BingX feed, which published every BingX side inverted: anyone comparing BingX histories across the two will see each side flip. - Some BingX quantities carry digits finer than the market’s step. On some markets
(XRP-USDT is the one seen) the venue renders trade and book quantities from a
floating-point double —
4.248632565484067on a 0.1 step. The platform rounds such a quantity half-even to 8 decimal places, so these quantities state scale 8 and can carry digits finer than the market’s step. The venue’s own REST API rounds the same print to the step, and so did the platform’s previous (v2) BingX feed (4.2for the print above), so a reconciliation against either differs in those digits.
Across the deploy window: before the connector’s first deploy no bingx_spot frames exist.
After it, they appear on the channels above, each market’s first trade frame being its
first live print, with no replayed history. Nothing changes for any other venue.
2.0.3 — 2026-10-14 — Deribit on the trade, book, top-of-book, funding, mark and open-interest channels
What changed
- A new venue,
deribit, publishes on the existing channels for its BTC and ETH perpetuals — the inverseBTC-PERPETUALandETH-PERPETUALand the USDC-marginedBTC_USDC-PERPETUALandETH_USDC-PERPETUAL(and any dated future the catalog serves):trade,bookandtob, andmarkandoifor every instrument,fundingfor the perpetuals. The gateway’s derivedcandlestickandtickerchannels therefore carry Deribit instruments too. No message shape changes; the topics carry new instruments. - Sizes are the venue’s own unit, which differs by instrument: on the inverse instruments
(
BTC-PERPETUAL,ETH-PERPETUAL, the coin-settled dated futures) everytrade,book,tobandoiquantity is US dollars; on the USDC-margined instruments it is the base coin (BTC, ETH).candlestickandtickervolumes follow the same units. exchTsis the venue’s own time on every Deribit frame,funding,markandoiincluded.- Deribit funding is published in 8-hour periods:
rateis the live funding rate, quoted per 8 hours (8 decimals);fundingTsis the end of the current 8-hour period (00:00, 08:00 or 16:00 UTC);intervalMinutesis480;methodis"current_period". The venue accrues funding continuously, so a position’s funding over a period at the live rate isposition × rate, as on every other venue. Deribit itself cash-settles the accrued amount once a day, at 08:00 UTC — a venue fact, not a field.predictedRate,nextFundingTs,settledRate,settledTs,minRate,maxRate,premium,interestRateandsettStatearenull. A dated future publishes nofunding. - The
fundingdescriptions ofrateandfundingTsare reworded to say what they carry on every venue:fundingTsis the end of the funding period the rate applies to, andratethe rate for that period. On every venue before Deribit that end is also the cash settlement; on Deribit it is not (two of every three DeribitfundingTsvalues — 00:00 and 16:00 UTC — settle no cash). A client that books a cash event at eachfundingTsshould book Deribit’s once a day, at 08:00 UTC. - A Deribit
fundingreading is restated at each period’s start even when the rate holds still, so the latest reading’sfundingTsis always the end of the current period, within a second of the venue’s clock. mark,oiandfundingpublish when the venue’s value changes (fundingalso at each period’s start) — often several times a second formarkin a moving market, and not at all while a value holds still. A held value is the latest frame’s.- The
bookis the venue’s whole book — every level, opened by a snapshot and kept by deltas, with no checksum; the platform re-anchors each book periodically, so expect an occasional fresh snapshot on a healthy book. - Deribit trade ids rise by one per trade, per instrument, and
sideis the taker’s. Prints made while the connector’s connection is down are a gap: the venue replays none on reconnect.
Each side of the deploy window
- Before: no topic carries a Deribit instrument.
- After: Deribit instruments appear on the channels above as the connector subscribes them; nothing about any other venue’s frames changes.
2.0.2 — 2026-10-12 — BTSE futures on the trade, book, top-of-book, funding, mark and open-interest channels
What changed
- A new venue,
btse_futures, publishes on the existing channels for its BTC-PERP, ETH-PERP and XRP-PERP perpetuals (and any dated future the catalog serves):trade,bookandtob, andmarkandoifor every instrument,fundingfor the perpetuals. The gateway’s derivedcandlestickandtickerchannels therefore carry BTSE futures instruments too. No message shape changes; the topics carry new instruments. - Every BTSE futures size is a count of contracts —
tradeandbookquantities, thetobsizes andoi. What one contract is worth is the instrument’s contract multiplier in reference data (0.00001 BTC on BTC-PERP, 0.0001 ETH on ETH-PERP, 1 XRP on XRP-PERP); multiply by it for base units.candlestickandtickervolumes are in contracts too. exchTsis"0"on every BTSE futuresfunding,markandoiframe: the venue answers those three without a timestamp of their own, and the platform does not invent one. Order them by the frame’s sequencing (seq,seqTs), never byexchTs.- BTSE futures funding is every 8 hours:
intervalMinutesis480,methodis"current_period",rateis the live rate for the period in progress (8 decimals), andfundingTsis the venue’s own next settlement (00:00, 08:00 or 16:00 UTC).predictedRate,nextFundingTs,settledRate,settledTs,minRate,maxRate,premium,interestRateandsettStatearenull. A dated future publishes nofunding. - The
fundingandoireadouts refresh about every 30 seconds,markabout every 5: the venue streams none of them, so they are read from its REST interface at that cadence. - The
bookis the venue’s window of up to 50 levels a side — a thin market’s side can hold fewer — opened by a snapshot and kept by deltas, with no checksum; the platform re-anchors each book periodically, so expect an occasional fresh snapshot on a healthy book. - BTSE futures
tradeframes behave as BTSE spot’s (2.0.1): the venue’s subscription replay is dropped, so prints made while the connector’s trade connection is down are a gap, and frames can step back in time by a few milliseconds — order trades byseqand, within one frame, by position. - BTSE spot and futures: a repeated opening replay no longer publishes. On BTSE futures’
first live run, a connector that had just started received the venue’s opening replay of
50 old prints twice, the second copy right behind the first, and published that copy;
candlestickandtickercounted those prints twice. A connector that has just started or just taken over after a failover now remembers the replay it dropped and refuses a copy of it, onbtse_spotas onbtse_futures. 2.0.1’s narrow exception still stands: if the venue’s first live frame reaches a just-started connector ahead of the replay, the replay’s old prints can still publish. If you need exactly-once, dedupe bytradeId.
Across the deploy window: before the connector’s first deploy no btse_futures frames
exist. After it, they appear on the channels above — each market’s first trade frame its
first live print, its first funding, mark and oi within one refresh of the connector’s
start. For btse_spot, a connector already running the new version refuses a repeated
opening replay; one still on the previous version, until it restarts, can publish that copy
as before. Nothing changes for any other venue.
2.0.1 — 2026-10-09 — BTSE spot on the trade, book and top-of-book channels
What changed
- A new venue,
btse_spot, publishes on the existing channels for its BTC-USDT, ETH-USDT and XRP-USDT spot pairs:trade,bookandtob. The gateway’s derivedcandlestickandtickerchannels therefore carry BTSE instruments too. No message shape changes; the topics carry new instruments. - The
bookis the venue’s 50-level window, opened by a snapshot and kept by deltas. It carries no checksum, and the platform re-anchors each book periodically, so expect an occasional fresh snapshot on a healthy book. - A BTSE
tobframe and the top level of the BTSEbookcan disagree. The venue computes them in separate pipelines. Usuallytobleads the matching book state by 2–3 ms, but sometobstates never appear in thebookat all (about one in ten within a second). Do not alarm on atobthat differs from the book’s top level. - BTSE
tradeframes do not repeat or replay history, with one narrow exception. The venue opens every trade subscription by replaying old prints, and the connector drops that replay whole. Once it has carried a market’s prints, it also checks every print’stradeIdagainst the ones it already published, so a reconnect never publishes a print twice, even if the venue’s frames arrive out of order. The exception: a connector that has just started, or just taken over after a failover, has nothing to check against yet. If the venue’s first live frame reaches it ahead of the replay, up to 50 old prints can publish, some of them already published before the takeover, andcandlestickandtickercount those twice. We have not seen that ordering on the venue; if you need exactly-once, dedupe bytradeId. The cost of dropping the replay: prints made while the connector’s trade connection is down are a gap. They are not backfilled, except that a reconnect can rarely deliver a few of them late — each once, never a repeat. - BTSE
tradeframes can step back in time by a few milliseconds. The venue sometimes delivers a print after a newer one (seen up to 15 ms back, most often on XRP-USDT during a burst); trade ids never repeat. Order trades by the frame’s sequencing (seq) and, within one frame, by position, not bytradeIdorexchTs.
Across the deploy window: before the connector’s first deploy no btse_spot frames exist.
After it, they appear on the channels above, each market’s first trade frame being its
first live print, with no replayed history (barring the exception above). Nothing changes for any other venue.
2.0.0 — 2026-10-08 — Every session authenticates on its handshake; the auth op is retired
What changed
A session no longer authenticates with an auth message after the socket opens. It
authenticates on the WebSocket handshake, and a refusal is an HTTP status before any socket
exists.
- Present exactly one credential on the handshake.
- A browser puts a ticket in the URL:
?ticket=<ticket>. Create it just before connecting with the REST API’sPOST /v1/ws-ticketsand the body{"stream": "market-data"}. A ticket opens one session, once, within about 10 seconds; create a new one for every connection attempt, reconnects included. A ticket created fortradingis refused here. Creating one can answer503 REGISTRATION_PENDINGwithRetry-Afterwhile a first sign-in’s invitation is being claimed; retry after it. - Any other client sends its access token as
Authorization: Bearer <token>. The token must state an expiry.
- A browser puts a ticket in the URL:
- A refused handshake is an HTTP status, and no socket opens:
400— both credentials at once, a credential repeated, or a malformed request;401— no credential, or one that does not verify or has expired;403— a browserOriginthe deployment does not allow, where it lists allowed origins;503— the member cannot admit the session right now: retry — a browser with a new ticket (create one per attempt), any other client with its bearer token.
- Every session’s first frame is
sessionOpened:{"event":"sessionOpened","msgType":"sessionOpened","data":{"expiresAtNs":"…"}}. Subscribe as soon as it arrives.expiresAtNsis when the access token behind the session expires: a bearer token’s own expiry, or for a ticket the expiry of the token it was created from — never the ticket’s own shortexpiresAtNs— and"0"when there is no such expiry. This stream does not close the session at that time. - The
authop is gone. Anauthmessage is answered like any unknown op:{"op":"error","success":false,"error":"unknown_op"}, and the session stays open. TheopAckvaluesauth(op),auth_requiredandinvalid_token(error) are no longer sent, and the document drops them and theauthRequestmessage. - A session closed with code 4001 before its first frame was opened but could not be handed its credential — rare, and only under load. Reconnect with a fresh credential.
- A ticket needs an admitted user; a bearer token does not. Creating a ticket is admitted
like any REST call, so a user the platform refuses gets no ticket. A bearer token on the
handshake is accepted if it verifies, as the
authop’s token was.
Moving across. A client can be ready before the upgrade, and work against members on either side of it:
- Present a credential on the handshake where you can — a ticket for a browser, the
bearer header for any other client. Before the upgrade, creating a
market-dataticket may be refused; then connect without one. - Keep sending the
authmessage, carrying your access token — not the ticket. A member before this version ignores the handshake’s credential and accepts only the token inauth, so keep the access token at hand for as long as such a member may answer you. - Treat either an
authanswer or asessionOpenedframe as “ready to subscribe”, and ignore anunknown_opanswer to theauthmessage. - Once every member you reach is on this version, stop sending
auth.
Deploy window: a member before this version ignores the handshake’s ticket or
Authorization header, accepts every socket, and needs the auth message before a subscribe
(auth_required otherwise). A member on this version refuses a handshake without a credential
(401), opens the session with sessionOpened, and answers auth with unknown_op. A client
that has moved across as above works against both.
Hyperliquid on the trade, book, top-of-book, funding, mark and open-interest channels
What changed
- A new venue,
hyperliquid, publishes on the existing channels for its BTC and ETH perpetuals and its HYPE/USDC spot pair:trade,book,tob, and for the perpetualsfunding,markandoi. The gateway’s derivedcandlestickandtickerchannels therefore carry Hyperliquid instruments too. No message shape changes; the topics carry new instruments. exchTsis"0"on every Hyperliquidfunding,markandoiframe: the venue sends those three values with no timestamp of their own, and the platform does not invent one. Order them by the frame’s sequencing (seq,seqTs), never byexchTs.- Hyperliquid funding is hourly:
intervalMinutesis60,methodis"current_period",premiumcarries the venue’s premium (truncated to 8 decimals like every rate;nullwhere the venue states none, as on a delisted perp), andfundingTs— the upcoming settlement — is the next top of the hour on the venue’s own clock; the venue never states it.predictedRate,nextFundingTs,settledRate,settledTs,minRate,maxRate,interestRateandsettStatearenull. - A Hyperliquid
fundingreadout can be briefly absent whilemarkandoiflow: the upcoming boundary is derived from the venue’s book clock, so for the first moments after a connector start or reconnect — and while every book on the perp’s venue connection has stopped pushing — the funding readout is withheld, never published with a guessedfundingTs. The clock is shared across the connection’s books: one perp’s quiet book alone withholds nothing, so a perp’sfundingframes are no proof its own book is live.markandoiare not affected. - Hyperliquid open interest is in base units (BTC, ETH) at 2 decimals.
- The
bookis the venue’s 5-level window, restated whole on every push (about twice a second); there are no incremental deltas on this venue. - Hyperliquid
tradeframes never repeat, and never replay history: the venue opens every trade subscription by replaying the coin’s last 30 prints, and the connector keeps that replay off the stream — dropped whole when the connector starts (a deploy, a restart, a failover), filtered to the prints not yet sent on a reconnect inside a running connector. Socandlestickandtickernever count a print twice. The cost: prints made while the connector is down are a gap — they are not backfilled after a restart.
Across the deploy window: before the connector’s first deploy no hyperliquid frames
exist; after it, they appear on the channels above, each coin’s first trade frame being
its first live print — no replayed history. A later deploy or restart leaves a gap of the
prints made while it was down, never a repeat. Nothing changes for any other venue.
Book channels — a pair that is not trading syncs without waiting for its first change
What changed
On the venues whose order books are seeded from a REST snapshot — OKX, Binance spot, Binance USDⓈ-M, KuCoin futures and MEXC, wherever this gateway serves them — a book topic for a pair with no book activity now syncs as quickly as a busy one:
- A quiet pair’s book arrives within seconds of the venue connection coming up, not at
the pair’s first trade or book change. A book subscription that is acknowledged
syncingreceives its snapshot as soon as the book is seeded — on a large venue, at the pace the venue’s snapshot budget allows, busy pairs first. - After a venue reconnect, a quiet pair’s book is seeded again from the venue rather than restated with the levels it held before the connection dropped. Changes made while the connection was down are no longer missing from a quiet pair’s book until its next change.
- A quiet pair’s book is re-seeded on the regular refresh interval (five minutes on these venues), as a busy pair’s already was; before, a quiet pair’s refresh waited for its next change.
Deploy window: before the upgrade, a book topic for a pair that has not changed since
the venue connection came up stays syncing, possibly for minutes or hours; after it, the
snapshot follows within seconds. A busy pair sees no difference, and no channel, field,
type or frame shape changes.
The opening handshake: split and larger upgrades connect, malformed targets are refused, every refusal is a status
What changed
Only the WebSocket opening handshake: the HTTP GET that upgrades to a socket. Nothing after
the 101 changes. The handshake changes in both directions — some upgrades that used to fail
now connect, and one kind that used to connect is now refused:
- Upgrades that used to go unanswered now complete. Before, three well-formed kinds were
never answered and were dropped after 10 seconds: a request split across TCP segments, one
larger than about 1 KB (up to the 8 KB cap below), and one with a
:anywhere in its request line (a query value such as?at=12:00). All three now get their101. - The upgrade request is limited to 8 KB, request line and headers together — a wider
limit than the effective 1 KB before. A larger one is answered
431 Request Header Fields Too Large, with no socket. - A malformed request target is now refused, where it used to connect. A target holding a
space, a control character or an unencoded non-ASCII byte, or one beginning
//, used to complete the upgrade; it is now answered400 Bad Request, with no socket. Percent-encode the target, and never begin it with//. - A request that is not a valid upgrade is answered
400 Bad Requestat once — a non-GETmethod, or a missingUpgrade,ConnectionorSec-WebSocket-Keyheader. Before, it was held for 10 seconds and dropped without a response. - An upgrade that never completes is answered
408 Request Timeoutafter 10 seconds, instead of being dropped silently. - No message from a client is lost or reordered at connect. A frame sent immediately
after the
101is delivered only after the session is open, and is never dropped.
Each side of the deploy window
Both directions, so state them both. Before the deploy, a split, larger-than-1 KB or
:-bearing upgrade is dropped without a response, a non-upgrade request is held and dropped,
and a malformed target connects; after it, the first three connect, the non-upgrade is
400, and the malformed target is refused 400. While pods roll, such a client connects
or fails depending on the pod it reaches. A well-formed upgrade that arrives in one segment,
under 1 KB and with no : in its request line — every first-party client’s — sees no
difference on either side. A browser
cannot read these statuses (a failed upgrade reaches the page only as an error event); a
non-browser client can, and should treat 4xx as “fix the request” and 408 as “retry”.
The mark, funding and oi channels — Bybit perpetuals and dated futures join
What changed
markandoinow serve Bybit’s USDT/USDC-margined and inverse perpetuals and dated futures (for examplemark.BYBIT@BTC/USDT:USDT,oi.BYBIT@BTC/USD:BTC), a readout whenever the venue’s value moves. Bybit options are not served on these channels.- A Bybit open interest is one side of the market. The venue publishes two figures, and
oicarries the one-sidedsingleOpenInterest— the same quantity every other venue’soistates, in the instrument’s own size unit (coin on a USDT/USDC contract, USD contracts on an inverse one). Bybit’s headlineopenInterest, on its own site and API, counts both sides and reads exactly twice as large; a client reconciling against it should halve it, not expect a match. fundingnow serves Bybit’s perpetuals, not its dated futures — a dated future has no funding, and the venue states its rate as empty, so no readout is published for one. A readout arrives when the venue restates any funding field: about once a minute as the live rate moves, and at each settlement boundary.rateis the rate that settles atfundingTs;intervalMinutesis the venue’s stated funding interval;maxRateis the venue’s funding cap andminRateits negation — the venue documents one cap bounding the rate both ways.predictedRate,nextFundingTs,settledRate,settledTs,premiumandinterestRatearenull, andmethodandsettStatearenulltoo: the venue’s stream does not state them, and the settled rate is not yet published for this venue. A client that has only seen readouts carrying them should handlenullhere, as the contract has always allowed.
Deploy window: before the upgrade no readout arrives on mark, funding or oi for a
Bybit instrument; after, they do. Nothing changes for any other venue, and no field, type
or frame shape changes.
The mark and funding channels — Binance USDⓈ-M perpetuals join
What changed
markandfundingnow serve Binance USDⓈ-M perpetuals (mark.BINANCE_USD-M@BTC/USDT:USDT,funding.BINANCE_USD-M@BTC/USDT:USDT), one readout a second per instrument. Dated (delivery) contracts on this venue are not served yet.- A Binance USDⓈ-M funding readout carries the live rate and its settlement boundary only.
rateis the rate that settles atfundingTs, andexchTsis the venue’s event time as on every readout; every other field isnull— includingintervalMinutes, which the venue’s stream does not state (the spacing of successivefundingTsvalues gives it, once a boundary has passed), andsettledRate/settledTs, which are not yet published for this venue. A client that has only seen readouts carrying a non-nullintervalMinutesshould handlenullhere, as the contract has always allowed.
Deploy window: before the upgrade no readout arrives on these channels for a Binance USDⓈ-M instrument; after, one does every second. Nothing changes for any other venue, and no field, type or frame shape changes.
USD on the ticker and candlestick channels
What changed
tickergains four fields, all nullable:turnoverUsd1h/turnoverUsd24h— the window’s quote notional (turnover1h/turnover24h) valued in USD at the quote asset’s rate current at the frame’s frontier (asOf), the exact product rendered at the notional’s scale plus the rate’s 8 (a[string, "null"]decimal like its neighbours);quoteUsdRate— that rate (USD per quote-asset unit, 8 decimals); andfxSource— the route that produced it, one ofIDENTITY/DIRECT/CROSS/PEGGED, ornullbeside a rendered rate for a route kind this build’s schema predates (a deploy-skew sentinel: the numbers stand, the route is unnamed — read “no rate” fromquoteUsdRate, never fromfxSourcealone). The frame re-renders when the quote asset’s rate moves — a changed value or route, or a return after a lapse; the publisher restates every rate every few seconds and an unchanged restate renders nothing — like a trade: a raw topic at once, a tiered topic at its next tick. A rate that lapses shows at the next decay minute.candlestickbars gainturnoverUsdandfxSource: the bar’s quote notional at the quote asset’s USD rate as of the bar’s close event, so a closed bar’s value is final; a forming bar carries the rate as of its last trade and converges to the closed value. A bar that folded no trade — a carried empty close, an empty forming bucket — renders"0"withfxSourcenull(nothing traded, no rate applied), and so does a bar whose trades sum to a zero notional (a zero-size or zero-price print), rate or no rate: there is nothing to value. The gateway knows the rate as of a close only for trades it folded itself, so two cases readnull: a bar whose last trade came before the gateway (re)started readsnullon every frame — its snapshot slot and its live close alike — until the instrument trades again; and a snapshot’s closed bars carry the value only for closes this gateway delivered while the topic was live, so a bar closed before the topic’s first subscribe readsnullin the snapshot (its live close frame, if you were subscribed for it, held the value).- Null means “no rate”, beside what it already meant: while the window warms, for a
shape the notional rule cannot value, and — when there is an amount to value —
whenever no rate is current for the quote asset (none published, or the last one
older than the consumers’ window (30 s) at the frontier) the USD fields are
null, never0and never the unconverted amount. A warm quiet window is the one exception in kind, not in spirit: its"0"notional is"0"in USD whether or not a rate is current — there is nothing to value. A USD-quoted instrument carries theIDENTITYrate ("1"), so its USD fields equal its quote fields. - Existing fields, types and frame shapes are untouched; every new field is required in
the schema (present, possibly
null), so a consumer can key on presence per frame.
Deploy window: before the upgrade the four ticker fields and the two bar fields are
absent from the frames; after, they are present and null until the first rate for the
instrument’s quote asset lands (every routable asset’s rate is published within a second
of the rate publisher’s boot, so the window is short), and a candlestick bar last traded
before the upgrade stays null until its instrument trades again. A client parsing with an additive
model needs no change; one that validates against the published schema must take this
version of the contract with the upgrade.
The ticker channel — an inverse contract’s turnover* is valued
What changed
- Nothing in the gateway, its schema or its frames. What moved is upstream: reference
data now states what one inverse contract is worth in the quote currency, the number the
turnover1h/turnover24hrule multiplies an inverse contract’s volume by (volume × contractValue, as the AsyncAPI description states it). - An inverse future’s or perpetual’s
turnover*now carries its quote notional, where every inverse instrument renderednullbefore: an exact decimal string atpriceScale + qtyScale, like every otherturnover*. An inverse instrument whose venue states no contract value still rendersnull— never0, never the raw sum — as an option or an index does, by design. - No field, type or frame-shape change.
Deploy window: an inverse instrument’s turnover* stays null until reference data
restates it — once, on its first catalog poll after the upgrade — and the next ticker
image after that (a trade’s, or the minute’s decay re-render) carries the value. The whole
window is valued at once: the notional is computed at render from the volume the window
already holds, never accumulated from the upgrade forward. A client that treats null as
“no value” needs no change.
The composite channels — Binance spot rejoins: its connector states each value’s minimal scale
What changed
- Nothing in the gateway, its schema or its frames. What moved is upstream, in
binance-md-connector, which no longer states the eight places Binance renders on every
surface as the instrument’s precision. Every price and size is now read at its minimal
scale — the trailing zeros stripped,
64887.68000000read as64887.68at 2 — and stated, as every moved connector states a value, at its channel’s working scale, which therefore settles at the instrument’s grid instead of at eight: a BTCUSDT book is stated at one pair, 2/5 (its 0.01 tick and 0.00001 step), instead of 8/8, inside the record’s 4/7, and an ETHUSDT book at 2/4 inside its 4/6. The rule is the venue’s, chosen because Binance’s width carries no information about the instrument: a venue that pads to its grid (Kraken, Bybit) is unchanged. - Every Binance spot book enters the merge. A composite holding a Binance spot source
beside others stops naming it
precisionand merges its levels, and one built on Binance spot alone serves. The rejoin is the one the re-cut’s section below (aprecisionexclusion reason) defines: once the source’s next snapshot is stated within the topic’s output scales it is named in arecoveredframe — whether it had left the merge or, as every Binance spot source since its move, had never entered it — and appears insrcfrom the next full image. A topic on Binance spot alone that ackedsyncingand never served saysrecovered, then serves. precisionno longer stands for padding. A source is toldprecisionbecause its book is stated finer than the topic’s output scales, and the two ways that happens are the ones already in this file: the venue outgrew its reference record (theprecisionis reachable section), or — after a record narrows — a running connector keeps stating the finer scale it had learned until it restarts (the transient cause the section directly below names). Never any more because a venue renders more digits than it trades.- The per-instrument channels are unchanged. They render shortest form and always
did, so
64887.68000000read as64887.68before this release and reads the same after; no digit a client saw changes. What a client can notice:agg_booklevels attributed to a Binance spot source appear where before the source was absent; and onbook, raw or conflated, a Binance spot book’s restatements now come from real precision moves rather than never — over a connector’s first frames after a restart a book channel can widen as it climbs to the grid, and each book-channel widen is one moresnapshot: trueframe, the form the contract has always used. Expect none in the common case: the venue’s capture widened twice, both on a trade channel, which emits nobookframe. rescaledis unchanged by this, and no reference record moves: the alternative — widening the record to the venue’s rendering once a record’s pair can move — was not taken, so no composite holding a Binance spot source is rescaled to eight places.
Deploy window: nothing in the gateway deploys for this section; binance-md-connector
does, and its restart is the window. A gateway beside the connector before its deploy
is the precision is reachable section’s world for this venue: every Binance spot book out
of every composite as precision, a composite on Binance spot alone syncing and never
serving. After:
the connector’s next snapshot of each book is stated at the minimal pair, and every
composite holding that source says recovered — or serves for the first time — and merges
it at its next tick. Nothing a client must do: one that already treats precision as a
standing word and parses decimal strings without assuming a digit count sees a source
appear, and that is all. The gateway has no “before” of its own here, for the reason the
precision is reachable section gives.
The composite channels — rescaled becomes ordinary: a source’s scales can now change
What changed
- Nothing in the gateway, its schema or its frames — the re-cut’s section below taught
the two words and they are unchanged. What changes is upstream, and it changes when a
client hears one of them. Until now the reference-data owner froze each instrument’s
scale pair at first listing and refused any catalog row that needed another, so a
composite’s output scales — derived from its sources’ records — could only move in an
incident. From this release the owner derives the pair from the catalog row at every
poll and publishes a changed pair as the record’s next version. A topic’s output
priceScale/qtyScalecan therefore move under a live subscription in normal operation, andstatus: "rescaled"is how the client is told — one frame per affected topic per change, before the first frame rendered at the new pair, exactly as the re-cut’s section below specifies. Never per tick. - Both directions happen. The scales widen when a source venue starts quoting finer
than the catalog had registered and the catalog catches up. They can narrow when a
venue coarsens its price or size grid, or when a first registration that was too fine is
corrected. A client must not assume a
rescaledpair is at or above the one it replaces. - A narrowing can leave a
vol_bookladder behind — and a re-subscribe can then answerbad_ladder.bucketSizesare held at the topic’s quantity scale, so a rescale restates them exactly or not at all. A widening always can. A narrowing cannot when a bucket size uses a decimal the narrower scale drops ("2.55"at a quantity scale going from 2 to 1): that topic keeps the pair it advertised — still exact, and norescaledis sent for it — but the same config sent again later (a reconnect re-subscribes with the full config) is judged against the current scale and refusedbad_ladder, naming the scale. Send bucket sizes no finer than the instrument’s size increment and neither can happen. - Expect a burst once, then rarity. Be ready for
rescaledon many topics at the first catalog poll after this release deploys, and for it to recur, rarely, over a subscription’s life — it is not a once-in-a-listing event. The burst: every instrument whose pair had been held at a stale first sighting corrects at once, and each affected topic — one whose output pair moves with it — saysrescaledthen; a source’s pair can change under an output pair another source still sets, and then nothing is said. The rarity: after that a topic’s scales move only when a source’s catalog row stops fitting the scales its record holds — a venue making its grid finer than the record’s headroom absorbs, or a registration being corrected — while a one-decimal tick move is absorbed and says nothing (a week of published catalog history, 2026-09-20, held no other kind of move). reason: "precision"is live already, and gains one transient cause. The re-cut’s section below saidprecisioncould not be sent until a later release let a connector state a venue’s own digits; the section directly below is that release, and the connectors moved to it venue by venue — every market-data connector states the venue’s own digits now, and that section names them. For a moved connectorprecisionmeans what the re-cut’s section says: the source’s book is stated finer than the topic’s output scales, which derive from the reference records. Two things clear it. The record widens — which, from this release, the owner does at the next catalog poll that shows the finer precision, nobody acting — or the venue’s rendering changes. (A venue that padded its rendering past its own grid — Binance spot, eight places on every value above its record — stayedprecisionon either side of this until its connector stripped the padding: the section above, which lands in the same release.) A narrowing can put a source out until its connector restarts. A stated scale never narrows within a connector’s process — the rule the section below states — so after a record narrows, a connector whose channel had learned digits above the new pair keeps stating them, every value still exact. If that leaves the source above a topic’s output scales, it is announced out of the merge by an ordinarydegradedframe withreason: "precision", and rejoins through an ordinaryrecoveredframe when the connector restarts and its channels learn the venue’s digits afresh. Nothing is mis-rendered in between: a level is never rounded into a merge. It takes a venue coarsening by more than the record’s headroom, so expect it rarely.
Deploy window: the gateway and the reference-data owner deploy independently, and only
the owner changes here. A gateway carrying the re-cut’s section below, beside an owner
before this release: rescaled only in an incident, as that section says; precision
already, from the connectors that state a venue’s own digits — and standing wherever a
venue has outgrown a record the owner still refuses to widen. The
same gateway beside an owner at this release: rescaled on each affected topic
whenever a source’s pair change moves its output pair; precision clearing within a poll
of the catalog showing the finer precision; and the transient cause above. There is no
third combination — a gateway older than the
re-cut’s section below cannot read the re-cut market-data schema this owner’s estate runs
on. What a client must do is what that section already asked: parse decimal strings rather
than assuming a digit count; if it formats to the ack’s priceScale / qtyScale, take
the new pair from the rescaled frame — in either direction; treat an unknown status as
ignorable and an unknown reason as stale.
The composite channels — precision is reachable: the connectors state the venue’s own digits
What changed
- Nothing in the gateway, its schema or its frames. No field, enum member or frame
shape moves, and this section adds no word the section below did not teach. What moved
is upstream, in the connectors, and it makes one sentence of that section true sooner
than it said:
reason: "precision"“cannot be sent until a later release lets a connector state a venue’s own digits”. This is that release — it carries the section below’s re-cut and the connectors’ move together, so a client meets both at once. - Which sources can now be announced
precision, and why. A moved connector states every price and size at the digits the venue renders on that channel — a working scale learned from the wire — where before it stated the instrument’s reference-record pair on every value. A composite’s output scales are still derived from its sources’ records (thepriceScale/qtyScalethe ack echoed), and each source is judged on the pair its book was last stated at. A record’s pair is derived with headroom — at least two places past the instrument’s tick and past its step — so a venue that renders inside that headroom enters the merge as it always did, and one that renders past it is out asprecision. One kind of venue does: one that outgrew its record — it re-gridded an instrument finer than the record’s headroom absorbs. (A venue that padded its rendering past its own grid, Binance spot, did too between its move and the section at the top of this file, which strips the padding at the connector.) The sources this can be said of are the moved venues’ books — every market-data venue’s, since this release moves them all: Kraken, Coinbase, Gate.io, Bybit, Binance futures, Binance spot, OKX, KuCoin futures and MEXC. KuCoin spot moved too but publishes no book yet, so none of its instruments is a composite source. - How it clears. As the section below says, the source rejoins through an ordinary
recoveredframe once its book is within the topic’s scales again, and two things get it there. The record widens: the catalog restates the instrument’s pair, the gateway rebinds every composite holding that source, saysrescaledwith the new pair wherever the output scales moved, and the source rejoins. Today that widening is an operator’s act — the reference-data owner refuses a changed pair in normal operation, so a record moves only when the instrument is re-listed, the incident shape the section below names — and aprecisionsource waits on it. The release that makes the pair a versioned attribute turns the wait into a poll: the owner derives the pair from the catalog row at every poll and publishes the wider pair as the record’s next version, so the source rejoins within a poll of the catalog showing the finer precision, nobody acting — that release’s own section says what else it changes. The venue’s rendering changes: a stated scale never narrows within a connector’s process — a venue that coarsens its digits, or stops padding, keeps being stated at the finer pair, exactly, with trailing zeros — so a coarser rendering reaches the gateway at that connector’s next restart, when its channels learn the venue’s digits afresh and the source’s next snapshot states the coarser pair. - Binance spot stood excluded from its move until the section at the top of this
file. Binance spot renders eight places on every surface whatever the instrument’s
grid — BTCUSDT trades on a 0.01 tick and a 0.00001 step, and every price and size still
reads
64887.68000000and0.00200000— and its moved connector stated 8/8 on every channel while the record derives 4/7, so every Binance spot book was out of every composite asprecisionfrom its first tick, and a composite on Binance spot alone never served. The fix is at the connector, in the same release as this section — the section at the top of this file: the connector states each value’s minimal scale, its books settle at the grid (BTCUSDT 2/5) and enter the merge with the topic’s scales where they are, so no client meets the exclusion. - The per-instrument channels are unchanged in shape and, nearly everywhere, in content.
trade,tob,book,mark,oi,candlestickandtickeradvertise no scale and render shortest form, so a value the venue pads reads as it did — Binance spot’s64887.68000000was64887.68before the move and is after — and a level’ssrcattribution onagg_book, rendered from the venue’s stated pair, is the same string at any stated scale. Two things a client can notice. A value the record’s grid could not hold was quarantined by the unmoved connector — never published — and a moved connector publishes it exactly, so on a venue that outgrew its record a client sees prices or sizes at more decimals than the record’s pair where before it saw nothing. And when a moved connector’s book channel learns a finer digit than it had seen, it restates the held book at the finer pair before deltas resume: onbook, raw or conflated, that is one moresnapshot: trueframe — the form the contract has always used for a restatement — carrying the same digits. On a shortest-form venue (Coinbase, Gate.io) expect those over a connector’s first frames after a restart, then rarely. rescaledis unchanged by this: still only the reference-data incident the section below names, until the release that lets a record’s pair move.
Deploy window: nothing in the gateway deploys for this section; the connectors do, one
venue at a time, and each is its own window. A gateway carrying the section below beside a
connector before its move is that section’s world for the venue: the connector states
the record’s pair, so the venue’s sources sit at or below the output scales by construction,
precision is unreachable in normal operation, and a value off the record’s grid does not
reach the wire. The same gateway beside a connector after its move: that venue’s books,
where it publishes one (KuCoin spot does not yet), can be told precision under the rule
above, and the per-instrument channels
carry every value the venue renders, exactly. The gateway has no “before” of its own here: a
gateway older than the section below cannot read the re-cut market-data schema the moved
connectors publish on (a clean break under a schema floor, taken with an environment reset),
so it never runs beside one. What a client must do is what the section below already asked —
treat an unknown reason as stale, and parse decimal strings rather than assuming a digit
count — plus one thing new with this section: expect precision to be a standing word, not
a transient one. A source told precision waits on the catalog or on the venue, not on a
restate interval.
The composite channels — a precision exclusion reason, a rescaled status, and one rule for ts
What changed
-
Two new enum members on
agg_bookandvol_bookstatus frames. The exclusionreasonvocabulary gainsprecision, and thestatusvocabulary gainsrescaled. Both enums were documented closed (“complete so consumers bind once”), so a client that generated an exhaustive enum from the spec must regenerate — or, better, treat an unknownreasonas it treatsstaleand ignore an unknownstatus, which was always the safe reading. -
reason: "precision"rides an ordinarydegradedframe: the named source’s book is stated at more decimal places than the topic’s output scales (thepriceScale/qtyScalethe subscribe ack echoed) hold, so its levels cannot enter the merge without dropping digits, and a level is never rounded into a merge. It is judged on the scale, not on the digits the book happens to hold, so a source does not flap in and out with its content. The source rejoins through an ordinaryrecoveredframe once its book is within the topic’s scales again: the topic was rescaled wide enough, or the venue’s next snapshot states a coarser scale. A rescale that widens only part of the way leaves it out. -
precisionis the one exclusion announced for a source that never entered the merge. A source that is merely not synced yet is covered by the ack’ssyncingpromise and joins silently, as it always has. Aprecisionsource is different — its book is servable, and it stays out until the catalog or the venue moves — so itsdegradedframe is sent once whether the source left the merge or was never in it. A composite whose only source is born that way answerssyncingand then, at its first tick:No
ts— nothing is included to timestamp — and nostalemarker after it, because the topic has not served yet andsyncingstill stands. A topic that was serving and loses its last source toprecisiongets the same frame first (naming every source that left with it) and then thestalemarker, so the silence that follows has a stated cause. -
precisionis also the one reason said over another. A source already announcedstaleorfx_expiredwhose exclusion turns intoprecision— its book comes back from a resync, or its rate returns, and the book is finer than the topic — is named again in adegradedframe carrying the new reason. The first word promised a heal within a restate interval or a rate tick; this one waits on the catalog, and a client should not be left waiting on the wrong one. Onerecoveredanswers both. No other change of reason is re-announced: aprecisionsource whose chain breaks and heals stays toldprecision. -
status: "rescaled"is a new status frame with two new integer fields,priceScaleandqtyScale— the ack’s own field names, carrying the topic’s new output scales:The output scales are derived from the sources’ reference records. When a source’s record restates its scale pair — a venue starts quoting finer than the catalog had registered, and the catalog catches up — the gateway rebinds every composite holding that source, and because the client sent no request for an ack to answer, the frame says so. It is emitted once, at the tier’s tick, before the first frame rendered at the new pair (so before any
recoveredframe the rebind causes, and before the image). It carries nots: it is a fact about the subscription, not about any source’s book. A rebind that leaves the output scales where they were says nothing, and so do two that land back on the pair the client was last told. -
tsis written by one rule on every composite frame. It is the newest included source’s exchange timestamp: present when an included source carries one, absent otherwise — never"0". Images and thestalemarker already behaved this way;degradedandrecoveredwrote"ts":"0"when no included source carried a timestamp, and now omit the field like the other forms. The schema never requiredts. -
Nothing else moves. Image frames, the ack,
degraded/recovered/stale, every field name and type are unchanged, and every number on the topic is still a canonical shortest-form decimal string: a client that parses decimals — rather than assuming a digit count — sees the same values before and after a rescale. Forvol_book, the ladder’sbucketSizesare restated at the new quantity scale, so the buckets a client subscribed to are the buckets it keeps receiving. An identical re-subscribe after a rescale is answered with the new pair. The per-instrument channels are untouched: the release that carries this section re-cuts the sequenced market-data schema underneath the gateway (every price and quantity now states its own scale), buttrade,tob,book,mark,oi,candlestickandtickeradvertise no scale and render shortest form, so every string on them is byte-identical before and after.
Deploy window: a gateway before the upgrade never sends either word, so a client built
to this section meets nothing new against it and must simply not wait for the words. A
gateway after the upgrade can send them to a client that has not learned them, but only
when the data gives it cause, and through this release the data does not: every connector
still states its reference record’s scale pair, which sits at or below every composite’s
output scales by construction, so precision cannot be sent until a later release lets a
connector state a venue’s own digits finer than its record; and rescaled needs a
reference record whose pair changed, which the catalog refuses in normal operation until
the release that makes a pair an attribute — the rescaled becomes ordinary section of
this file, which also gives precision its one transient cause; the connectors that now
state a venue’s own digits are named in the section directly above. The one way either
happens earlier is an incident — a reference-data rebuild that re-lists an instrument at
other scales
— and there the frames are the better outcome: before this release the composite stayed
bound to the pair the catalog had moved past and said nothing. That is the window to teach a
client the two words. A client that has not learned them by then sees, at worst, a
degraded frame whose
reason it does not recognise (treat as stale: the source is out of the merge, and the
image’s src says which sources are in) and a status frame whose status it does not
recognise (safe to ignore if it parses decimal strings; a client that fixed its formatting
to the ack’s priceScale / qtyScale must take the new pair from this frame). The ts
correction is visible on both sides at once: an old gateway may send "ts":"0" on a
degraded or recovered frame, a new one omits the field — treat ts as optional on every
composite frame, which is what the schema has always said.
The ticker channel — turnover* is the contract-aware quote notional
What changed
turnover1h/turnover24hnow carry the quote notional, not the bareprice × quantitysum. For spot instruments nothing moves: the sum IS the quote notional. For contract-sized instruments the numbers change visibly: a linear contract (FUTURES,PERPETUAL_SWAP,QUANTO_*) is the sum times the instrument’scontractMultiplier(rounded half-even atpriceScale + qtyScale, so the string keeps its scale — a 0.01-multiplier perpetual’s turnover is a hundredth of what it read before, which is what it was worth), and an inverse contract isvolume × contractValue.- Null now also means “not valued”, beside the warming window it already meant: an
instrument whose shape the rule cannot value — a linear contract with no stated
multiplier, an inverse contract with no stated contract value (every inverse row
today: reference data does not publish the field yet), an option, an index — renders
null, never0and never the raw sum. The AsyncAPI description states the rule. - No field, type or frame-shape change: both fields stay
[string, "null"]at the same scale; every othertickerfield is untouched.
Deploy window: before the upgrade a contract-sized instrument’s turnover* read the
raw contract-count sum (a mismatched unit — the correction this section lands); after, it
reads the quote notional or null. A client that already treated null as “no value”
needs no change; one that summed turnover across instruments of mixed shapes was summing
mismatched units before and gets comparable quote amounts after. The candlestick
channel carries no turnover field and is unaffected.
The ticker channel — trailing stats that decay on the stream frontier
What’s new
- The
tickerchannel is served:ticker.SYMBOL[.tier]— last price plus derived trailing 1h/24h statistics off the rolling fold, re-rendered on trades (conflated per tier) and once per elapsed stream minute — the decay edge for quiet instruments; an actively trading topic simply receives one extra image at the minute edge.asOf(the consumed event-time frontier at render) advances on decay re-renders whileseq/seqTs(fact provenance, the last trade folded) stay unchanged:asOfmoving alone IS the decay tell. - Per-window cold-start completeness rides nullability: a window’s derived fields
are null until that window’s history exists post-cold-start (between +1h and +24h the
1h numbers stand while the 24h ones are null);
windowCompleteis the 24h window’s flag; null never renders as 0, and a warm window with no trades is flat (zero sums, ratio"0", extremes carried), not null.pctChange*are ratios (not percent) at 4 decimals;turnover*are exact decimal strings atpriceScale + qtyScale(sums never pass through floating point).
Deploy window: before this deploy, ticker.* topics answer per-topic errors —
probe-and-fall-back works as for the candlestick channel’s section below.
The candlestick channel — closes on the stream frontier, and the object topic form
What’s new
- The
candlestickchannel is served:candlestick.SYMBOL.INTERVAL[.tier], the interval segment mandatory fromcomponents.schemas.candleInterval(the 8-interval set shared with the candle-history surface). Subscribing answersliveand pushes onesnapshot: trueframe — the last two closed bars plus the forming bar, oldest to newest; a never-traded instrument answersbars: []withseq/seqTsomitted, so “no data exists” is distinguishable from “snapshot lost”. The raw lane streams a forming-bar partial per folded trade; tiers serve the latest forming bar per tick. Closes never conflate: every elapsed interval closes — zero-trade intervals as a carried close (OHLC = previous close, volume"0", count 0, provenance inherited) — released once the stream’s consumed event-time frontier passes the bucket boundary, never wall clock: under catch-up closes arrive late, never wrong. Afterclosed: truefor a bucket no further update frame for that bucket arrives, and the close precedes any frame of the next bucket. Around the subscribe itself, snapshot and topic broadcasts may overlap — re-applying a final keyed on the bucket timestamp is a no-op, never desync.seq/seqTsare fact provenance (repeats legal, gaps meaningless): apply keyed on the bucket timestamp. - Subscribe requests accept the object topic form
(
components.schemas.topicSelector):{channel, instrument, interval, throttle}, exactly those keys, string-valued, normalized and echoed as the dotted string — one ack shape with the string form. An unknown key or a non-string value (e.g. a numeric throttle) answers operror/malformedrather than silently arming different semantics. The required top-levelinstrumentkey is what distinguishes a selector from a composite entry (aggBookEntry/volBookEntrycarryname/tier/sourcesand never a top-levelinstrument— an object with one always parses as a selector).
Deploy window: the old gateway answers every candlestick.* topic with a per-topic
error, and mis-collects an object entry’s inner strings as individual topic strings,
answering the subscribe ack with per-topic errors echoing those fragments (never
malformed). A probing client should treat an ack whose per-topic errors echo its
object’s field names/values as the old deploy and fall back to dotted strings. Bare
literals (numbers, true, null) in a topics array are skipped without an answer on
both sides of the window, unchanged.
Composite sources — a contract multiplier of exactly 1 is no longer a unit mismatch
What changed
agg_book/vol_booksources whosecontractMultiplieris exactly1are now accepted. The rule was always about units: a source is refused when its quantities do not speak the base asset. A multiplier of one says one contract IS one unit of the base asset, so those quantities already are base units and nothing is being mixed. The check previously refused every stated multiplier, one included.- Everything else still answers
unit_mismatch, unchanged: any multiplier other than one —0.01,100, whatever the venue states — is a genuine unit change, and conversion through the multiplier remains deferred. - No code, field, or frame shape changes:
unit_mismatchstays in the error enum with the same meaning and the samemessagetext, and an admitted source serves exactly like any other (scales echo, margins and MID normalisation apply, images render identically).
Who this unblocks: reference data states 1 on rows other venues leave unstated —
every OKX spot instrument carries it, as do linear perpetuals on several venues. Those
instruments could not be used as a composite source at all; now they can.
Deploy window: before the upgrade, a source with a stated multiplier of 1 answers
unit_mismatch per topic and nothing arms; after, it validates and serves. Sources with a
multiplier of one are the only behaviour that moves — 0 (unstated) sources and genuinely
contract-sized sources behave identically on both sides, so a client whose subscriptions
were succeeding before sees no change. A client that retried on unit_mismatch should
expect those topics to start serving; one that treats unit_mismatch as permanent needs no
change beyond re-subscribing to pick the instrument up.
Composite books, phase D — vol_book volume ladders
What’s new
- The
vol_bookchannel is served. Subscribe with an object entry (channel: "vol_book") carrying the same source vocabulary asagg_book(margins and MID normalisation included) plus the ladder:pricingModel(VWAP|BEST|WORST),bucketSizes(decimal strings at the resolved outputqtyScale— positive, distinct by value, any order: the server sorts, the response ascends, and the optional positionalbidAdjBps/askAdjBpspair with the sizes as submitted). Identity,replace, budgets, status frames, and reconnect behave exactly asagg_book; the session composite budget counts both channels together. - Frames are full ladder images (
event: "vol_book"): ascending buckets, each present side an object ofcum(the achieved cumulative quantity — the threshold when filled, the side’s whole depth when it exhausts, withfilled: falseand every deeper bucket sharing that tail),px(the model price),adjPx(with the bucket’s directional margin — bid down, ask up), andnotional— the exact swept cost atpriceScale + qtyScale. It can exceed a 64-bit integer: parse it as the arbitrary-precision decimal string it is. A side with no levels is absent (one-sided markets publish);spreadBpsrides every bucket both sides price — partial fills included and the adjusted mid nonzero (a maximal bid margin can floor a sub-tick-scale price to an adjusted zero; the field is omitted rather than divided by zero) — over the adjusted mid at a fixed two-decimal scale, negative when independent venues cross. VWAP rounds to nearest with ties away from zero (an estimate, not a quote);BEST/WORSTquote actual levels. bad_ladderis answered. Present-but-wrong ladder values (an unknown model, a non-positive/duplicate/finer-than-scale size, more thancomposites.max.bucketsbuckets, an adj array that does not pair) answerbad_ladderper topic; an absent required field (pricingModel,bucketSizes) answersmalformed, as doesmaxDepthon avol_bookentry (it isagg_bookvocabulary — ladders walk as deep as their buckets need) or a ladder field on anagg_bookentry.
Deploy window: before the upgrade, any vol_book entry answers
unknown_channel per topic (nothing arms); after, it validates and serves.
bad_ladder was already in the documented code enum (bind-once). One agg_book
edge tightens: a ladder field attached to an agg_book entry was silently ignored
before (the fields did not exist) and now answers malformed — a schema-valid frame
is unaffected, and everything else behaves identically on both sides.
Composite books, phase C — MID normalisation
What’s new
normalisationMode: "MID"is served. A MID source (with the now-meaningfulnormalisedAsset) has its prices normalised through the internal index: the current (source-quote → target) rate multiplies each price before margins, rounding directionally (bids down, asks up — an adjustment never flatters a price). Rates are read fresh at every render, and a rate refresh itself marks the composite dirty exactly like a source-book tick — a standing image re-renders on the next tier tick when its rate moves, even while every source book is quiet.fx_expiredis emitted. A MID source whose pair has no current rate (absent, or older than the index’s 30 s consumer window) leaves the merge and the topic says so —status: "degraded"withreason: "fx_expired"; a returning rate announcesrecovered. Expiry is watched on the gateway’s health cadence (1 s by default), so the announcement lands within about a second even while every source book is quiet.livenow also requires FX: a composite acksliveonly when every enabled source book is synced and every required pair is current; otherwisesyncing, kept by the first computable tick.- Validation:
normalisedAssetis required with MID and must resolve to a known asset that differs from the composite’s base asset and from the source’s own quote asset — each violation answersbad_normalisation. The touch modes stay reserved and answer the same code. - Normalisation never changes a topic’s scale identity: output
priceScale/qtyScalestay the max over the configured sources, exactly as phase B advertised them.
Deploy window: before the upgrade, any normalisationMode: "MID" entry answers
bad_normalisation per topic (nothing arms); after, it validates and serves. Nothing
else changes shape: fx_expired was already in the documented reason enum (bind-once),
and NONE-mode composites behave identically on both sides.
Composite books, phase B — agg_book
What’s new
- Object-form subscribe entries.
params.topicsnow accepts objects beside strings. An object entry subscribes a client-configured composite:channel(a required const —agg_book),name(your handle, session-scoped, 1–64 of[A-Za-z0-9._-]),tier(required — composites are always conflated), optionalmaxDepth, and 1–16sources(canonical symbols, optional per-sidebidMarginBps/askMarginBps, optionaldisabled). All sources must share one base asset; contract-sized derivatives are rejected (unit_mismatch) in v1. - The composite ack row.
live/syncingrows echo the resolved outputpriceScale/qtyScale— they bound every number the topic can carry (bind your parser’s precision once; areplacethat only togglesdisablednever changes them). Error rows carry a closedcode(see the AsyncAPI enum) plus a humanmessageyou should not parse.livemeans every enabled source book is synced and the full image pushes immediately;syncingpromises the first image at the first tick the composite becomes computable. agg_bookdata frames are full images at each tier tick: idempotent, no chain semantics, both sides always present ([]when empty — one-sided markets publish). Levels are objects —px/qtyat the output scales plussrcper-venue attribution (venue-native raw prices at each venue’s own scales).tsis the newest included source’sexchangeTsNs;seq/seqTsare stream-position provenance, not a per-topic chain.- Degradation is explicit. A source whose book cannot be served leaves the merge and
a status frame says so (
status: "degraded",excluded: [{s, reason}]); recovery announces itself (status: "recovered"). All enabled sources out → onestatus: "stale"marker, then silence, then the healing image. Thereasonenum is complete in the contract (stale,fx_expired,delisted,disabled) so you bind once; this release servesstale—fx_expiredarrives with FX normalisation. - Reconfigure with
"replace": trueon a live(name, tier): the swap is atomic (no unsubscribe, no gap, nosyncingflash while sources stay synced), a failing replace answers its error code and leaves the old config serving, and an identical re-subscribe (your reconnect replay) is an idempotent re-ack. A different config without the flag answersname_in_use— reconfiguration is never an accident. The tier is topic identity: changing it is unsubscribe + resubscribe. - Unsubscribe by the composed topic string alone (
agg_book.<name>.<tier>, byte-identical to the echo in acks and frames) — the config is never re-sent. - Budgets: at most 16 composites per session, 16 sources per composite, depth ≤ 50
(deployment-configurable). Over-budget subscribes answer
budget_exceededper topic. - Reserved, not yet served:
normalisationMode: "MID"(+normalisedAsset) answersbad_normalisationuntil MID normalisation is served (phase C, above);vol_bookentries answerunknown_channeluntil volume ladders are (phase D).
Deploy window (a not-yet-upgraded gateway vs an upgraded one):
- Do not mix object entries into frames an old gateway might serve. The old parser
reads the topics array as loose quoted strings with no nesting awareness: an object
entry comes back as a flood of spurious per-string
errorrows (its keys and values each read as a “topic”, so the ack can carry MORE rows than entries you sent, breaking order-correlation for that frame), and collection stops at the first]the parser meets — the entry’s ownsourcesarray’s — so every entry after the object in the same frame, plain string topics included, is silently dropped: never subscribed, never answered. A client-chosennamethat happens to look like a servable topic string could even be subscribed by the old parser. During the window: send composites in their own subscribe frame, after your string subscriptions, and treat “no ack row matching my composedagg_book.<name>.<tier>topic” as “old gateway — retry later”, never as an error. - On the upgraded gateway, string-topic behaviour is unchanged, including acks, all
existing channels, and unsubscribe. The ack row’s new fields
(
priceScale/qtyScale/code/message) appear only on composite rows, so existing parsers are unaffected. - A bare-string subscribe of a composite topic (
"agg_book.X.250ms"as a string entry) answerserroron both sides of the window: the config is the subscription.