1.0
OpenAPI 3.1.1

MarketData.Api

Reference and historical market data for listed securities, with real-time quotes and order-book depth available over a streaming hub alongside these endpoints.

Getting access

Every endpoint takes an OAuth bearer token. Your integration contact issues the client credentials and grants the permissions your data needs, held per exchange (MIC). A request for data your permissions exclude returns 403, so confirm the grants before integrating.

Exchange and venue codes

Securities are listed under one set of codes and priced under another. Listing codes group securities by how they are listed. Every endpoint, and the streaming hub, names the venue a security trades on by its ISO 10383 MIC, in requests and in answers.

Listing code What it lists Venue MIC
ASX ASX shares, company options, notes, hybrids and trusts XASX
AXW ASX warrants and exchange-traded products, ETFs among them XASX
CXA Cboe Australia listings CHIA

For example, the ETF IVV prices as IVV-XASX on ASX and IVV-CHIA on Cboe Australia, and GET /exchanges/v2/XASX/securities?SecurityType=ETF_ETF lists the ETFs on ASX. That route accepts every FactSet security type, WARRANT among them, so it serves the AXW listing's instruments as well. The pricing endpoints also accept a listing code in place of the MIC: IVV-AXW returns the IVV-XASX quote. Ask for security information on the security's home venue, for example /securities/XASX/BHP for BHP, which also trades as BHP-CHIA. GET /exchanges/v2 lists the venues by MIC: XASX, CHIA, and AUS for the two combined.

GET /exchanges/v2 lists the exchanges the API serves by MIC, with each exchange's time zone, trading hours and delay. GET /exchanges/v2/{code}/securities lists the securities FactSet holds for one venue by MIC, for example /exchanges/v2/XASX/securities. GET /exchanges/v2/{code}/holidays lists the days an exchange does not trade, from 3 years back to 2 years ahead. The older exchange routes are deprecated. Each still answers, and each has a replacement:

  • GET /exchanges: use GET /exchanges/v2
  • GET /exchanges/information: use GET /exchanges/v2
  • GET /exchanges/{code}/securities: use GET /exchanges/v2/{code}/securities
  • GET /exchanges/{code}/holidays: use GET /exchanges/v2/{code}/holidays

Required parameters

These parameters are the ones a first call most often leaves out. Each is required, and a call that leaves one out answers 400 with a problem body that names it, for example At least one field must be specified. or Please provide DateTimeFrom.

Endpoint Required parameters Working example
Security information, GET /securities/{exchange}/{symbol} Fields: the field names you want, comma-separated, from that endpoint's list /securities/XASX/BHP?Fields=companyName,securityTypeCode,homeExchange
Daily bars, GET /pricing/timeseries/{security} DateTimeFrom and DateTimeTo, a date or a date-time each; Frequency defaults to Daily /pricing/timeseries/BHP-XASX?DateTimeFrom=2026-10-20&DateTimeTo=2026-10-26
Trades, GET /pricing/trades/{live,delayed}/{security}/v2 DateTimeFrom and DateTimeTo, at most one day apart /pricing/trades/live/BHP-XASX/v2?DateTimeFrom=2026-10-27T09:59:00&DateTimeTo=2026-10-27T10:30:00
Minute bars, GET /pricing/timeseriesintraday/{live,delayed}/{security} DateTimeFrom, DateTimeTo and ConsolidationInterval (1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30 or 60 minutes a bar); Frequency defaults to Minutes /pricing/timeseriesintraday/live/BHP-XASX?DateTimeFrom=2026-10-27T09:59:00&DateTimeTo=2026-10-27T10:30:00&ConsolidationInterval=1

Name each field you want: Fields=all answers 400 with the list of valid names. A call ported from V1 changes in two places here. V1's security information returned its whole record, and this endpoint returns the fields you name. V1's daily bars took dateFrom and dateTo, and this endpoint takes DateTimeFrom and DateTimeTo. Minute bars cover the last seven days and trades reach further back, so give the examples above recent dates.

Error answers

Key your handling on the status code, since the body's shape follows it. 400, 403 and the API's own 404 answers carry an application/problem+json body whose title, detail or errors say what to change. Each endpoint's 404 lists the bodies it answers, and the 404 titles are these three:

Title When it appears Example detail
Security not found The symbol is unknown on the venue ZZZZ is an unknown security code on XASX.
Exchange not found The venue or listing code is unknown XZZZ is an unknown exchange code. GET /exchanges/v2 lists the exchange codes.
Venue not served A recognised venue outside the endpoint's served set: AUS on trades and intraday bars, which are served per venue, and a venue outside XASX and CHIA on the Level 2 routes Level 2 depth is served for CHIA, XASX. AUS sits outside the served venues.

The quotes endpoints, POST /pricing/quotes/{live,delayed}, answer 200 for a batch holding unknown codes and name each one in unavailableSecurities, so read that list beside pricingQuotes: {"pricingQuotes":[],"unavailableSecurities":["ZZZZ-XASX","BHP-XZZZ"]}.

401 carries WWW-Authenticate: Bearer and an empty body: request a fresh token and send the call again. A 404 for an unknown path and a 405 for the wrong method, with the right one in its Allow header, carry an empty body too, and 429 carries the plain-text line that Rate limits describes.

Live and delayed

Endpoints and permissions come in live and delayed pairs. Delayed data carries the exchange's mandated delay and is entitled separately, so a client may hold either one on its own.

Times

Each surface keeps one time zone:

Where Time zone Example
Streaming hub, every timestamp apart from a trade event's tradeDateTime UTC, ending in Z 2026-08-14T00:33:41.8210000Z
Order book (/pricing/l2/live/{security} and its /orders), adapterTimestamp UTC, ending in Z 2026-10-20T22:35:39.513Z
Quotes, lastTradedTime and updateDateTime Sydney local time, offset-free 2026-10-20T16:13:04.609
Intraday bars, timeSeriesDateTime Sydney local time, offset-free 2026-10-20T10:00:00
Trades, tradeDateTime, on REST and on the hub's trade events Sydney local time, offset-free 2026-10-20T16:13:04
Daily bars timeSeriesDate, and dividend and adjustment dates Sydney trading date, written as midnight UTC 2026-10-20T00:00:00Z
Weekly to yearly bars timeSeriesDate The period's closing date (the week's Friday, or the last calendar day of the month, quarter or year), offset-free 2026-10-23T00:00:00

Send DateTimeFrom and DateTimeTo on intraday bars and trades in Sydney local time too, offset-free, for example 2026-11-10T09:59:00. A value ending in Z or carrying an offset such as +11:00 is converted from that zone, so 2026-11-09T22:59:00Z and 2026-11-10T09:59:00+11:00 name the same instant; a Sydney clock time with Z added reads as UTC and lands 10 or 11 hours away. Sydney time is AEST (UTC+10) or AEDT (UTC+11) by date. On daily bars, dividends and adjustments send the date alone, for example 2026-10-20. Read a bar or dividend date as a calendar date, by its date part.

The opening auction's prints all carry one time just before 10:00, the same for every security on the day and the same time V1 shows, for example 09:59:12.376 on 26 October 2026 and 09:59:00.343 on 27 October. They fall in the 09:59 one-minute bar, and a security whose only trade so far is the opening match shows that time as its quote's lastTradedTime. A trades or bars window that starts at 10:00 leaves the opening auction out, so start the day's first window at 09:59 or earlier, or at 07:00 to take in the off-book prints reported before the open.

Trades, minute bars and day totals

Minute bars count the on-book prints, the trades that set the last price. Off-book prints, such as block and portfolio crossings, late trades and option exercises, stay out of a bar's volume, value and trade count; on Cboe Australia the NBBO crossings join the bars. The quote's totalVolume, the daily bar and the trades endpoint count the off-book prints too, so on a day with a crossing the minute bars sum to less than the day's volume, and the bars skip a minute that holds off-book prints alone. On 27 October 2026 RMS printed a block crossing of 6,757,857 shares at 10:17:24: up to 11:49 its minute bars summed to 2,307,285 shares, the on-book volume, and its trades to 9,065,142. The quote's vwap follows the on-book prints in the same way. For the day's volume, read totalVolume, or sum tradeVolume over the trades that stand (reason other than Cancelled); lastPriceEligible reads true on an on-book print and false on an off-book one.

