Skip to navigation

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 receive per data channel, named after it: receiveTrade, receiveBook, receiveTob, receiveMark, receiveFunding, receiveOi, receiveIndex, receiveCandlestick, receiveTicker, receiveAggBook, receiveVolBook and receiveHealth, each naming its channel’s one message. Regenerated, your types gain TradeEvent, BookEvent, TobEvent, MarkEvent, FundingEvent, OiEvent, IndexEvent, CandlestickEvent, TickerEvent, AggBookEvent, VolBookEvent and HealthEvent, with the types beneath them (TradeEventDataItem, BookEventData, AggLevel, …).
  • receiveSession names what the gateway sends on the session’s own lane: opAck, heartbeatEvent and sessionOpenedEvent.
  • subscribe and unsubscribe name their own request, subscribeRequest and unsubscribeRequest. 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.schemas is its key in PascalCase: tier → Tier, aggBookEntry → AggBookEntry;
  • a message’s payload is its key under components.messages in PascalCase: subscribeRequest → SubscribeRequest, bookEvent → BookEvent. The key, not the message’s name: sessionOpenedEvent (name: sessionOpened) → SessionOpenedEvent;
  • an inline object or enum is its parent’s title followed by the property name in PascalCase, with Item for 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 derived candlestick and ticker channels therefore carry Kraken Futures instruments too. No message shape changes; the topics carry new instruments.
  • tradeId is 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 book is 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.
  • tob is the venue’s own best bid and offer, refreshed several times a second on active contracts; a contract with an empty side sends no tob — and, until it has been quoted on both sides since the platform subscribed it, no mark — until both sides are quoted.
  • mark and oi publish 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). mark is 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, a mark can carry fewer decimals than it settles at. oi is 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: rate is the hourly rate for the period ending at fundingTs, intervalMinutes is 60, predictedRate is the venue’s prediction for the next hour and nextFundingTs its end, one hour after fundingTs. method is "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 hour fundingTs moves on and rate takes the value predictedRate held. settledRate, settledTs, minRate, maxRate, premium, interestRate and settState are null.

