WhiteBIT · Schema

OcoOrderLeg

OCO order leg as returned by `/api/v4/oco-orders` and `/api/v4/order/oco-cancel`. Field names use snake_case (`post_only`, `activation_price`) — unlike the camelCase legs returned by `/api/v4/conditional-orders`.

CompanyCryptocurrencyExchangeTradingWebSocket

Properties

Name Type Description
orderId integer Order identifier
clientOrderId string Custom order identifier. Empty string if not specified
market string Market name
side string Order side
type string Order type
timestamp number Unix timestamp in seconds (UTC) of order creation, with microsecond precision.
dealMoney string Executed amount in money
dealStock string Executed amount in stock
amount string Order amount
left string Unexecuted amount in stock
dealFee string Executed fee by deal
post_only boolean Post-only flag
feeAsset string Currency ticker of the asset used to pay the trading fee. Omitted when empty.
status string Order status (for example `OPEN` for an active leg, `CANCELED` after cancellation).
stp string Self-trade prevention mode. Possible values: `no`, `cb`, `cn`, `co`. Always returned in abbreviated form, even when the request used a legacy value.
positionSide string Position side of the leg. Present on futures markets (`BOTH` in one-way mode, `LONG`/`SHORT` in hedge mode); omitted on margin-spot markets.
reduceOnly boolean Reduce-only flag. When `true`, the leg can only reduce or close an existing position.
mtime number Unix timestamp in seconds (UTC), with microsecond precision, of the last time the matching engine modified the order.
price string Order price
activation_price string Activation price. Returned on the stop-loss leg
activation_condition string Trigger condition derived from `side` (response-only, cannot be overridden): `buy` → `gte`, `sell` → `lte`. Returned on the stop-loss leg.
activated integer Activation status (0 - not activated, 1 - activated). Returned on the stop-loss leg
View JSON Schema on GitHub

JSON Schema

whitebit-oco-order-leg-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/whitebit/main/json-schema/whitebit-oco-order-leg-schema.json",
  "title": "OcoOrderLeg",
  "description": "OCO order leg as returned by `/api/v4/oco-orders` and `/api/v4/order/oco-cancel`. Field names use snake_case (`post_only`, `activation_price`) — unlike the camelCase legs returned by `/api/v4/conditional-orders`.",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whitebit-http-trade-v4-openapi.yml#/components/schemas/OcoOrderLeg",
  "type": "object",
  "properties": {
    "orderId": {
      "type": "integer",
      "description": "Order identifier"
    },
    "clientOrderId": {
      "type": "string",
      "description": "Custom order identifier. Empty string if not specified"
    },
    "market": {
      "type": "string",
      "description": "Market name"
    },
    "side": {
      "type": "string",
      "description": "Order side",
      "enum": [
        "buy",
        "sell"
      ]
    },
    "type": {
      "type": "string",
      "description": "Order type"
    },
    "timestamp": {
      "type": "number",
      "description": "Unix timestamp in seconds (UTC) of order creation, with microsecond precision."
    },
    "dealMoney": {
      "type": "string",
      "description": "Executed amount in money"
    },
    "dealStock": {
      "type": "string",
      "description": "Executed amount in stock"
    },
    "amount": {
      "type": "string",
      "description": "Order amount"
    },
    "left": {
      "type": "string",
      "description": "Unexecuted amount in stock"
    },
    "dealFee": {
      "type": "string",
      "description": "Executed fee by deal"
    },
    "post_only": {
      "type": "boolean",
      "description": "Post-only flag"
    },
    "feeAsset": {
      "type": "string",
      "description": "Currency ticker of the asset used to pay the trading fee. Omitted when empty."
    },
    "status": {
      "type": "string",
      "description": "Order status (for example `OPEN` for an active leg, `CANCELED` after cancellation)."
    },
    "stp": {
      "type": "string",
      "description": "Self-trade prevention mode. Possible values: `no`, `cb`, `cn`, `co`. Always returned in abbreviated form, even when the request used a legacy value."
    },
    "positionSide": {
      "type": "string",
      "description": "Position side of the leg. Present on futures markets (`BOTH` in one-way mode, `LONG`/`SHORT` in hedge mode); omitted on margin-spot markets.",
      "enum": [
        "LONG",
        "SHORT",
        "BOTH"
      ]
    },
    "reduceOnly": {
      "type": "boolean",
      "description": "Reduce-only flag. When `true`, the leg can only reduce or close an existing position."
    },
    "mtime": {
      "type": "number",
      "description": "Unix timestamp in seconds (UTC), with microsecond precision, of the last time the matching engine modified the order."
    },
    "price": {
      "type": "string",
      "description": "Order price"
    },
    "activation_price": {
      "type": "string",
      "description": "Activation price. Returned on the stop-loss leg"
    },
    "activation_condition": {
      "type": "string",
      "description": "Trigger condition derived from `side` (response-only, cannot be overridden): `buy` → `gte`, `sell` → `lte`. Returned on the stop-loss leg.\n",
      "enum": [
        "gte",
        "lte"
      ]
    },
    "activated": {
      "type": "integer",
      "description": "Activation status (0 - not activated, 1 - activated). Returned on the stop-loss leg"
    }
  }
}

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/whitebit-oco-order-leg"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

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