{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blofin/json-schema/blofin-get-api-v1-spot-trade-orders-algo-pending-response-schema.json",
  "title": "GetApiV1SpotTradeOrdersAlgoPendingResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blofin-spot-api-openapi.yml#/components/schemas/GetApiV1SpotTradeOrdersAlgoPendingResponse",
  "type": "object",
  "properties": {
    "algoId": {
      "type": "string",
      "description": "Algo order ID"
    },
    "clientOrderId": {
      "type": "string",
      "description": "Client Order ID as assigned by the client"
    },
    "instId": {
      "type": "string",
      "description": "Instrument ID"
    },
    "marginMode": {
      "type": "string",
      "description": "Margin mode"
    },
    "positionSide": {
      "type": "string",
      "description": "Position side, long short net"
    },
    "side": {
      "type": "string",
      "description": "Order side"
    },
    "orderType": {
      "type": "string",
      "description": "Algo type, trigger"
    },
    "size": {
      "type": "string",
      "description": "Quantity to buy or sell"
    },
    "reduceOnly": {
      "type": "string",
      "description": "Whether the order can only reduce the position size"
    },
    "leverage": {
      "type": "string",
      "description": "Leverage"
    },
    "state": {
      "type": "string",
      "description": "State, live effective canceled order_failed"
    },
    "createTime": {
      "type": "string",
      "description": "Creation time, Unix timestamp format in milliseconds"
    },
    "triggerPrice": {
      "type": "string",
      "description": "Trigger price"
    },
    "triggerPriceType": {
      "type": "string",
      "description": "Trigger price type last: last price"
    },
    "brokerId": {
      "type": "string",
      "description": "Broker ID provided by BloFin"
    },
    "targetCurrency": {
      "type": "string",
      "description": "Order quantity unit setting for size"
    },
    "attachAlgoOrders": {
      "type": "array",
      "description": "Attached SL/TP orders info"
    }
  }
}