{
  "path": "/spot/price_orders/{order_id}",
  "operation_id": "getSpotPriceTriggeredOrder",
  "auth_required": true,
  "parameters": [
    {
      "name": "order_id",
      "in": "path",
      "required": true,
      "description": "ID returned when order is successfully created",
      "schema": {
        "type": "string"
      }
    }
  ],
  "response_fields": {
    "200": {
      "description": "Auto order details",
      "fields": [
        {
          "path": "$",
          "type": "object",
          "description": "Spot price order details",
          "constraints": ""
        },
        {
          "path": "$.trigger",
          "type": "object",
          "description": "",
          "constraints": ""
        },
        {
          "path": "$.trigger.price",
          "type": "string",
          "description": "Trigger price",
          "constraints": ""
        },
        {
          "path": "$.trigger.rule",
          "type": "string",
          "description": "Price trigger condition\n\n- `>=`: triggered when market price is greater than or equal to `price`\n- `<=`: triggered when market price is less than or equal to `price`\n",
          "constraints": "枚举：>= / <="
        },
        {
          "path": "$.trigger.expiration",
          "type": "integer",
          "description": "Maximum wait time for trigger condition (in seconds). Order will be cancelled if timeout",
          "constraints": ""
        },
        {
          "path": "$.put",
          "type": "object",
          "description": "",
          "constraints": ""
        },
        {
          "path": "$.put.type",
          "type": "string",
          "description": "Order type，default to `limit`\n\n- limit : Limit Order\n- market : Market Order",
          "constraints": "默认：\"limit\"；枚举：limit / market"
        },
        {
          "path": "$.put.side",
          "type": "string",
          "description": "Order side\n\n- buy: buy side\n- sell: sell side",
          "constraints": "枚举：buy / sell"
        },
        {
          "path": "$.put.price",
          "type": "string",
          "description": "Order price",
          "constraints": ""
        },
        {
          "path": "$.put.amount",
          "type": "string",
          "description": "Trading quantity, refers to the trading quantity of the trading currency, i.e., the currency that needs to be traded, for example, the quantity of BTC in BTC_USDT.",
          "constraints": ""
        },
        {
          "path": "$.put.account",
          "type": "string",
          "description": "Trading account type. Unified account must be set to `unified`\n\n- normal: spot trading\n- margin: margin trading\n- unified: unified account\n",
          "constraints": "默认：\"normal\"；枚举：normal / margin / unified"
        },
        {
          "path": "$.put.time_in_force",
          "type": "string",
          "description": "time_in_force\n\n- gtc: GoodTillCancelled\n- ioc: ImmediateOrCancelled, taker only\n",
          "constraints": "默认：\"gtc\"；枚举：gtc / ioc"
        },
        {
          "path": "$.put.auto_borrow",
          "type": "boolean",
          "description": "Whether to borrow coins automatically",
          "constraints": "默认：false"
        },
        {
          "path": "$.put.auto_repay",
          "type": "boolean",
          "description": "Whether to repay the loan automatically",
          "constraints": "默认：false"
        },
        {
          "path": "$.put.text",
          "type": "string",
          "description": "The source of the order, including:\n- web: Web\n- api: API call\n- app: Mobile app",
          "constraints": ""
        },
        {
          "path": "$.id",
          "type": "integer",
          "description": "Auto order ID",
          "constraints": "格式：\"int64\""
        },
        {
          "path": "$.user",
          "type": "integer",
          "description": "User ID",
          "constraints": ""
        },
        {
          "path": "$.market",
          "type": "string",
          "description": "Market",
          "constraints": ""
        },
        {
          "path": "$.ctime",
          "type": "integer",
          "description": "Created time",
          "constraints": "格式：\"int64\""
        },
        {
          "path": "$.ftime",
          "type": "integer",
          "description": "End time",
          "constraints": "格式：\"int64\""
        },
        {
          "path": "$.fired_order_id",
          "type": "integer",
          "description": "ID of the order created after trigger",
          "constraints": "格式：\"int64\""
        },
        {
          "path": "$.status",
          "type": "string",
          "description": "Status\n\n- open: Running\n- cancelled: Manually cancelled\n- finish: Successfully completed\n- failed: Failed to execute\n- expired: Expired",
          "constraints": ""
        },
        {
          "path": "$.reason",
          "type": "string",
          "description": "Additional description of how the order was completed",
          "constraints": ""
        }
      ]
    }
  },
  "source_version": "v4.106.132",
  "source_url": "https://github.com/gate/gateapi-python/blob/cd2cac4d339ec0734480787d23c020f467fd7b80/openapi.yaml",
  "local_tool_limits": [
    "仅检查必填、枚举和简单数值范围",
    "复杂类型序列化、条件必填、时间窗口等以官方规则为准",
    "不会发起 API 请求"
  ]
}
