Market Data errors

Errors returned by the Market Data REST API. The Market Data, News v1 and Order Management APIs share this format. Other Openmarkets APIs do not: the back office APIs return a different envelope, and Account Opening returns an RFC 7807 problem document.

Error format

All error responses carry an appropriate HTTP status code and the following body:

{
    "errorCode": "InvalidRequestParameters",
    "message": "Bad request. Please review errors.",
    "errors": [
        {
            "errorCode": "InvalidExchange",
            "fieldName": "Exchange",
            "fieldValue": null,
            "message": "Exchange cannot be empty."
        }
    ]
}
FieldDescription
errorCodeTop-level error code. Identifies the type of top-level error.
messageHuman readable message describing the error.
errorsArray of errors specific to invalid request parameters passed by the client. May be null.
errors[].errorCodeParameter-level error code. Identifies the type of parameter error.
errors[].fieldNameThe name of the field in the request.
errors[].fieldValueThe value passed in the field by the client.
errors[].messageHuman readable message describing the error.

Match on errorCode rather than message. Messages are written for humans and may change; codes are stable.

Top-level errors

StatusError codeNotes
400RequestMissingThe entire request is missing and needs to be set by the client.
400InvalidRequestParametersThe request contains invalid parameters. The offending parameters are listed in the errors array.
403AccessDeniedYour client doesn't have access to this endpoint. Try calling DELETE /sessions/application/v1 and retrying; if it still fails, contact support.
404EndpointNotFoundThe endpoint called does not exist.
429ApiCallsFrequencyExceededRequests exceeded the maximum allowed for the time period, for example 30 calls per second. Back off and retry with increasing delay.
429ActiveApiCallsExceededToo many requests are in flight at once. Active requests are those that have not returned yet, including open update subscriptions.
429MaxUpdatesQueuedExceededToo many updates queued since the last call. Poll the updates endpoint more often, or narrow the subscription so it returns fewer updates.
500InternalServerErrorAn unhandled error occurred. If it persists after retrying, contact support with the request made.
503ServiceUnavailableA temporary error occurred. If it persists after retrying, contact support with the request made.

Request tracking errors

Update subscriptions are correlated across calls by the X-Request-ID header. These parameter-level codes relate to that header.

Error codeNotes
InvalidRequestIdsThe RequestIds parameter passed in the request is invalid. See message for more details.
RequestAlreadyProcessedThe request ID used in the X-Request-ID header has already been processed by another request.
RequestAlreadyInUseThe request ID used in the X-Request-ID header is already being used for a different updates subscription.
RequestNotFoundThe request ID used to retrieve updates could not be found. Restart the updates subscription flow.

Parameter-level errors

Market and security selection

Error codeNotes
InvalidExchangeThe Exchange parameter passed in the request is invalid. See message for more details.
InvalidMarketThe Market parameter passed in the request is invalid. See message for more details.
InvalidMarketsThe Markets parameter passed in the request is invalid. See message for more details.
InvalidSecurityThe Security parameter passed in the request is invalid. See message for more details.
InvalidSecuritiesThe Securities parameter passed in the request is invalid. See message for more details.
InvalidSystemListNameThe SystemListName parameter passed in the request is invalid. See message for more details.

Date ranges

Error codeNotes
InvalidDateFromThe DateFrom parameter passed in the request is invalid. See message for more details.
InvalidDateToThe DateTo parameter passed in the request is invalid. See message for more details.
InvalidDateTimeFromThe DateTimeFrom parameter passed in the request is invalid. See message for more details.
InvalidDateTimeToThe DateTimeTo parameter passed in the request is invalid. See message for more details.
InvalidConsolidationIntervalThe ConsolidationInterval parameter passed in the request is invalid. See message for more details.

Data selection and depth

Error codeNotes
InvalidDataTypeThe DataType parameter passed in the request is invalid. See message for more details.
InvalidDataTypesThe DataTypes parameter passed in the request is invalid. See message for more details.
InvalidAskLevelMaxThe AskLevelMax parameter passed in the request is invalid. See message for more details.
InvalidBidLevelMaxThe BidLevelMax parameter passed in the request is invalid. See message for more details.
InvalidUpdatesThe Updates header parameter passed in the request is invalid. See message for more details.