Request trades in windows. A busy security's full day is large: BHP's session on 23 October 2026 is 82,585 prints and about 17.8 MB of JSON, and takes several seconds to serve. Ask for 30 to 60 minutes at a time, for example 10:00 to 10:30 (about 1 MB for BHP), and step through the session. Both bounds are inclusive, so a print stamped exactly on the bound two windows share arrives in both; drop the repeated tradeId as you join them. Send Accept-Encoding: gzip (or br) as well: once the API offers compression, a trades answer arrives at about a tenth of its plain size, and until then the API answers plain JSON, so the header is safe to send today.

Streaming

These endpoints return a value as it stands when you ask. To receive each change as the venue publishes it, connect to the SignalR hub on the stream host:

https://stream.openmarkets.com.au/v1/market-data/hubs/marketdata

The stream host keeps a long-lived connection open for as long as your client holds it, up to the hour the token lasts. The same hub also answers at https://api.openmarkets.com.au/v1/market-data/hubs/marketdata, as a fallback for a client that reaches only the API host; connections there close more often.

The hub carries four feeds on one connection:

Feed Subscribe with Events
Level 1 quotes SubscribeToSymbol for a symbol, SubscribeToAll for a venue ReceiveMarketData, the full current quote on every update
Trades SubscribeToTrades for a symbol, SubscribeToAllTrades for a venue ReceiveTradesSnapshot once, then ReceiveTrade for every print and every cancel
Level 2 by price SubscribeToMarketByPrice ReceiveL2Data once, then ReceiveL2Delta per changed level
Level 2 by order SubscribeToMarketByOrders ReceiveL2OrderBook on subscribe, then ReceiveL2Order per changed order

The trades feed suits candles and tape views: each ReceiveTrade holds one print with its tradeId, price, volume, condition codes and sequence, and a cancel arrives as its own event naming the print it cancels. Fill any gap after a reconnect from GET /pricing/trades/{live,delayed}/{security}/v2.

Authentication is the same bearer token; the hub reads it from the access_token query parameter or the Authorization header, and the SignalR clients pick the right one per transport.

Subscribing needs a streaming permission for the exchange: streaming-live or streaming-delayed for Level 1 and for trades, and streaming-live-l2 for either Level 2 feed.

The full reference follows below, from Market data streaming onward, and covers connecting, every hub method, every event and every payload. The same text is served as plain text at https://api.openmarkets.com.au/v1/market-data/docs/streaming.md for reading outside this page.

Market hours

ASX continuous trading runs 10:00 to 16:00 Sydney time, with the opening auction's prints stamped just before 10:00 (see Times) and the closing auction matching by about 16:12. Outside those hours a symbol holds its last known state and the stream stays quiet.

Rate limits

Each client holds an allowance per endpoint, counted over a one-second window. A request beyond it returns 429 Too Many Requests with a Retry-After header and an application/problem+json body whose detail names the allowance, and the allowance refills at the start of the next window. The live and delayed forms of an endpoint share one allowance.

Endpoint Requests a second
GET /exchanges/v2 30
GET /exchanges/v2/{code}/securities 30
GET /exchanges/v2/{code}/holidays 100
GET /securities/{exchange}/{symbol} 100
GET /securities/{mic}/{symbol}/adjustments 100
GET /securities/{mic}/{symbol}/dividends 100
POST /pricing/quotes/{live,delayed} 100
GET /pricing/timeseriesintraday/{live,delayed}/{security} 100
GET /pricing/trades/{live,delayed}/{security}/v2 100
GET /pricing/timeseries/{security} 100
GET /pricing/l2/live/{security} 100
GET /pricing/l2/live/{security}/orders 100

A 429 answer carries Retry-After: 1, the seconds to wait, and a one-line plain-text body, so key your retry on the status and the header. Wait that long, then send the request again: every window lasts one second, so a one-second wait always reaches the next window, also for a client that reads the status alone, such as a browser script. Spread a burst across the second to stay inside the allowance, and page through GET /exchanges/v2/{code}/securities one request after another.

Market data streaming

Real-time quotes, trades and order-book depth over a SignalR hub. The REST endpoints return a value as it stands when you ask; this hub pushes each change as the venue publishes it.

const connection = new signalR.HubConnectionBuilder()
  .withUrl("https://stage-stream.openmarkets.com.au/v1/market-data/hubs/marketdata", {
    accessTokenFactory: () => getAccessToken(),
    skipNegotiation: true,
    transport: signalR.HttpTransportType.WebSockets,
  })
  .build();

connection.on("ReceiveMarketData", (quote) => console.log(quote.symbol, quote.lastTradedPrice));
await connection.start();
await connection.invoke("SubscribeToSymbol", "LIVE", "BHP", "XASX");

Read this alongside the REST reference:

Endpoint

Environment Hub URL
Staging https://stage-stream.openmarkets.com.au/v1/market-data/hubs/marketdata
Production https://stream.openmarkets.com.au/v1/market-data/hubs/marketdata

Connect to the stream host. It is built for streaming and keeps a long-lived connection open for as long as your client holds it, up to the hour the token lasts.

The stream host is new. Hold its URL in configuration rather than in code, and confirm it with your integration contact before you go live. We will tell you ahead of any change.

The same hub also answers on the API host, as a fallback for a client that reaches only that one host:

Environment Fallback hub URL
Staging https://stage-api.openmarkets.com.au/v1/market-data/hubs/marketdata
Production https://api.openmarkets.com.au/v1/market-data/hubs/marketdata

A connection through the API host closes more often, from every few minutes to every few hours, so a client there leans harder on Reconnecting. Both hosts take the same token and the same subscriptions, and carry the same data.

The hub speaks the SignalR JSON protocol over WebSockets. Connect with the negotiate step skipped, as every example under Connecting does: the connection then opens in one request, on one server. The official SignalR clients (@microsoft/signalr for JavaScript, Microsoft.AspNetCore.SignalR.Client for .NET) and signalrcore for Python each have an option for it.

The hub runs on more than one server. A negotiated connection takes several requests, and an affinity cookie from the negotiate response steers them to the server holding the connection, as it does for the Server-Sent Events and long polling fallbacks. A client that drops the cookie can reach another server, which answers 404 with No Connection with that ID, and the connection fails to start. The JavaScript client reports it as No Connection with that ID: Status code '404'. In our tests, a client that dropped the cookie failed on 28 to 85 percent of its WebSocket starts, and on nearly every Server-Sent Events or long polling start. These clients drop it:

  • a web app on its own domain in Safari, in any browser on iPhone or iPad, in Brave, in a private or incognito window, or in any browser set to block third-party cookies;
  • signalrcore for Python, which ignores cookies;
  • a client library of your own that ignores cookies.

A connection with the negotiate step skipped is one request to one server, so it starts reliably in each of these.

