Market Data errors
Errors returned by the Market Data REST API. This API returns RFC 7807 problem documents. Other Openmarkets APIs do not: the legacy Market Data, News and Order Management APIs return an errorCode envelope, and the back office APIs return a different one again.
This is not the format the legacy Market Data API returns. There are no errorCode values here, and errors is an object keyed by field rather than an array. Error handling ported from the legacy API has to be rewritten, not adapted.
Error format
Key your handling on the status code, because the shape of the body follows it. A 400, a 403 and the API's own 404 answers carry an application/problem+json body:
{
"type": "https://tools.ietf.org/html/rfc9110#section-15.5.5",
"title": "Security not found",
"status": 404,
"detail": "ZZZZ is an unknown security code on XASX.",
"traceId": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-00"
}
| Field | Description |
|---|---|
type | URI identifying the problem type. |
title | Short, stable summary of the problem type. This is the field to match on. |
status | The HTTP status code, repeated in the body. |
detail | Human readable explanation for this occurrence. Names the offending code where there is one. |
traceId | The W3C trace context identifier for the request. Quote it when you report a problem. |
instance | The path that produced it, where the answer carries one. |
A 400 raised by parameter validation adds an errors object, keyed by parameter name:
{
"title": "One or more validation errors occurred.",
"status": 400,
"errors": {
"DateTimeFrom": ["Please provide DateTimeFrom."]
}
}
Match on title and status rather than on detail. Detail is written for humans and names specific codes and values, so it changes; titles are stable.
Status codes
| Status | Body | What to do |
|---|---|---|
400 | Problem document, usually with errors | A parameter is missing, malformed or unrecognised. The body names it. |
401 | Empty, with WWW-Authenticate: Bearer | The token is missing, malformed or expired. Request a fresh one and send the call again. |
403 | Problem document | Your permissions exclude the venue or the data mode. The body names the venues. |
404 | Problem document, or empty for an unknown path | See the titles below. An empty body means the path itself does not exist. |
405 | Empty, with Allow | Wrong method for that path. The right one is in the Allow header. |
429 | Problem document, with Retry-After | You have used this endpoint's allowance for the current window. Wait the seconds in Retry-After, then send the request again. |
The 404 titles
The API separates three different causes under one status code, and the title is what tells them apart.
| 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. |
Each endpoint in the REST reference lists the 404 bodies it answers, so the ones to expect on a given route are the ones shown there.
An empty 404 body is not any of these. It means the path does not exist, which usually means a typo in the route or a call built against the legacy API's paths.
Rate limits
Each client holds an allowance per endpoint, counted over a one second window, and the allowance refills at the start of the next window. The live and delayed forms of an endpoint share one allowance.
A 429 carries Retry-After: 1, the seconds to wait. Every window lasts one second, so a one second wait always reaches the next window. Spread a burst across the second rather than firing it at once, and page through a securities listing one request after another.
The REST reference lists the allowance for every endpoint.
Quotes are not all or nothing
POST /pricing/quotes/live and /delayed check each requested security on its own. A security on a venue your access excludes, or carrying an unrecognised MIC, is named in unavailableSecurities and the rest of the batch is served normally:
{
"pricingQuotes": [{ "symbol": "BHP", "mic": "XASX" }],
"unavailableSecurities": ["EXAMPLE-ASX"]
}
An unknown security or exchange code answers here too, rather than as a 404, so a batch of nothing but unknown codes still answers 200:
{
"pricingQuotes": [],
"unavailableSecurities": ["ZZZZ-XASX", "BHP-XZZZ"]
}
Read unavailableSecurities beside pricingQuotes on every answer. The request answers 403 only when your access excludes every requested security. A security whose latest venue update is more than five trading sessions old is named there as well, since its quote would describe a session long past. A code that stays in unavailableSecurities across trading sessions is usually a listed but idle line (suspended, deferred settlement or a test code), a code that has moved, or a supply problem on our side. Report one that stays there while the venue shows it trading, with the code and the UTC time of the request.
Errors on the streaming hub
The hub does not use problem documents. A subscribe beyond your permissions, for an unknown code, or for a venue outside a feed's coverage replies on ReceiveMessage with plain text, and the stream stays quiet. Handle that event from the start, and see Streaming.

