OANDA · Schema

OrderCancelReason

The reason that an Order was cancelled.

ForexFX TradingCFD TradingFinancial-ServicesTrading APIs
View JSON Schema on GitHub

JSON Schema

OrderCancelReason.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "OrderCancelReason",
  "description": "The reason that an Order was cancelled.",
  "type": "string",
  "enum": [
    "INTERNAL_SERVER_ERROR",
    "ACCOUNT_LOCKED",
    "ACCOUNT_NEW_POSITIONS_LOCKED",
    "ACCOUNT_ORDER_CREATION_LOCKED",
    "ACCOUNT_ORDER_FILL_LOCKED",
    "CLIENT_REQUEST",
    "MIGRATION",
    "MARKET_HALTED",
    "LINKED_TRADE_CLOSED",
    "TIME_IN_FORCE_EXPIRED",
    "INSUFFICIENT_MARGIN",
    "FIFO_VIOLATION",
    "BOUNDS_VIOLATION",
    "CLIENT_REQUEST_REPLACED",
    "INSUFFICIENT_LIQUIDITY",
    "TAKE_PROFIT_ON_FILL_GTD_TIMESTAMP_IN_PAST",
    "TAKE_PROFIT_ON_FILL_LOSS",
    "LOSING_TAKE_PROFIT",
    "STOP_LOSS_ON_FILL_GTD_TIMESTAMP_IN_PAST",
    "STOP_LOSS_ON_FILL_LOSS",
    "STOP_LOSS_ON_FILL_PRICE_DISTANCE_MAXIMUM_EXCEEDED",
    "STOP_LOSS_ON_FILL_REQUIRED",
    "STOP_LOSS_ON_FILL_GUARANTEED_REQUIRED",
    "STOP_LOSS_ON_FILL_GUARANTEED_NOT_ALLOWED",
    "STOP_LOSS_ON_FILL_GUARANTEED_MINIMUM_DISTANCE_NOT_MET",
    "STOP_LOSS_ON_FILL_GUARANTEED_LEVEL_RESTRICTION_EXCEEDED",
    "STOP_LOSS_ON_FILL_GUARANTEED_HEDGING_NOT_ALLOWED",
    "STOP_LOSS_ON_FILL_TIME_IN_FORCE_INVALID",
    "STOP_LOSS_ON_FILL_TRIGGER_CONDITION_INVALID",
    "TAKE_PROFIT_ON_FILL_PRICE_DISTANCE_MAXIMUM_EXCEEDED",
    "TRAILING_STOP_LOSS_ON_FILL_GTD_TIMESTAMP_IN_PAST",
    "CLIENT_TRADE_ID_ALREADY_EXISTS",
    "POSITION_CLOSEOUT_FAILED",
    "OPEN_TRADES_ALLOWED_EXCEEDED",
    "PENDING_ORDERS_ALLOWED_EXCEEDED",
    "TAKE_PROFIT_ON_FILL_CLIENT_ORDER_ID_ALREADY_EXISTS",
    "STOP_LOSS_ON_FILL_CLIENT_ORDER_ID_ALREADY_EXISTS",
    "TRAILING_STOP_LOSS_ON_FILL_CLIENT_ORDER_ID_ALREADY_EXISTS",
    "POSITION_SIZE_EXCEEDED",
    "HEDGING_GSLO_VIOLATION",
    "ACCOUNT_POSITION_VALUE_LIMIT_EXCEEDED",
    "INSTRUMENT_BID_REDUCE_ONLY",
    "INSTRUMENT_ASK_REDUCE_ONLY",
    "INSTRUMENT_BID_HALTED",
    "INSTRUMENT_ASK_HALTED",
    "STOP_LOSS_ON_FILL_GUARANTEED_BID_HALTED",
    "STOP_LOSS_ON_FILL_GUARANTEED_ASK_HALTED"
  ]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/OrderCancelReason"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.