Market Data
Reference and historical market data for Australian listed securities, with real-time quotes, trades and order book depth over a streaming hub.
This is a separate API from the legacy Market Data API, not a new version of the same endpoints. It has its own host, its own scope, its own error format and its own venue codes, and a token issued for one does not authorise the other. The two run side by side, so migrate an integration endpoint by endpoint rather than all at once.
At a glance
| Version | 2.0.0 |
| Scope | marketdata-read |
| Staging | https://stage-api.openmarkets.com.au/v1/market-data |
| Production | https://api.openmarkets.com.au/v1/market-data |
| Streaming hub | https://stream.openmarkets.com.au/v1/market-data/hubs/marketdata |
| Error format | RFC 7807 application/problem+json. See Errors. |
The v1 in the base path is the route prefix every Openmarkets API on api.openmarkets.com.au carries. It is not the version of this API, and it does not change the fact that this is the second generation of Market Data.
Permissions are held per venue and per data mode. A request for data your permissions exclude returns 403, so confirm the grants you have been given before you start integrating.
What's in it
| Area | Purpose |
|---|---|
| Exchanges | The venues the API serves, their trading hours, delay and non-trading days, and the securities listed on each. |
| Pricing | Quotes, order book depth by price and by order, intraday and daily bars, and trades. |
| Securities | Company and security reference fields, dividends and price adjustments. |
| Streaming | Level 1 quotes, trades, and Level 2 depth over a SignalR hub, along with S&P/ASX index levels and ETF indicative values. See Streaming. |
Getting started
Request a token with the marketdata-read scope:
curl -X POST 'https://stage-identity.openmarkets.com.au/connect/token' \
-d grant_type=client_credentials \
-d client_id={client_id} \
-d client_secret={client_secret} \
-d scope=marketdata-read
Then list the venues available to you:
curl 'https://stage-api.openmarkets.com.au/v1/market-data/exchanges/v2' \
-H 'Authorization: Bearer {access_token}'
From there, POST /pricing/quotes/live returns quotes for the securities you name, each as symbol-mic, for example BHP-XASX.
| Environment | Token endpoint |
|---|---|
| Staging | https://stage-identity.openmarkets.com.au/connect/token |
| Production | https://identity.openmarkets.com.au/connect/token |
A client that already holds the v1 market-data-api scope adds this one to the same request: scope=market-data-api marketdata-read. See Authentication for the full flow.
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 |
The pricing endpoints take a listing code in place of the MIC, so 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 the API serves by MIC: XASX, CHIA, and AUS for the two combined. Level 2 depth, intraday bars and trades are served per venue, so AUS carries Level 1 quotes only. GET /exchanges/v2/{code}/holidays lists the days a venue does not trade, from three years back to two years ahead.
These codes are not the codes the Order Management API takes. OMS order destinations stay on the listing codes (ASX, AOM, AXW, CXA and the Cboe variants). Sending a MIC such as XASX to the OMS will not route.
Moving from the legacy API
| Legacy Market Data | Market Data | |
|---|---|---|
| Host | market-data-api.openmarkets.com.au | api.openmarkets.com.au/v1/market-data |
| Scope | market-data-api | marketdata-read |
| Venue codes | Listing codes, and dataSources such as CXA | ISO 10383 MICs, with listing codes accepted on pricing routes |
| Security identifier | Separate exchange and code parameters | One symbol-mic value, for example BHP-XASX |
| Errors | errorCode / message / errors[] | RFC 7807, keyed on status and title |
| Live updates | Poll an /updates/ route with X-Request-ID | Subscribe to the SignalR hub |
| Daily bar range | dateFrom and dateTo | DateTimeFrom and DateTimeTo |
| Security information | The whole record | The fields you name in Fields |
The reference carries the detail for each of these, including a field by field mapping for the trading status codes and for trade updates.

