{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/blockchain/refs/heads/main/json-schema/exchange-create-order-request-schema.json", "title": "CreateOrderRequest", "description": "Payload for submitting a new order.", "type": "object", "properties": { "clOrdId": { "type": "string", "description": "Client-supplied order identifier.", "example": "21745988181" }, "ordType": { "type": "string", "enum": [ "limit", "market", "stop", "stopLimit" ], "example": "limit" }, "timeInForce": { "type": "string", "enum": [ "GTC", "IOC", "FOK", "GTD" ], "example": "GTC" }, "symbol": { "type": "string", "example": "BTC-USD" }, "side": { "type": "string", "enum": [ "buy", "sell" ], "example": "buy" }, "orderQty": { "type": "number", "example": 0.5 }, "price": { "type": "number", "example": 72525.0 }, "stopPx": { "type": "number" }, "minQty": { "type": "number", "example": 0.5 }, "expireDate": { "type": "integer" } }, "required": [ "clOrdId", "ordType", "symbol", "side", "orderQty" ] }