Across the deploy window

  • Before the deploy no kraken_futures instrument 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 derived candlestick and ticker channels 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.
  • tradeId is 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 book excludes 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.
  • mark and oi publish 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). oi is in the base coin, rounded to 8 decimals.
  • Bitget funding: rate is the rate that settles at fundingTs, the venue’s next settlement, and intervalMinutes is 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). method is "current_period", and minRate/maxRate are the venue’s bounds on the rate. The value refreshes about once a minute. predictedRate, nextFundingTs, settledRate, settledTs, premium, interestRate and settState are null.
  • exchTs is 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

  • mark now serves KuCoin futures — USDT-margined and inverse perpetuals and dated futures (for example mark.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.
  • funding and oi do 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 mark for a KuCoin futures instrument.
  • After: KuCoin futures instruments appear on mark as 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

  • book now serves KuCoin spot instruments (for example book.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 an agg_book or vol_book composition.
  • 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, funding and oi. The gateway’s derived candlestick and ticker channels therefore carry Nado instruments too. Nado publishes no mark. No message shape changes; the topics carry new instruments.
  • Every Nado tradeId is "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 by tradeId — every print on the stream is a distinct trade. side is 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, tob and oi quantity.
  • Nado funding is the hourly rate: Nado settles funding every hour, on the hour. rate is the rate that settles at fundingTs (8 decimals); fundingTs is the next whole hour (UTC); intervalMinutes is 60; method is "current_period". A position’s funding at each fundingTs is 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, interestRate and settState are null.
  • 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 oi value is up to an hour old.
  • exchTs is the venue’s own time on every Nado frame, nanosecond-precise.
  • The book is 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. A tob side the venue reports empty is null.
  • 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 those tradeIds 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, book and tob. The gateway’s derived candlestick and ticker channels therefore carry BingX instruments too. No message shape changes; the topics carry new instruments.
  • The book is 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 BingX book deltas carry no levels at all: an empty delta is a healthy book’s heartbeat, and its prevExchangeSeq chains like any other.
  • A BingX tob frame is the venue’s own top of book, which on this venue equals the book’s first level, stamped a few milliseconds after the book state it restates.
  • BingX trade frames 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 higher tradeId. Order trades by the frame’s sequencing (seq), not by tradeId.
  • The BingX trade side follows the venue’s taker. A print the venue marks with m: true is 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.248632565484067 on 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.2 for 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 inverse BTC-PERPETUAL and ETH-PERPETUAL and the USDC-margined BTC_USDC-PERPETUAL and ETH_USDC-PERPETUAL (and any dated future the catalog serves): trade, book and tob, and mark and oi for every instrument, funding for the perpetuals. The gateway’s derived candlestick and ticker channels 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) every trade, book, tob and oi quantity is US dollars; on the USDC-margined instruments it is the base coin (BTC, ETH). candlestick and ticker volumes follow the same units.
  • exchTs is the venue’s own time on every Deribit frame, funding, mark and oi included.
  • Deribit funding is published in 8-hour periods: rate is the live funding rate, quoted per 8 hours (8 decimals); fundingTs is the end of the current 8-hour period (00:00, 08:00 or 16:00 UTC); intervalMinutes is 480; method is "current_period". The venue accrues funding continuously, so a position’s funding over a period at the live rate is position × 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, interestRate and settState are null. A dated future publishes no funding.
  • The funding descriptions of rate and fundingTs are reworded to say what they carry on every venue: fundingTs is the end of the funding period the rate applies to, and rate the 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 Deribit fundingTs values — 00:00 and 16:00 UTC — settle no cash). A client that books a cash event at each fundingTs should book Deribit’s once a day, at 08:00 UTC.
  • A Deribit funding reading is restated at each period’s start even when the rate holds still, so the latest reading’s fundingTs is always the end of the current period, within a second of the venue’s clock.
  • mark, oi and funding publish when the venue’s value changes (funding also at each period’s start) — often several times a second for mark in a moving market, and not at all while a value holds still. A held value is the latest frame’s.
  • The book is 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 side is 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, book and tob, and mark and oi for every instrument, funding for the perpetuals. The gateway’s derived candlestick and ticker channels therefore carry BTSE futures instruments too. No message shape changes; the topics carry new instruments.
  • Every BTSE futures size is a count of contracts — trade and book quantities, the tob sizes and oi. 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. candlestick and ticker volumes are in contracts too.
  • exchTs is "0" on every BTSE futures funding, mark and oi frame: 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 by exchTs.
  • BTSE futures funding is every 8 hours: intervalMinutes is 480, method is "current_period", rate is the live rate for the period in progress (8 decimals), and fundingTs is the venue’s own next settlement (00:00, 08:00 or 16:00 UTC). predictedRate, nextFundingTs, settledRate, settledTs, minRate, maxRate, premium, interestRate and settState are null. A dated future publishes no funding.
  • The funding and oi readouts refresh about every 30 seconds, mark about every 5: the venue streams none of them, so they are read from its REST interface at that cadence.
  • The book is 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 trade frames 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 by seq and, 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; candlestick and ticker counted 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, on btse_spot as on btse_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 by tradeId.

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, book and tob. The gateway’s derived candlestick and ticker channels therefore carry BTSE instruments too. No message shape changes; the topics carry new instruments.
  • The book is 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 tob frame and the top level of the BTSE book can disagree. The venue computes them in separate pipelines. Usually tob leads the matching book state by 2–3 ms, but some tob states never appear in the book at all (about one in ten within a second). Do not alarm on a tob that differs from the book’s top level.
  • BTSE trade frames 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’s tradeId against 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, and candlestick and ticker count those twice. We have not seen that ordering on the venue; if you need exactly-once, dedupe by tradeId. 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 trade frames 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 by tradeId or exchTs.

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’s POST /v1/ws-tickets and 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 for trading is refused here. Creating one can answer 503 REGISTRATION_PENDING with Retry-After while 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 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 browser Origin the 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. expiresAtNs is 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 short expiresAtNs — and "0" when there is no such expiry. This stream does not close the session at that time.
  • The auth op is gone. An auth message is answered like any unknown op: {"op":"error","success":false,"error":"unknown_op"}, and the session stays open. The opAck values auth (op), auth_required and invalid_token (error) are no longer sent, and the document drops them and the authRequest message.
  • 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 auth op’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-data ticket may be refused; then connect without one.
  • Keep sending the auth message, carrying your access token — not the ticket. A member before this version ignores the handshake’s credential and accepts only the token in auth, so keep the access token at hand for as long as such a member may answer you.
  • Treat either an auth answer or a sessionOpened frame as “ready to subscribe”, and ignore an unknown_op answer to the auth message.
  • 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 perpetuals funding, mark and oi. The gateway’s derived candlestick and ticker channels therefore carry Hyperliquid instruments too. No message shape changes; the topics carry new instruments.
  • exchTs is "0" on every Hyperliquid funding, mark and oi frame: 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 by exchTs.
  • Hyperliquid funding is hourly: intervalMinutes is 60, method is "current_period", premium carries the venue’s premium (truncated to 8 decimals like every rate; null where the venue states none, as on a delisted perp), and fundingTs — 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, interestRate and settState are null.
  • A Hyperliquid funding readout can be briefly absent while mark and oi flow: 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 guessed fundingTs. The clock is shared across the connection’s books: one perp’s quiet book alone withholds nothing, so a perp’s funding frames are no proof its own book is live. mark and oi are not affected.
  • Hyperliquid open interest is in base units (BTC, ETH) at 2 decimals.
  • The book is the venue’s 5-level window, restated whole on every push (about twice a second); there are no incremental deltas on this venue.
  • Hyperliquid trade frames 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. So candlestick and ticker never 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 syncing receives 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 their 101.
  • 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 answered 400 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 Request at once — a non-GET method, or a missing Upgrade, Connection or Sec-WebSocket-Key header. Before, it was held for 10 seconds and dropped without a response.
  • An upgrade that never completes is answered 408 Request Timeout after 10 seconds, instead of being dropped silently.
  • No message from a client is lost or reordered at connect. A frame sent immediately after the 101 is 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

  • mark and oi now serve Bybit’s USDT/USDC-margined and inverse perpetuals and dated futures (for example mark.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 oi carries the one-sided singleOpenInterest — the same quantity every other venue’s oi states, in the instrument’s own size unit (coin on a USDT/USDC contract, USD contracts on an inverse one). Bybit’s headline openInterest, 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.
  • funding now 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.
    • rate is the rate that settles at fundingTs; intervalMinutes is the venue’s stated funding interval; maxRate is the venue’s funding cap and minRate its negation — the venue documents one cap bounding the rate both ways.
    • predictedRate, nextFundingTs, settledRate, settledTs, premium and interestRate are null, and method and settState are null too: 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 handle null here, 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

  • mark and funding now 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. rate is the rate that settles at fundingTs, and exchTs is the venue’s event time as on every readout; every other field is null — including intervalMinutes, which the venue’s stream does not state (the spacing of successive fundingTs values gives it, once a boundary has passed), and settledRate / settledTs, which are not yet published for this venue. A client that has only seen readouts carrying a non-null intervalMinutes should handle null here, 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

  • ticker gains 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); and fxSource — the route that produced it, one of IDENTITY / DIRECT / CROSS / PEGGED, or null beside 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” from quoteUsdRate, never from fxSource alone). 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.
  • candlestick bars gain turnoverUsd and fxSource: 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" with fxSource null (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 read null: a bar whose last trade came before the gateway (re)started reads null on 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 reads null in 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, never 0 and 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 the IDENTITY rate ("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 / turnover24h rule 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 rendered null before: an exact decimal string at priceScale + qtyScale, like every other turnover*. An inverse instrument whose venue states no contract value still renders null — never 0, 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.68000000 read as 64887.68 at 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 precision and merges its levels, and one built on Binance spot alone serves. The rejoin is the one the re-cut’s section below (a precision exclusion reason) defines: once the source’s next snapshot is stated within the topic’s output scales it is named in a recovered frame — whether it had left the merge or, as every Binance spot source since its move, had never entered it — and appears in src from the next full image. A topic on Binance spot alone that acked syncing and never served says recovered, then serves.
  • precision no longer stands for padding. A source is told precision because 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 (the precision is 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.68000000 read as 64887.68 before this release and reads the same after; no digit a client saw changes. What a client can notice: agg_book levels attributed to a Binance spot source appear where before the source was absent; and on book, 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 more snapshot: true frame, 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 no book frame.
  • rescaled is 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 / qtyScale can therefore move under a live subscription in normal operation, and status: "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 rescaled pair is at or above the one it replaces.
  • A narrowing can leave a vol_book ladder behind — and a re-subscribe can then answer bad_ladder. bucketSizes are 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 no rescaled is 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 refused bad_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 rescaled on 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 — says rescaled then; 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 said precision could 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 connector precision means 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 — stayed precision on 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 ordinary degraded frame with reason: "precision", and rejoins through an ordinary recovered frame 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 (the priceScale / qtyScale the 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 as precision. 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 recovered frame 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, says rescaled with 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 a precision source 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.68000000 and 0.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 as precision from 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, candlestick and ticker advertise no scale and render shortest form, so a value the venue pads reads as it did — Binance spot’s 64887.68000000 was 64887.68 before the move and is after — and a level’s src attribution on agg_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: on book, raw or conflated, that is one more snapshot: true frame — 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.
  • rescaled is 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_book and vol_book status frames. The exclusion reason vocabulary gains precision, and the status vocabulary gains rescaled. 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 unknown reason as it treats stale and ignore an unknown status, which was always the safe reading.

  • reason: "precision" rides an ordinary degraded frame: the named source’s book is stated at more decimal places than the topic’s output scales (the priceScale / qtyScale the 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 ordinary recovered frame 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.

  • precision is 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’s syncing promise and joins silently, as it always has. A precision source is different — its book is servable, and it stays out until the catalog or the venue moves — so its degraded frame is sent once whether the source left the merge or was never in it. A composite whose only source is born that way answers syncing and then, at its first tick:

    {"event":"agg_book","topic":"agg_book.BTC-X.100ms","status":"degraded",
    "seq":"4242","seqTs":"1700000000000000000",
    "excluded":[{"s":"OKX@BTC/USDT","reason":"precision"}]}

    No ts — nothing is included to timestamp — and no stale marker after it, because the topic has not served yet and syncing still stands. A topic that was serving and loses its last source to precision gets the same frame first (naming every source that left with it) and then the stale marker, so the silence that follows has a stated cause.

  • precision is also the one reason said over another. A source already announced stale or fx_expired whose exclusion turns into precision — its book comes back from a resync, or its rate returns, and the book is finer than the topic — is named again in a degraded frame 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. One recovered answers both. No other change of reason is re-announced: a precision source whose chain breaks and heals stays told precision.

  • status: "rescaled" is a new status frame with two new integer fields, priceScale and qtyScale — the ack’s own field names, carrying the topic’s new output scales:

    {"event":"agg_book","topic":"agg_book.BTC-X.100ms","status":"rescaled",
    "seq":"4242","seqTs":"1700000000000000000","priceScale":3,"qtyScale":2}

    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 recovered frame the rebind causes, and before the image). It carries no ts: 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.

  • ts is 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 the stale marker already behaved this way; degraded and recovered wrote "ts":"0" when no included source carried a timestamp, and now omit the field like the other forms. The schema never required ts.

  • 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. For vol_book, the ladder’s bucketSizes are 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), but trade, tob, book, mark, oi, candlestick and ticker advertise 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 / turnover24h now carry the quote notional, not the bare price × quantity sum. 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’s contractMultiplier (rounded half-even at priceScale + 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 is volume × 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, never 0 and 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 other ticker field 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 ticker channel 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 while seq/seqTs (fact provenance, the last trade folded) stay unchanged: asOf moving 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); windowComplete is 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 at priceScale + 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 candlestick channel is served: candlestick.SYMBOL.INTERVAL[.tier], the interval segment mandatory from components.schemas.candleInterval (the 8-interval set shared with the candle-history surface). Subscribing answers live and pushes one snapshot: true frame — the last two closed bars plus the forming bar, oldest to newest; a never-traded instrument answers bars: [] with seq/seqTs omitted, 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. After closed: true for 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/seqTs are 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 op error/malformed rather than silently arming different semantics. The required top-level instrument key is what distinguishes a selector from a composite entry (aggBookEntry/volBookEntry carry name/tier/sources and never a top-level instrument — 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_book sources whose contractMultiplier is exactly 1 are 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_mismatch stays in the error enum with the same meaning and the same message text, 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_book channel is served. Subscribe with an object entry (channel: "vol_book") carrying the same source vocabulary as agg_book (margins and MID normalisation included) plus the ladder: pricingModel (VWAP | BEST | WORST), bucketSizes (decimal strings at the resolved output qtyScale — positive, distinct by value, any order: the server sorts, the response ascends, and the optional positional bidAdjBps/askAdjBps pair with the sizes as submitted). Identity, replace, budgets, status frames, and reconnect behave exactly as agg_book; the session composite budget counts both channels together.
  • Frames are full ladder images (event: "vol_book"): ascending buckets, each present side an object of cum (the achieved cumulative quantity — the threshold when filled, the side’s whole depth when it exhausts, with filled: false and every deeper bucket sharing that tail), px (the model price), adjPx (with the bucket’s directional margin — bid down, ask up), and notional — the exact swept cost at priceScale + 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); spreadBps rides 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/WORST quote actual levels.
  • bad_ladder is answered. Present-but-wrong ladder values (an unknown model, a non-positive/duplicate/finer-than-scale size, more than composites.max.buckets buckets, an adj array that does not pair) answer bad_ladder per topic; an absent required field (pricingModel, bucketSizes) answers malformed, as does maxDepth on a vol_book entry (it is agg_book vocabulary — ladders walk as deep as their buckets need) or a ladder field on an agg_book entry.

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-meaningful normalisedAsset) 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_expired is 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" with reason: "fx_expired"; a returning rate announces recovered. 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.
  • live now also requires FX: a composite acks live only when every enabled source book is synced and every required pair is current; otherwise syncing, kept by the first computable tick.
  • Validation: normalisedAsset is 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 answers bad_normalisation. The touch modes stay reserved and answer the same code.
  • Normalisation never changes a topic’s scale identity: output priceScale/qtyScale stay 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.topics now 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), optional maxDepth, and 1–16 sources (canonical symbols, optional per-side bidMarginBps/askMarginBps, optional disabled). All sources must share one base asset; contract-sized derivatives are rejected (unit_mismatch) in v1.
  • The composite ack row. live/syncing rows echo the resolved output priceScale/qtyScale — they bound every number the topic can carry (bind your parser’s precision once; a replace that only toggles disabled never changes them). Error rows carry a closed code (see the AsyncAPI enum) plus a human message you should not parse. live means every enabled source book is synced and the full image pushes immediately; syncing promises the first image at the first tick the composite becomes computable.
  • agg_book data 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/qty at the output scales plus src per-venue attribution (venue-native raw prices at each venue’s own scales). ts is the newest included source’s exchangeTsNs; seq/seqTs are 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 → one status: "stale" marker, then silence, then the healing image. The reason enum is complete in the contract (stale, fx_expired, delisted, disabled) so you bind once; this release serves stale — fx_expired arrives with FX normalisation.
  • Reconfigure with "replace": true on a live (name, tier): the swap is atomic (no unsubscribe, no gap, no syncing flash 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 answers name_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_exceeded per topic.
  • Reserved, not yet served: normalisationMode: "MID" (+ normalisedAsset) answers bad_normalisation until MID normalisation is served (phase C, above); vol_book entries answer unknown_channel until 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 error rows (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 own sources array’s — so every entry after the object in the same frame, plain string topics included, is silently dropped: never subscribed, never answered. A client-chosen name that 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 composed agg_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) answers error on both sides of the window: the config is the subscription.