ConditionalOrderLeg
Conditional-order leg as returned by `/api/v4/conditional-orders`. Field names use camelCase (`postOnly`, `activationPrice`) — unlike the snake_case legs returned by `/api/v4/oco-orders` and `/api/v4/order/oco-cancel`; do not treat the two shapes as interchangeable.
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 |
| postOnly | boolean | Post-only flag. Omitted when not set |
| 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. Omitted when not set. |
| 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 |
| activationPrice | string | Activation price. Returned on the stop-loss leg; omitted when not set |
| activationCondition | string | Trigger condition derived from `side` (response-only, cannot be overridden): `buy` → `gte`, `sell` → `lte`. Returned on the stop-loss leg; omitted when not set. |
| activated | integer | Activation status (0 - not activated, 1 - activated). Omitted when not set |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/whitebit/main/json-schema/whitebit-conditional-order-leg-schema.json",
"title": "ConditionalOrderLeg",
"description": "Conditional-order leg as returned by `/api/v4/conditional-orders`. Field names use camelCase (`postOnly`, `activationPrice`) — unlike the snake_case legs returned by `/api/v4/oco-orders` and `/api/v4/order/oco-cancel`; do not treat the two shapes as interchangeable.",
"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/ConditionalOrderLeg",
"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"
},
"postOnly": {
"type": "boolean",
"description": "Post-only flag. Omitted when not set"
},
"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. Omitted when not set."
},
"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"
},
"activationPrice": {
"type": "string",
"description": "Activation price. Returned on the stop-loss leg; omitted when not set"
},
"activationCondition": {
"type": "string",
"description": "Trigger condition derived from `side` (response-only, cannot be overridden): `buy` → `gte`, `sell` → `lte`. Returned on the stop-loss leg; omitted when not set.\n",
"enum": [
"gte",
"lte"
]
},
"activated": {
"type": "integer",
"description": "Activation status (0 - not activated, 1 - activated). Omitted when not set"
}
}
}
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.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/whitebit-conditional-order-leg"
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.