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

Version2.0.0
Scopemarketdata-read
Staginghttps://stage-api.openmarkets.com.au/v1/market-data
Productionhttps://api.openmarkets.com.au/v1/market-data
Streaming hubhttps://stream.openmarkets.com.au/v1/market-data/hubs/marketdata
Error formatRFC 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

AreaPurpose
ExchangesThe venues the API serves, their trading hours, delay and non-trading days, and the securities listed on each.
PricingQuotes, order book depth by price and by order, intraday and daily bars, and trades.
SecuritiesCompany and security reference fields, dividends and price adjustments.
StreamingLevel 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.

EnvironmentToken endpoint
Staginghttps://stage-identity.openmarkets.com.au/connect/token
Productionhttps://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 codeWhat it listsVenue MIC
ASXASX shares, company options, notes, hybrids and trustsXASX
AXWASX warrants and exchange-traded products, ETFs among themXASX
CXACboe Australia listingsCHIA

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 DataMarket Data
Hostmarket-data-api.openmarkets.com.auapi.openmarkets.com.au/v1/market-data
Scopemarket-data-apimarketdata-read
Venue codesListing codes, and dataSources such as CXAISO 10383 MICs, with listing codes accepted on pricing routes
Security identifierSeparate exchange and code parametersOne symbol-mic value, for example BHP-XASX
ErrorserrorCode / message / errors[]RFC 7807, keyed on status and title
Live updatesPoll an /updates/ route with X-Request-IDSubscribe to the SignalR hub
Daily bar rangedateFrom and dateToDateTimeFrom and DateTimeTo
Security informationThe whole recordThe 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.

Reference

REST referenceEvery endpoint, parameter and payload, plus the streaming hub reference. StreamingConnecting to the hub, the four feeds, permissions and keeping your copy correct. ErrorsProblem documents, the status codes, and what to do with each.