Payload properties are camelCase, enums travel as strings, and every hub timestamp is UTC ISO 8601, ending in Z, with one exception: a trade event's tradeDateTime keeps the Sydney local time the REST trades row and V1 carry, beside tradeGmtDateTime in UTC. The REST endpoints follow a rule per field: the order book's adapterTimestamp is UTC, quotes, intraday bars and trades are Sydney local time written offset-free, and daily bar and dividend dates are Sydney trading dates written as midnight UTC (weekly to yearly bars write the period's closing date offset-free). The Times section of the REST reference lists each field.

Build against staging first. Staging carries the same contract as production.

Getting a token

The hub takes the same OAuth 2.0 bearer token as the REST endpoints, issued through the client-credentials grant. Your integration contact issues the client id and secret.

Environment Token endpoint
Staging https://stage-identity.openmarkets.com.au/connect/token
Production https://identity.openmarkets.com.au/connect/token

Request the marketdata-read scope:

curl -X POST https://stage-identity.openmarkets.com.au/connect/token \
  -d grant_type=client_credentials \
  -d client_id=YOUR_CLIENT_ID \
  -d client_secret=YOUR_CLIENT_SECRET \
  -d scope=marketdata-read

A client that already requests the V1 market-data-api scope adds marketdata-read to the same request (-d "scope=market-data-api marketdata-read"). The hub answers 403 at connect for a token that carries market-data-api alone, as every REST endpoint does.

The response carries an access_token and an expires_in in seconds. Cache the token until it nears expiry and request a fresh one after that.

Connecting

On the hub URL the token travels as the access_token query parameter or as an Authorization: Bearer header, and the hub reads either. Pass it through your client's token option, as each example below does, and the client sends it the way its transport needs.

const connection = new signalR.HubConnectionBuilder()
  .withUrl("https://stage-stream.openmarkets.com.au/v1/market-data/hubs/marketdata", {
    accessTokenFactory: () => getAccessToken(),
    skipNegotiation: true,
    transport: signalR.HttpTransportType.WebSockets,
  })
  .withAutomaticReconnect({ nextRetryDelayInMilliseconds: (ctx) => Math.min(30000, 1000 * 2 ** ctx.previousRetryCount) })
  .build();
var connection = new HubConnectionBuilder()
    .WithUrl("https://stage-stream.openmarkets.com.au/v1/market-data/hubs/marketdata", options =>
    {
        options.AccessTokenProvider = async () => await GetAccessTokenAsync();
        options.SkipNegotiation = true;
        options.Transports = HttpTransportType.WebSockets;
    })
    .WithAutomaticReconnect(new RetryForever())
    .Build();

// Retries for as long as the client runs, backing off to one attempt every 30 seconds.
sealed class RetryForever : IRetryPolicy
{
    public TimeSpan? NextRetryDelay(RetryContext context) =>
        TimeSpan.FromSeconds(Math.Min(30, Math.Pow(2, context.PreviousRetryCount)));
}

In Python, signalrcore takes the token function and skip_negotiation as options. Its own with_automatic_reconnect reconnects with the token from the first start(), which lasts an hour, so run the reconnect loop yourself, as below: each start() calls access_token_factory and sends a current token. The example runs as written on signalrcore 1.0.2.

import threading
import time

from signalrcore.hub_connection_builder import HubConnectionBuilder

connection = (
    HubConnectionBuilder()
    .with_url(
        "https://stage-stream.openmarkets.com.au/v1/market-data/hubs/marketdata",
        options={"access_token_factory": get_access_token, "skip_negotiation": True},
    )
    .build()
)
opened, closed = threading.Event(), threading.Event()
connection.on_open(opened.set)
connection.on_close(closed.set)
connection.on("ReceiveMarketData", on_quote)
connection.on("ReceiveMessage", print)

delay = 1
while True:  # reconnects for as long as the client runs
    opened.clear()
    closed.clear()
    try:
        connection.start()  # calls get_access_token, so each connect sends a current token
        if opened.wait(10):
            delay = 1
            for symbol in my_symbols:
                connection.send("SubscribeToSymbol", ["LIVE", symbol, "XASX"])
            closed.wait()
    except Exception as error:
        print("connect failed:", error)
    connection.stop()
    time.sleep(delay)
    delay = min(30, delay * 2)

With the negotiate step skipped, the client sends the token on the WebSocket request itself: as the access_token query parameter from a browser, and as an Authorization header from the .NET, Node.js and Python clients. A client library of your own connects the same way: open a WebSocket to wss://stage-stream.openmarkets.com.au/v1/market-data/hubs/marketdata?access_token=<token> and send the SignalR handshake {"protocol":"json","version":1} followed by the record separator 0x1E.

Every connection closes from time to time, so each example above reconnects for as long as your client runs. Reconnecting covers why connections close and what to do after each close.

The hub closes a connection when the token it connected with expires, so a connection lasts an hour at most. Each reconnect presents a token afresh, and the hub answers 401 to an expired one. accessTokenFactory, AccessTokenProvider and access_token_factory run on every connect, so return a current token from them: cache it and request a fresh one as it nears expiry, as Getting a token describes.

Permissions

A valid token connects you. Each subscribe is then checked against a permission held per venue, and a subscribe beyond your permissions replies on ReceiveMessage while the stream stays quiet, so handle that event from the start.

Subscribe method Permission required
SubscribeToSymbol / SubscribeToAll with LIVE streaming-live
SubscribeToSymbol / SubscribeToAll with DELAYED streaming-delayed
SubscribeToTrades / SubscribeToAllTrades with LIVE streaming-live
SubscribeToTrades / SubscribeToAllTrades with DELAYED streaming-delayed
SubscribeToMarketByPrice streaming-live-l2
SubscribeToMarketByOrders streaming-live-l2

Permissions are granted per client per venue. Confirm the ones you need with your integration contact before you start, because a grant still to be added shows up as a quiet stream.

The hub re-checks your permissions about once a minute while you stay subscribed, so a withdrawn permission takes effect within about two minutes. The hub then removes each subscription that depended on it and sends Permission withdrawn: unsubscribed from ... on ReceiveMessage. If a permission check keeps failing for five minutes, the hub pauses those subscriptions and sends Permission could not be confirmed: unsubscribed from .... The hub keeps checking, and once it confirms the permission again it puts each paused subscription back by itself and sends Permission confirmed again: resubscribed to .... A restored Level 2 subscription also receives ReceiveL2BookReset with reason subscription_restored, so take a fresh snapshot as for any reset. A paused subscription whose permission turns out withdrawn stays removed. You get one message per removed or restored subscription, and your other subscriptions keep streaming. Subscribe again to restore a withdrawn subscription once the permission is granted again.

Venues

Every method takes the venue as its last argument, as an ISO 10383 MIC.

MIC Venue Also accepted
XASX ASX ASX, AXW
CHIA Cboe Australia CXA
AUS ASX and Cboe Australia combined, the equivalent of V1's AUX

Pass the MIC. The alternatives are accepted for compatibility and resolve to the same venue, and the MIC is what comes back on every payload. Your permissions are held per venue, so a venue outside your grants replies with a permission message on ReceiveMessage. Level 2 depth covers XASX alone; see The two levels.

AUS combines two venues, so a subscribe on it needs the permission on both XASX and CHIA: streaming-live on both for LIVE, and streaming-delayed on both for DELAYED. A grant on one venue alone replies with the permission message. AUS quotes are FactSet's own consolidated record for ASX and Cboe Australia, and AUS subscribers receive each update to that record, the same record POST /pricing/quotes/live and /delayed serve for AUS. AUS serves Level 1; Level 2 depth comes per venue, from XASX.

ASX indices and indicative values

For example, SubscribeToSymbol("LIVE", "XJO", "XASX") streams the S&P/ASX 200 level as it moves. XASX serves three families of reference codes beside the listed securities, at Level 1:

Codes What they are Example
X… S&P/ASX index levels XJO S&P/ASX 200, XAO All Ordinaries, XVI S&P/ASX 200 VIX
Y… Indicative values (iNAV) of ASX exchange-traded funds: the ETF code with a Y prefix YSTW for STW
OX… Variants of index codes as FactSet publishes them OXJO

These codes carry their level in lastTradedPrice, with bid and ask fields at 0. An indicative value is a reference level for the fund; trade the ETF under its own code. Index volume reads in shares.

The two levels

Level 1 is the top-of-book quote: best bid and offer, the most recent trade, and the day's open, high, low, volume and turnover. Every update our feed delivers for a symbol, each quote change and each trade print, reaches you as a message of its own carrying the symbol's full state, in the order the feed delivered them.

If you are building anything off trades, read the next section first.

Trades

Every Level 1 message carries the most recent trade in lastTradedPrice, lastTradedVolume and lastTradedTime, plus the day's running tradedVolume, tradeCount, turnover and vwap. Each print publishes a message of its own, and an on-book print reaches you as lastTradedPrice as it happens, so a last price, a quote board or a day summary is already on the stream.

Each trade also arrives on its own as it happens, with its condition codes, its trade id and every cancel, once you call SubscribeToTrades for a symbol or SubscribeToAllTrades for a venue. The Trade section under Events describes the event.

GET /pricing/trades/live/{security}/v2 gives you each trade on its own, with its venue timestamp, price, volume, value and venue condition codes, over a range of up to a day. Use it for a trade history, and to fill in the prints from any stretch you spent disconnected. There is a 20-minute delayed version at GET /pricing/trades/delayed/{security}/v2. A trade event carries every field of a trades row under the same name, and adds a few of its own (listed under Trade), so one parser reads both.

The trades endpoints carry every print the venue counts in tradeCount, off-book prints included: special, late and portfolio crossings, combination legs, option exercises and Cboe NBBO crossings. Off-book prints can trade away from the order book and arrive after the close, so lastTradedPrice, high, low and the one-minute bars stay on the latest on-book print. The bars count on-book volume alone, so on a day with a crossing they sum to less than tradedVolume. Each off-book print carries its venue condition code (for example 259 special crossing, 251 late trade, 244 ETF special trade), and a Cboe NBBO crossing (299) also counts in the Cboe one-minute bars. Each row's lastPriceEligible reads false on an off-book print and true on an on-book print, and tradeId carries the venue's identifier for the print, which tells apart prints that share a time, price and volume.

A cancelled trade stays on the trades list with its reason set to Cancelled, and the minute chart leaves it out, from the moment the venue's cancel arrives. The one-minute and five-minute bars net the cancelled print out of their volume, value, trade count and prices. The row keeps the print's own time, price, positive volume and value, so a plain sum of tradeVolume counts cancelled trades too: for the volume that stands, sum the rows whose reason is other than Cancelled. The legacy tape showed a cancel as a second row with negative volume; this tape labels the original row instead.

Condition codes travel with each print on that REST endpoint, in its conditionCodes field: a space-separated string of numeric condition codes, where one trade can carry several (for example 279 391 on ASX or 313 50 355 299 on Cboe) and an empty string marks a regular trade. The API reference lists the codes ASX and Cboe trades carry under that field, with their meanings and the older letter codes they replace, and a code outside that list still marks a valid trade.

The trade events on the hub carry the same conditionCodes, reason, tradeId and lastPriceEligible as each REST row. Trades under Hub methods shows a client.

Level 2 is depth, in two shapes:

  • Market by price aggregates every order at a price into one level, which is what a depth ladder displays. Subscribe with SubscribeToMarketByPrice.
  • Market by order keeps each order separate, with its own id, price and volume. Subscribe with SubscribeToMarketByOrders.

Take market by price for a ladder, and market by order to see individual queue position. They are independent subscriptions and you can hold both.

Level 2 depth is served for XASX and CHIA. A Level 2 subscribe for any other recognised venue, AUS included, replies Level 2 depth is served for CHIA, XASX. AUS sits outside the served venues. on ReceiveMessage in place of a snapshot, so you can tell a venue outside our depth coverage apart from an empty book. A served book we have yet to receive arrives as an empty snapshot. Level 1 serves every venue. The REST routes /pricing/l2/live/{security} and /pricing/l2/live/{security}/orders answer the same venues with a 404 problem titled Venue not served.

Hub methods

Level 1

SubscribeToSymbol(dataMode, symbol, mic)
UnsubscribeFromSymbol(dataMode, symbol, mic)
SubscribeToAll(dataMode, mic)
UnsubscribeFromAll(dataMode, mic)

dataMode is LIVE or DELAYED, and each is entitled separately. A message carries the same shape in either mode, so hold one mode per connection. symbol is the exchange ticker, case-insensitive: BHP.

Both subscribe methods send the symbol's current quote as a snapshot and its live updates, all on ReceiveMarketData. The Snapshot, then updates section under Events walks through the sequence and the rule that keeps the two in order.

SubscribeToSymbol sends one message holding the symbol's current quote when we hold one; a symbol still waiting for its first quote sends its first message with its first update. SubscribeToAll sends one per symbol on the venue, which on ASX is thousands of messages in the first second, so size your handler for it or subscribe per symbol instead.

Level 2

SubscribeToMarketByPrice(symbol, mic)
UnsubscribeFromMarketByPrice(symbol, mic)
SubscribeToMarketByOrders(symbol, mic)
UnsubscribeFromMarketByOrders(symbol, mic)

Level 2 is live data, so these methods take the symbol and MIC alone.

Trades

This client keeps one symbol's trades for the day, including the cancels:

const trades = new Map(); // one entry per print
let snapshotLanded = false;
const early = [];

// A print is keyed by its tradeId, or by time, price and volume when its tradeId is null.
// tradeDateTime is on both the hub event and the REST row, so a gap-fill row keys the same way.
const keyOf = (t) => t.tradeId ?? `${t.tradeDateTime}|${t.tradePrice}|${t.tradeVolume}`;

// Takes a ReceiveTrade event or a REST gap-fill row.
function apply(t) {
  const key = keyOf(t);
  const held = trades.get(key);
  if (t.cancelsTrade) {
    // A cancel labels its print, which keeps its own positive volume.
    if (held) trades.set(key, { ...held, reason: t.reason, cancelledAt: t.cancelledAt });
  } else if (!held) {
    trades.set(key, t);
  } else if (t.reason === "Cancelled") {
    // A REST row shows a cancel as the reason on the print's own row.
    trades.set(key, { ...held, reason: t.reason });
  }
}

connection.on("ReceiveTradesSnapshot", (snapshot) => {
  for (const t of snapshot.trades) trades.set(keyOf(t), t);
  snapshotLanded = true;
  early.splice(0).forEach(apply); // events that arrived ahead of the snapshot
});
connection.on("ReceiveTrade", (t) => (snapshotLanded ? apply(t) : early.push(t)));

await connection.invoke("SubscribeToTrades", "LIVE", "BHP", "XASX");

// Volume that stands: every print whose reason reads other than "Cancelled".
const standingVolume = () =>
  [...trades.values()].filter((t) => t.reason !== "Cancelled").reduce((sum, t) => sum + t.tradeVolume, 0);
SubscribeToTrades(dataMode, symbol, mic)
UnsubscribeFromTrades(dataMode, symbol, mic)
SubscribeToAllTrades(dataMode, mic)
UnsubscribeFromAllTrades(dataMode, mic)

dataMode is LIVE or DELAYED, entitled as on Level 1, and symbol is the exchange ticker in any case. mic is XASX or CHIA. Trades are stored per venue, so a trade subscribe on AUS replies on ReceiveMessage with the venues to request instead, as the REST trades route does.

SubscribeToTrades sends ReceiveTradesSnapshot with up to the last 50 of today's prints for the symbol, oldest first, then the confirmation on ReceiveMessage, then a ReceiveTrade for each print and cancel from then on. A symbol yet to trade today sends a snapshot holding an empty list, so it reads apart from a refused subscribe. SubscribeToAllTrades sends a ReceiveTrade for every print and cancel on the venue, starting with the next one. Hold one data mode per connection, as on Level 1.

V1 served trade updates two ways: the polled pricing/trades/updates routes, and the V1 SignalR hub's SubscribeToTradeUpdates(), which pushed TradesUpdated(trades) batches to every subscriber. A client of the polled routes moves to SubscribeToTrades("LIVE", code, mic) per security, or to SubscribeToAllTrades("LIVE", mic) per venue, and keeps the REST trades route for history and for gap filling. A client of the V1 hub moves as follows:

V1 hub This hub
SubscribeToTradeUpdates() SubscribeToAllTrades("LIVE", "XASX") and SubscribeToAllTrades("LIVE", "CHIA"), one per venue, or SubscribeToTrades per security
TradesUpdated(trades), an array per batch ReceiveTrade, one event per print or cancel
Security on each trade securityCode with mic
Price on each trade tradePrice

Events

Register every event before calling start(), so the snapshot that follows a subscribe has somewhere to land.

Event Sent when
ReceiveMarketData The current Level 1 quote for a symbol: once as the subscribe snapshot for each symbol we hold a quote for, then once per update as each quote change and trade print arrives
ReceiveL2Data The full price ladder, sent once on subscribe
ReceiveL2Delta A single price level changed
ReceiveL2Order A single order was added, changed or removed
ReceiveL2OrderBook The resting orders for a symbol, as a bounded run of chunks
ReceiveL2BookReset A symbol's book was rebuilt, so your copy of it is finished
ReceiveTradesSnapshot Today's stored prints for a symbol, sent once on SubscribeToTrades
ReceiveTrade One trade print, or one cancel of an earlier print, as it happens
ReceiveMessage A subscribe confirmation, a validation message, a permission refusal, or a removed subscription, as a string

ReceiveMessage carries plain English text meant for a developer reading a log. Treat it as a diagnostic aid and drive your logic from the data events.

Level 1 quote

ReceiveMarketData carries one object per symbol:

{
  "mic": "XASX",
  "symbol": "BHP",
  "status": "active",
  "tradingPhase": "open",
  "provider": "FactSet",
  "bidPrice": 61.98,
  "bidVolume": 5000,
  "bidDepth": 12,
  "askPrice": 61.99,
  "askVolume": 3200,
  "askDepth": 8,
  "matchPrice": 0,
  "matchVolume": 0,
  "lastTradedPrice": 61.99,
  "lastTradedVolume": 250,
  "lastTradedTime": "2026-08-14T00:33:41.8210000Z",
  "open": 61.40,
  "high": 62.15,
  "low": 61.22,
  "close": 61.55,
  "tradedVolume": 4318220,
  "cvol": 4318220,
  "tradeCount": 8134,
  "turnover": 261048221.35,
  "vwap": 61.79,
  "venueTimestamp": "2026-08-14T00:33:41.8210000Z",
  "adapterTimestamp": "2026-08-14T00:33:42.1234567Z"
}
Field Meaning
mic ISO 10383 MIC of the venue
symbol Exchange ticker
status Trading state of the security, listed below
tradingPhase The trading phase that applies to this security, as the venue names it, lower-cased, listed below
provider Upstream source of the quote, currently FactSet on every message. Treat it as informational and drive logic from status
bidPrice / askPrice Best bid and best offer
bidVolume / askVolume Total volume resting at that price
bidDepth / askDepth Number of separate orders making up that volume, as the venue's Level 1 feed carries it. On ASX that feed leaves it at 0; POST /pricing/quotes/live serves bidCount / askCount from the depth book at the quoted price, and leaves the field out of the response for a side whose depth-book reading is unavailable, such as a price the book has yet to reach or a book that is temporarily offline
matchPrice / matchVolume Indicative auction match price and the volume that would match at it, carried while tradingPhase is one of the four call phases listed below. Both read 0 in every other phase, continuous trading included
lastTradedPrice Price of the most recent trade
lastTradedVolume Volume of the most recent trade
lastTradedTime Time of the most recent trade. Reads null for a security yet to trade
open Opening price today
high / low Highest and lowest trade prices today
close Closing price of the previous trading day
tradedVolume Cumulative volume traded today, the same figure as cvol and as totalVolume on POST /pricing/quotes/live. The latest print's own size is lastTradedVolume
cvol Accumulated volume today across eligible, ineligible and unofficial trades
tradeCount Number of trades today, counting eligible and ineligible trades
turnover Cumulative traded value today, in the venue's currency, to the cent
vwap Volume-weighted average price for the day, to 4 decimal places, the precision of the venue's trade prices
venueTimestamp When the venue published the update. Carries adapterTimestamp when the venue omits its own
adapterTimestamp When our platform published the update. Rises with every update for a symbol, and the subscribe snapshot repeats the stamp of the update it reflects

close is the previous day's close, which makes it the reference for a day-change calculation. Today's closing price arrives as lastTradedPrice once the closing auction has matched.

Every message carries the security's full current state, so each one is ready to store on its own. Replace your stored quote for that symbol whenever a message's adapterTimestamp is at or past the one you hold, as Knowing you have everything (Level 1) sets out.

Every numeric field is present on every message, and 0 stands in for a value the venue has yet to send today. A 0 price with 0 volume is an empty side. Ahead of a security's first trade of the day, open, high and low can still carry an earlier session's values, so check that lastTradedTime falls on today's Sydney date before you use them. POST /pricing/quotes/live serves them as 0 until then.

Status values

status reports the security's trading state as one of:

active, inactive, new, deleted, market_closed, no_open, opening_delay, regulatory_halt, quote_halt, quotes_resumed, trade_resumption, order_imbalance, volatility_pause, influx_of_orders, news_pending, news_dissemination, equipment_changes, ex_dividend, ex_distribution, ex_rights, ex_interest, other.

Treat active and trade_resumption as tradable and anything else as a reason to pause, and keep an other branch so a value you have yet to see leaves your handler intact.

Trading phase values

tradingPhase carries the trading phase that applies to this security, as the venue names it, lower-cased. ASX (XASX) and Cboe Australia (CHIA) name their phases in one vocabulary. The session phases:

pre_open, ospa, open, pre_cspa, cspa, post_close, adjust, adjust_on, purge_orders, system_maintenance, close,

plus the halt states for the security: pre_nr, trading_halt, suspend.

A quote holds its phase until the venue names the next one, so every message between two phase changes reads the same value. Cboe names each phase on a message of its own (pre_open at 07:00, ospa at 09:59:00, open at 09:59:50, a halt as it begins, post_close and adjust after the close), and a CHIA quote carries that phase on each quote and trade update that follows. A CHIA security and its XASX line each read their own venue's phase, and the two change at their own venue's times.

pre_open and ospa make up the opening call and pre_cspa and cspa the closing call. Through those four phases matchPrice and matchVolume carry the venue's latest indicative match, the price and volume that would uncross if the call ended now, and every other phase reads both as 0. status stays the security-level trading state, so read tradingPhase for the venue's phase that applies to this security and status for whether it is tradable. The field is empty ahead of the venue's first phase message, and a phase you have yet to see belongs in the same other branch as an unfamiliar status.

Mapping from V1 tradingStatus

status and tradingPhase together replace V1's single tradingStatus code. Both fields sit on every Level 1 hub message and on POST /pricing/quotes/live and /delayed. The table pairs each V1 code with what V2 sends for the same ASX security at the same moment, from paired V1 and V2 production captures of 19 to 21 October 2026.

V1 tradingStatus When V2 status V2 tradingPhase
P Opening call, 07:00 to 10:00 active pre_open, then ospa
P Closing call, 16:00 to about 16:10 active pre_cspa, then cspa
blank Continuous trading active, or trade_resumption after a pause open
N Paused for news (pre-NR) news_pending pre_nr before 10:00, open after
H Trading halt regulatory_halt trading_halt, or empty
S Suspension regulatory_halt suspend, or empty
B After the closing match, about 16:12 to 16:30 active post_close
A Evening adjust, from about 16:30 market_closed adjust, then adjust_on
C Overnight market_closed close
D After the close, for a security untraded that day active post_close

Key a halt on status: regulatory_halt, and tell a halt from a suspension by tradingPhase when the venue sends one. Key a news pause on status: news_pending, since tradingPhase moves to open with the rest of the session after 10:00. Key the auction match on the phase leaving the call: from pre_open or ospa to open, and from pre_cspa or cspa to post_close. The match then arrives as the last trade. After adjust_on the evening runs purge_orders, then close overnight.

Cboe Australia (CHIA) and AUS use the same two fields and the same values. V1's O, U and G have yet to appear in the paired captures; send your integration contact the symbol and time when you see one, and we add its row.

Snapshot, then updates

Both Level 1 subscriptions follow the same shape: the current quote as a snapshot, then an update each time it changes.

  • SubscribeToSymbol sends one ReceiveMarketData holding the symbol's current quote, and ReceiveMarketData on each update from the moment you subscribe.
  • SubscribeToAll sends one ReceiveMarketData per symbol on the venue, and ReceiveMarketData on each update to any of them.

The snapshot and the updates behind it arrive on one event, in one shape, and each carries the security's full state, so one handler covers both. Replace your stored quote for that symbol with any message whose adapterTimestamp is at or past the one you hold, the moment it arrives. Level 2 alone needs the buffer-and-replay routine described below.

The subscribe call sends the snapshot on ReceiveMarketData, then the confirmation on ReceiveMessage, and completes after both are queued to your connection, which delivers them in that order ahead of the completion. A symbol we hold a quote for sends it inside the call, stamped with the adapterTimestamp of the update it reflects. A symbol still waiting for its first quote sends the confirmation alone. A new listing then sends its first message with its first update, and a ticker outside the venue's securities list stays on the confirmation, which the securities check below settles. A refused subscribe completes the same way, with the reason on ReceiveMessage. So a call that completes with a quote behind it means we hold that symbol. A call that completes with the confirmation alone means a symbol still waiting for its first quote, or a refusal, and the text tells you which. Read that text while you integrate, and take the quote itself as the proof once you are live.

SubscribeToSymbol joins you to the symbol's live stream and then reads the snapshot, so an update can reach you just ahead of it; the adapterTimestamp rule below puts the two in order whichever lands first. SubscribeToAll sends every stored quote and then joins you to the venue's live stream, so a symbol that moved during the burst catches up on its next update, and a thinly traded symbol can wait a while for that. For the symbols you price or route against, SubscribeToSymbol closes that window. Holding both for one venue and data mode on one connection delivers each of that symbol's updates twice, once per subscription, with the same adapterTimestamp on each.

Updates arrive as they happen, one message per quote change or trade print, with each symbol's updates in the order we published them. Each one carries the symbol's full state as it stands after that update, and a symbol that stands still stays silent until it moves. One quiet symbol through continuous trading points at thin trading or at the ticker, which GET /securities/{exchange}/{symbol}?fields=isActive,isTradingSuspended,isCurrent settles: 200 for a security in our reference data, hybrids, notes and company options included, and 404 for a code outside it, such as a ticker the venue has yet to list. isTradingSuspended follows the venue's status on the Level 1 quote: true through a suspension, and false while the security trades or sits in a trading halt. isCurrent: false marks a code our reference data has stopped refreshing, most often a delisting: isTradingSuspended then reads null, and isActive reads false, with its delistedDate, for a security recorded as delisted or inactive, or one whose last daily close is more than one working day old, and null otherwise. A stream quiet across every symbol points at the clock, your grants or the feed, and the Market hours and Permissions sections cover each.

Volume and bursts

A busy symbol sends many messages a second, and the close brings the largest bursts. In production, Level 1 used to publish at most once a second per symbol, and twice a second in staging. Against production's once-a-second stream, every-update delivery carries about 2.2 to 2.3 times as many messages over a session for XASX, in LIVE and DELAYED alike, and about 4.5 times as many for CHIA in LIVE.

SubscribeToAll carries the rate for a whole venue, and each venue keeps a shape of its own. These figures are LIVE messages a second, averaged over each minute, from two sessions in October 2026 (times are Sydney time):

Venue Continuous trading First minutes after the open Minute up to 16:00 After 16:00
XASX about 150 to 300 up to about 600 up to about 950 about 80,000 messages inside one minute at the closing auction match, a little after 16:10
CHIA about 200 to 400 up to about 570 up to about 900 up to about 150

DELAYED on XASX follows the same shape 20 minutes later. A connection holding both venues receives their sum, about 1,700 to 1,850 messages a second in the minute up to 16:00. Each figure averages a minute, and the messages inside a minute arrive unevenly, so leave headroom above them.

Treat the stream as state to keep:

  • Keep your ReceiveMarketData handler short: store the message as the symbol's current quote and return. Your client runs the handler for each message in turn, so a slow handler delays every message behind it on the connection.
  • Run heavier work, such as redrawing a screen or recomputing a model, from a timer of your own that reads the stored quotes. Each tick then sees the latest state of every symbol, however many updates arrived in between.
  • Size for the close, and for SubscribeToAll above all: plan for the minute up to 16:00 at up to about six times the continuous-trading rate, and on XASX for the whole closing auction match arriving inside one minute.

Knowing you have everything (Level 1)

Level 1 carries state. Every message holds the complete current quote, so the latest message you hold for a symbol is its full current state, and the next message carries in full anything a lost one would have carried. A missed update leaves your copy one update behind until the next message arrives, and that message is the repair, which is what lets Level 1 position itself by timestamp alone. For a lost print, the running totals on the next message still count it, and the trades endpoint under Trades holds its own price and volume.

Keep the newest message per symbol. adapterTimestamp is read from our publisher's clock as we publish, and one publisher writes each symbol's updates in the order they arrive, so it rises with every update for a symbol, and the snapshot repeats the stamp of the update it reflects. Compare it as a parsed time, since the width of its fraction varies with the value. Then:

  1. Store the first message for a symbol together with its adapterTimestamp.
  2. On each later message, compare. A newer adapterTimestamp replaces your copy. An equal one is the same update reaching you again, through a snapshot or a second subscription, and replacing with it is harmless. An older one describes state you have already passed, so drop it and count the drop. A run of them on one symbol means the stamps have parted from your copy: re-subscribe, take that snapshot as your new copy, and tell us.

That rule puts a snapshot and a live update in order whichever lands first, and covers a message that reaches you out of turn. adapterTimestamp describes the message. venueTimestamp describes the venue's update and repeats adapterTimestamp when the venue omits its own, and lastTradedTime describes the trade, so both stay out of the comparison.

Level 1 carries its position as adapterTimestamp. epoch and seq belong to Level 2, where a book is built from deltas and a skipped frame leaves it wrong, and the sections below explain them.

Level 2 price ladder

ReceiveL2Data carries the market-by-price snapshot:

{
  "mic": "XASX",
  "symbol": "BHP",
  "bids": [{ "price": 61.98, "volume": 5000, "orders": 12 }],
  "asks": [{ "price": 61.99, "volume": 3200, "orders": 8 }],
  "status": "active",
  "crossed": false,
  "venueTimestamp": null,
  "adapterTimestamp": "2026-08-14T00:33:42.1234567Z",
  "epoch": 1755573600123,
  "seq": 84213,
  "tradingPhase": "open"
}

Bids are sorted high to low and asks low to high. orders is the count of individual orders resting at that price, and adapterTimestamp is when we last wrote this ladder from the feed. To judge a book's freshness, compare adapterTimestamp against the current time. A ladder updates only when its orders change, so an older adapterTimestamp also describes a quiet book; read it alongside tradingPhase and the symbol's Level 1 trades. The REST ladders at /pricing/l2/live/{security} and /pricing/l2/live/{security}/orders carry the same field. adapterTimestamp reads null while the book's write time is unknown.

status reports the security's trading state, using the same values as the Level 1 status listed above, so a handler you already have works here unchanged. It reads unknown when we hold no Level 1 quote for that security. venueTimestamp stays reserved and always null; take adapterTimestamp as the ladder's time.

tradingPhase is the venue's session phase, the same value as tradingPhase on the Level 1 quote, and null until the security's first phase message arrives. status is the security's halt and delay state, so it reads active through the opening and closing calls; the phase is what names an auction.

crossed is true when the best bid sits at or above the best ask, the same reading the REST ladder serves.

Read tradingPhase together with crossed. A crossed book is the venue's real state through an auction call, where orders accumulate until the auction matches them, and it is a defect during continuous trading. The pair tells you which one you are looking at:

tradingPhase crossed What it means
open false Continuous trading, book is clean.
pre_open, ospa, pre_cspa or cspa true An auction call. Expected.
open true Worth declining to price against, and worth telling us about.

A halted security (status such as regulatory_halt) can also hold a crossed book, and that one is the venue's real state too.

ReceiveL2Delta carries one changed price level:

{
  "symbol": "BHP",
  "mic": "XASX",
  "side": "B",
  "rank": 0,
  "price": 61.98,
  "volume": 5200,
  "orders": 13,
  "isDeleted": false,
  "epoch": 1755573600123,
  "seq": 84214
}

side is B for bid and S for ask. rank describes where the level sat when the message was produced and travels for compatibility; apply the delta by price, which addresses the level directly.

Level 2 orders

ReceiveL2Order carries one changed order:

{
  "symbol": "BHP",
  "mic": "XASX",
  "orderId": "ORD12345",
  "side": "B",
  "price": 61.98,
  "volume": 500,
  "isDeleted": false
}

orderId is unique within a symbol and venue for the trading day, and side uses the same B and S coding as the price-level delta.

price and volume are the order as it rests after the change, the same figures the snapshot and /pricing/l2/live/{security}/orders serve. A partial fill arrives as the order's remaining volume: an order resting 500 that trades 200 arrives with volume: 300. A fill that completes the order arrives with isDeleted: true and volume: 0, as does every removal. Each print's own size is lastTradedVolume on the Level 1 stream.

Snapshot, then deltas

Both Level 2 subscriptions follow the same shape: a snapshot first, then a stream of changes.

  • SubscribeToMarketByPrice sends one ReceiveL2Data holding the whole ladder, then ReceiveL2Delta per level change.
  • SubscribeToMarketByOrders sends the resting orders as a run of ReceiveL2OrderBook chunks, then ReceiveL2Order per order change. The snapshot runs bids first, then asks, each side best price first, and each price level front of the queue first, in the venue's time priority. The REST /pricing/l2/live/{security}/orders response uses the same order and numbers each order's place in queuePosition.

Deltas arrive in the order we published them. Your connection joins the live stream before we read your snapshot, so a delta can reach you ahead of it. Buffer from the moment you invoke the subscribe method, and the position below tells you exactly what to do with the buffer.

Knowing you have everything (market by price)

ReceiveL2Data and ReceiveL2Delta both carry two numbers that let you prove your book matches ours rather than assume it.

Field What it means What to do with it
epoch The generation of the book. Changes when we rebuild it. Compare for equality. A different value means discard your copy and take a fresh snapshot.
seq Frame number within an epoch, counting from 1. Compare for contiguity. seq should be exactly one more than the last you applied.

The snapshot carries the position it reflects, so on subscribe:

  1. Buffer every ReceiveL2Delta from the moment you invoke SubscribeToMarketByPrice.
  2. On ReceiveL2Data, take the ladder and record its epoch and seq.
  3. Drop buffered deltas whose seq is at or below the snapshot's, because the snapshot already holds them. Apply the rest in order.
  4. From then on, apply a delta when its seq is one past your last and its epoch matches.

A seq that skips means a frame is missing: re-invoke SubscribeToMarketByPrice for a fresh snapshot and start again from step 2. An epoch that differs means we rebuilt the book, and the same re-subscribe is the answer.

A stream that reports epoch: 0 and seq: 0 on every frame is one where the position is unavailable. Read it as gap detection being off for that stream, and keep applying deltas in the order they arrive.

ReceiveL2BookReset

{ "symbol": "BHP", "mic": "XASX", "epoch": 1755573600999, "reason": "adapter_start", "book": "price" }

Sent when we discard a symbol's book and rebuild it, which happens on an adapter restart, on a repair, at each session's reconnect, when we clear a book outside the vendor's own updates, and once each trading day for every market by price symbol: each book starts afresh when the worker opens its session at 07:15 Sydney time, and its reset arrives with the symbol's first frame after it. Discard your copy of that symbol and take a fresh snapshot. Anything you keep across a rebuild survives incorrectly, because a snapshot arrives as upserts and an upsert never removes a level the new book leaves out.

Both Level 2 subscriptions receive it: SubscribeToMarketByPrice for the price ladder, and SubscribeToMarketByOrders for the order book. book says which one: price for the market by price ladder, order for the market by order book. Discard only the book it names. On market by order, epoch reads 0, as it does on every frame of that stream for now.

reason is for your logs; every reason means the same thing to your code. Reasons you may see include adapter_start, ownership_taken, vendor_book_silent (the symbol stayed silent for ten minutes after its subscribe, so we serve it empty until its next update), vendor_refused (our data vendor declined the code's depth subscription, so the book stays empty), reimage_marker, post_auction (a book still crossed after an auction, rebuilt from a fresh image) and subscription_restored (a subscription paused while permission checks were failing is streaming again; this reset reports epoch: 0).

On market by price, epoch changes on the next delta as well, so treat this event as the quick signal and the epoch as the backstop. On market by order, the reset and the order updates travel separately, so the first updates of the rebuilt book can reach you ahead of the reset. When a market by order reset arrives, re-invoke SubscribeToMarketByOrders and rebuild from the snapshot it sends, which holds every order the updates carried.

Market by order

SubscribeToMarketByOrders sends the resting orders as a bounded run of ReceiveL2OrderBook chunks, then ReceiveL2Order per order change.

{ "symbol": "BHP", "mic": "XASX",
  "orders": [{ "symbol": "BHP", "mic": "XASX", "orderId": "ORD12345", "side": "B", "price": 61.98,
               "volume": 500, "isDeleted": false }],
  "chunkIndex": 0, "chunkCount": 1, "isLast": true,
  "epoch": 0, "seq": 0 }

Accumulate chunks and commit them as one book when a chunk carries isLast: true. A symbol with no resting orders still sends one chunk holding an empty list, so an empty book is something you receive rather than something you infer from silence. Discard a partial run if a fresh run starts before it completes.

ReceiveL2Order carries live changes alone. Buffer it from the moment you invoke the subscribe, commit the chunk run, then apply the buffered changes in order and every later one as it arrives.

Market by order reports epoch: 0 and seq: 0, so gap detection is unavailable on this feed for now. Use market by price for a book you need to be certain of, and talk to us before building anything that depends on market-by-order completeness.

A message with isDeleted: true removes that level or order from your copy. Everything else is an upsert: replace the level at that price, or the order at that id.

Key your local book the same way the server does: price levels by price, and orders by orderId. Keying by rank or by array position drifts, because removing one level shifts every level beneath it.

Trade

ReceiveTrade carries one print or one cancel:

{
  "symbol": "BHP",
  "securityCode": "BHP",
  "mic": "XASX",
  "exchange": "XASX",
  "tradeVolume": 1500,
  "tradeNumber": 100089420,
  "tradeId": "1410008942",
  "tradePrice": 45.12,
  "tradeValue": 67680,
  "tradeDateTime": "2026-10-27T09:59:00.343",
  "tradeGmtDateTime": "2026-10-26T22:59:00.343Z",
  "conditionCodes": "43 265",
  "reason": null,
  "lastPriceEligible": true,
  "cancelsTrade": false,
  "cancelledAt": null,
  "sequence": "1793055542100-0"
}

ReceiveTradesSnapshot carries { "symbol": "BHP", "mic": "XASX", "trades": [ ... ] }, each entry in the same shape.

Field What it holds
symbol, securityCode The exchange ticker. securityCode repeats it under its V1 name.
mic, exchange The venue, as an ISO 10383 MIC. exchange repeats it under its V1 name.
tradeVolume The shares traded. A cancel carries the cancelled print's own positive volume.
tradeNumber The V1 trade number on XASX prints, and null elsewhere.
tradeId The venue's identifier for the print, the key that tells apart prints sharing a time, price and volume.
tradePrice, tradeValue The price and value traded, in Australian dollars. tradeValue is tradePrice times tradeVolume.
tradeDateTime When the trade printed, in Sydney local time written offset-free.
tradeGmtDateTime When the trade printed, in UTC.
conditionCodes The venue condition codes, space separated, exactly as the REST trades row carries them. The REST reference lists the codes under that field.
reason Cancelled on a cancel, and on a snapshot print the venue has since cancelled. Null on a print that stands.
lastPriceEligible true for an on-book print, false for an off-book print.
cancelsTrade true when the event cancels the print tradeId names. With a null tradeId, it names the print with the same tradeGmtDateTime, tradePrice and tradeVolume.
cancelledAt When the venue cancelled the print, in UTC, on a cancel. Null on a print that stands.
sequence The event's position on the stream, rising strictly from one event to the next. Null on snapshot entries.

tradeDateTime is the one hub timestamp in Sydney local time, kept so the event matches the REST trades row and V1 field for field. Read tradeGmtDateTime for UTC.

sequence reads {milliseconds}-{counter}, where the milliseconds are the event's arrival on the stream in Unix time, a second or two after the print: the example above arrived at 2026-10-26T22:59:02.100Z. An event repeated after a reconnect carries the same sequence, so it spots a repeat as it stands; to order two events, split on - and compare each part as a number.

Mapping from V1 trade updates

V1 field Hub field Notes
SecurityCode securityCode Also as symbol.
Exchange exchange Carries the MIC: V1's ASX reads XASX and V1's CXA reads CHIA. Also as mic.
DataSource dropped Every hub trade comes from one source per venue, so the venue fields carry it.
TradeVolume tradeVolume
TradeNumber tradeNumber On XASX, tradeId with its first two characters dropped and 0 appended: 1410008942 reads 100089420. Null on CHIA.
TradePrice, TradeValue tradePrice, tradeValue
TradeDateTime tradeDateTime Sydney local time, offset-free, as in V1.
TradeGmtDateTime tradeGmtDateTime UTC.
ConditionCodes conditionCodes Numeric codes. The REST reference maps each older letter code to its numeric code.
Reason reason Cancelled on a cancel.

V1 showed a cancel as a second row with negative volume. Here a cancel arrives as its own event with cancelsTrade: true, the cancelled print's tradeId and its positive volume, and the print keeps its own row. For the volume that stands, sum the prints whose reason reads other than Cancelled, as the client under Hub methods does.

Timing

A trade event comes from the stored tape, so it reaches you about 1 to 3 seconds after the Level 1 message for the same print. Take the last price from ReceiveMarketData and the per-print detail from ReceiveTrade.

A DELAYED subscription receives each event 20 minutes and a few seconds after it happened: a print 20 minutes after its trade time, and a cancel 20 minutes after the cancel. Events keep their live order. A DELAYED snapshot runs to the same point, and a print the venue cancelled within the last 20 minutes reads as standing there, with its cancel following on ReceiveTrade once its own 20 minutes pass. An event whose venue stamp runs more than a minute ahead of its arrival on our side carries a skewed clock, and it follows 20 minutes after that arrival.

Snapshot, then trades

The hub joins you to the symbol's trades and then reads the snapshot, so an event can arrive in both. Buffer ReceiveTrade from the moment you invoke SubscribeToTrades, take the snapshot when it lands, then apply the buffered events, skipping a print whose tradeId the snapshot already holds. A print with a null tradeId matches on tradeDateTime, tradePrice and tradeVolume. Apply a cancel whichever way it arrives: labelling a print already labelled leaves it as it was. The client under Hub methods follows these steps.

Reconnecting

Every connection closes from time to time, so build reconnecting in from the start. The hub closes each connection when the token it connected with expires, and a deploy, or a server leaving as load falls, closes connections too. On the stream host those are the closes to expect: in a 19-hour staging test, each close there came from a token expiry or a server event. On the API host, the network in front of the hub also closes long-lived connections on its own schedule, after anywhere from a few minutes to a few hours and about once an hour on average on staging. Often the connection simply ends, before any close message reaches your client. After every close:

  1. Reconnect, and keep retrying for as long as your client runs.
  2. Connect with a current token. The token you started with lasts an hour, and the hub answers 401 to an expired one.
  3. Re-subscribe everything. Subscriptions live on the connection, so a reconnect leaves you connected with nothing flowing until you do. For Level 2, rebuild each book from the fresh snapshot its re-subscribe sends.

withAutomaticReconnect() retries the transport on a schedule, and the default schedule stops after four attempts inside about forty seconds. Pass a retry policy that keeps going, as the Connecting examples do, or handle onclose by starting a new connection and running the same re-subscribe. Automatic reconnect takes over once a connection has opened, so retry a failed first start() in a loop of your own. The re-subscribe snapshot carries the symbol's state up to that moment, and the stream carries everything after it. Re-subscribe every symbol, and SubscribeToAll if you hold it, in your onreconnected handler (the Reconnected event in .NET; the Python loop under Connecting re-subscribes after each start()):

connection.onreconnected(() => {
  for (const symbol of mySymbols) {
    connection.invoke("SubscribeToSymbol", "LIVE", symbol, "XASX");
    connection.invoke("SubscribeToMarketByPrice", symbol, "XASX");
  }
});

Each re-subscribe sends a fresh snapshot. For Level 1, take it as your new copy and its adapterTimestamp as your new position, whatever you held before. The rule accepts it on its own in the ordinary case, since the store holds the newest stamp, and a copy held across a disconnect is stale by definition. For Level 2, discard your local book and rebuild it from that snapshot, so a book that went stale while you were away starts clean.

For trades, re-subscribe each symbol with SubscribeToTrades and each venue with SubscribeToAllTrades too. The trade snapshot covers the last 50 prints, so a busy symbol can trade more than that while you are away. Fill the stretch from GET /pricing/trades/{live|delayed}/{security}/v2, starting at the last tradeDateTime you hold, and merge each row by tradeId (or, with a null tradeId, by tradeDateTime, tradePrice and tradeVolume). A REST row shows a cancel as reason: "Cancelled" on the print's own row, so for a print you already hold, copy the row's reason onto it; that is how a cancel from the stretch you missed reaches your copy. Add a row that is new to you as it stands. The apply function in the client under Hub methods takes REST rows and hub events alike. Do the same after Permission confirmed again: resubscribed to ... for a trade subscription: it resumes with the next event, and the trades endpoint holds the events from the paused stretch.

Market hours

ASX continuous trading runs 10:00 to 16:00 Sydney time (AEST or AEDT by season), with the closing auction matching by about 16:12 and delivering the day's closing price as lastTradedPrice. The opening auction's prints carry one time just before 10:00, the same for every security on the day, for example 09:59:00.343 Sydney time on 27 October 2026, which the hub writes as 2026-10-26T22:59:00.343Z. A security whose only trade so far is the opening match shows that time in lastTradedTime. Level 1 publishes from 07:00 to 20:00 Sydney time on weekdays, which covers the pre-open, continuous trading and the closing auction. The quote keeps the session's open, high, low and totals from the close until the feed rolls the record at 07:00 on the next weekday, on this stream and on POST /pricing/quotes/live and /delayed alike, overnight and across a weekend. Between 20:00 and 07:00 the connection stays open and the stream goes quiet, which is expected: a symbol holds its last state as of 20:00, and a subscribe returns it as the snapshot.

The feed rolls each record for the next session overnight, and the rolled record is the first message after 07:00: open, high, low, the bid and ask fields and the day's running totals at 0, close moved to the previous session's closing price, and lastTradedPrice still holding it. Its venueTimestamp and lastTradedTime still point at the previous session, and status reads market_closed. Take it as the day opening blank ahead of the pre-open.

Judge the connection by the transport state, and judge the feed by message arrival across symbols: a venue that goes quiet on every symbol inside continuous trading is worth a re-subscribe and a message to us.

Getting started

  1. Request a token and confirm your permissions for the venues you need.
  2. Connect and subscribe to one symbol, and watch for its snapshot on ReceiveMarketData, with the confirmation on ReceiveMessage in your log. That proves the token and its permissions end to end before you build anything on top.
  3. Handle ReceiveMarketData and store the quote per symbol, keeping the message with the latest adapterTimestamp.
  4. Add ReceiveL2Data and ReceiveL2Delta, keying your book by price.
  5. Leave a connection open on staging for a few hours, and check that after each close it reconnects with a current token and re-subscribes by itself.

Support

Contact your integration contact at Open Markets with the symbol, venue, UTC timestamp and the ReceiveMessage text you received. Those four identify a stream issue quickly.

API Staging Environment, used for development and testing.

Client Libraries