{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/kraken/refs/heads/main/json-schema/spot-rest-add-order-batch-request-schema.json", "title": "AddOrderBatchRequest", "description": "AddOrderBatchRequest schema from Kraken Spot REST API", "allOf": [ { "type": "object", "description": "All private requests include an incrementing nonce. Optionally an OTP for two-factor-protected keys.", "required": [ "nonce" ], "properties": { "nonce": { "type": "integer", "format": "int64", "example": 1717000000000 }, "otp": { "type": "string", "description": "Two-factor password / OTP if the key is OTP-protected.", "example": "123456" } } }, { "type": "object", "required": [ "pair", "orders" ], "properties": { "pair": { "type": "string", "example": "XBTUSD" }, "deadline": { "type": "string", "example": "string" }, "validate": { "type": "boolean", "example": true }, "orders": { "type": "array", "maxItems": 15, "items": { "type": "object", "properties": { "ordertype": { "type": "string", "example": "limit" }, "type": { "type": "string", "example": "buy" }, "volume": { "type": "string", "example": "0.01" }, "price": { "type": "string", "example": "0.01" }, "price2": { "type": "string", "example": "0.01" }, "userref": { "type": "integer", "example": 1 }, "oflags": { "type": "string", "example": "string" }, "starttm": { "type": "string", "example": "string" }, "expiretm": { "type": "string", "example": "string" } } }, "example": [] } } } ] }