{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/quote-trade/json-schema/quote-trade-regular-order-request-schema.json",
  "title": "RegularOrderRequest",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/quote-trade.openapi.yaml#/components/schemas/RegularOrderRequest",
  "type": "object",
  "additionalProperties": true,
  "required": [
    "symbol",
    "side",
    "quantity"
  ],
  "properties": {
    "symbol": {
      "type": "string",
      "description": "Supported symbol from getInstrumentPairs or exchangeInfo."
    },
    "side": {
      "type": "string",
      "enum": [
        "BUY",
        "SELL"
      ]
    },
    "quantity": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Positive base-asset quantity with up to six decimal places."
    },
    "type": {
      "type": "string",
      "enum": [
        "LIMIT",
        "MARKET"
      ],
      "default": "LIMIT"
    },
    "price": {
      "type": "number",
      "minimum": 0,
      "description": "Optional LIMIT price in USD with up to eight decimal places. A missing or zero LIMIT price requests server pricing. MARKET ignores this field."
    },
    "targetStrategy": {
      "type": "integer",
      "default": 0,
      "description": "Use 0 for a normal order or 204 with MARKET for aggressive execution."
    },
    "timeInForce": {
      "type": "string",
      "enum": [
        "GTC"
      ],
      "default": "GTC"
    },
    "newClientOrderId": {
      "type": "string",
      "minLength": 3,
      "description": "Client-provided unique ID. Do not also send clientOrderId."
    },
    "clientOrderId": {
      "type": "string",
      "minLength": 3,
      "description": "Accepted alias of newClientOrderId. Do not send both aliases."
    },
    "account": {
      "type": "integer",
      "format": "int64",
      "description": "Defaults to the authenticated user's account."
    },
    "isToClose": {
      "type": "integer",
      "enum": [
        0,
        1
      ],
      "default": 0
    },
    "disableLeverage": {
      "type": "integer",
      "enum": [
        0,
        1
      ],
      "default": 0
    },
    "blockWaitAck": {
      "type": "integer",
      "enum": [
        0,
        1
      ],
      "default": 1,
      "description": "Wait briefly for acknowledgement when 1; return immediately when 0."
    },
    "apiManaged": {
      "type": "boolean",
      "enum": [
        false
      ],
      "default": false,
      "description": "Must be omitted or false for this regular-order schema."
    },
    "timestamp": {
      "type": "integer",
      "format": "int64",
      "description": "Recommended request creation time in Unix milliseconds."
    },
    "recvWindow": {
      "type": "integer",
      "format": "int64",
      "minimum": 1,
      "maximum": 60000,
      "description": "Optional compatibility field for transports that validate freshness."
    }
  }
}