---
updatedAt: 2026-08-13T16:51:12.000Z
agentTools:
  projectIndex: https://apidocliquidity.readme.io/llms.txt
---

# Sub Order History

Rate Limit:  3 requests per 10 seconds

> Retrieve finished orders.

## Request

| Name        | Type     | Mandatory | Description                       |
| :---------- | :------- | :-------- | :-------------------------------- |
| algoOrderId | `String` | Y         | Algo order ID                     |
| page        | `String` | N         | Current page(Default 1)           |
| pageSize    | `String` | N         | Page size(Default 1000, max 1000) |

## Response

[block:parameters]
{
  "data": {
    "h-0": "Field",
    "h-1": "Type",
    "h-2": "Remark",
    "0-0": "portfolioId",
    "0-1": "`String`",
    "0-2": "Portfolio ID",
    "1-0": "portfolioName",
    "1-1": "`String`",
    "1-2": "Portfolio Name",
    "2-0": "orderId",
    "2-1": "`String`",
    "2-2": "Order ID",
    "3-0": "clientOrderId",
    "3-1": "`String`",
    "3-2": "Customer-defined order ID",
    "4-0": "orderState",
    "4-1": "`String`",
    "4-2": "Order state(CANCELLED, FILLED,  REJECT, FAIL)",
    "5-0": "sym",
    "5-1": "`String`",
    "5-2": "Trading pair unique identifier(example:  \nBINANCE_SPOT_ETH_USDT, OKX_PEPR_ETH_USDT)",
    "6-0": "side",
    "6-1": "`String`",
    "6-2": "Side(BUY,SELL)",
    "7-0": "exchangeOrderType",
    "7-1": "`String`",
    "7-2": "Exchange order type(LIMIT, MARKET)",
    "8-0": "exchangeType",
    "8-1": "`String`",
    "8-2": "Exchange type(BINANCE, OKX)",
    "9-0": "businessType",
    "9-1": "`String`",
    "9-2": "Business type(SPOT, PERP)",
    "10-0": "orderQty",
    "10-1": "`String`",
    "10-2": "Order quantity, note: trading unit of OKX is the number of contracts/ trading unit of Binance is the number of coin",
    "11-0": "quoteOrderQty",
    "11-1": "`String`",
    "11-2": "Order quote quantity, only use for Spot Market Buy order",
    "12-0": "limitPrice",
    "12-1": "`String`",
    "12-2": "Order price",
    "13-0": "timeInForce",
    "13-1": "`String`",
    "13-2": "TimeInForce (default GTC,enums:GTC,IOC,FOK,GTX)",
    "14-0": "reason",
    "14-1": "`String`",
    "14-2": "Fail message",
    "15-0": "executedQty",
    "15-1": "`String`",
    "15-2": "Executed quantity, note: trading unit of OKX is the number of contracts/ trading unit of Binance is the number of coin",
    "16-0": "executedAvgPrice",
    "16-1": "`String`",
    "16-2": "Average transaction price",
    "17-0": "executedAmount",
    "17-1": "`String`",
    "17-2": "Executed quote quantity",
    "18-0": "reduceOnly",
    "18-1": "`String`",
    "18-2": "Reduce position orders only, \"true\" or \"false\"",
    "19-0": "lastExecutedQty",
    "19-1": "`String`",
    "19-2": "Last transaction quantity",
    "20-0": "lastExecutedPrice",
    "20-1": "`String`",
    "20-2": "Last transaction price",
    "21-0": "lastExecutedAmount",
    "21-1": "`String`",
    "21-2": "Last transaction amount",
    "22-0": "leverage",
    "22-1": "`Integer`",
    "22-2": "Leverage",
    "23-0": "fee",
    "23-1": "`String`",
    "23-2": "Executed transaction fee",
    "24-0": "borrowAmount",
    "24-1": "`String`",
    "24-2": "Borrow amount",
    "25-0": "borrowAsset",
    "25-1": "`String`",
    "25-2": "Borrow asset",
    "26-0": "positionSide",
    "26-1": "`String`",
    "26-2": "Position side,  `NONE/LONG/SHORT`, default `NONE`. `NONE` stands for one-way mode.",
    "27-0": "createAt",
    "27-1": "`String`",
    "27-2": "Create time",
    "28-0": "updateAt",
    "28-1": "`String`",
    "28-2": "Update time"
  },
  "cols": 3,
  "rows": 29,
  "align": [
    "left",
    "left",
    "left"
  ]
}
[/block]

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "ltp-api",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.liquiditytech.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://example.com/oauth2/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/api/v1/algo/history/subOrders": {
      "get": {
        "summary": "Sub Order History",
        "description": "Rate Limit:  3 requests per 10 seconds",
        "operationId": "sub-order-history-rest",
        "parameters": [
          {
            "name": "algoOrderId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Current page",
            "schema": {
              "type": "string",
              "default": "1"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Page size",
            "schema": {
              "type": "string",
              "default": "1000"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"code\": 200000,\n    \"message\": \"Success\",\n    \"data\": {\n        \"page\": 1,\n        \"pageSize\": 1000,\n        \"pageNum\": 1,\n        \"totalSize\": 1,\n        \"list\": [\n            {\n                \"portfolioId\": \"1730798094087000\",\n                \"orderId\": \"1735613056910000\",\n                \"algoOrderId\": \"674712518659\",\n                \"clientOrderId\": \"2024123110441600\",\n                \"exchangeType\": \"BINANCE\",\n                \"businessType\": \"PERP\",\n                \"sym\": \"BINANCE_PERP_ETH_USDT\",\n                \"limitPrice\": \"3343.35923485\",\n                \"orderQty\": \"0.01\",\n                \"quoteOrderQty\": \"0\",\n                \"side\": \"BUY\",\n                \"orderType\": \"DMA\",\n                \"exchangeOrderType\": \"MARKET\",\n                \"timeInForce\": \"GTC\",\n                \"executedQty\": \"0\",\n                \"executedAmount\": \"0\",\n                \"executedAvgPrice\": \"0\",\n                \"lastExecutedQty\": \"0\",\n                \"lastExecutedPrice\": \"0\",\n                \"lastExecutedAmount\": \"0\",\n                \"borrowAmount\": \"0\",\n                \"borrowAsset\": \"\",\n                \"fee\": \"\",\n                \"orderState\": \"FILLED\",\n                \"updateAt\": \"1735613056925\",\n                \"createAt\": \"1735613056910\",\n                \"reason\": \"\",\n                \"reduceOnly\": False,\n                \"leverage\": \"3\"\n            }\n        ]\n    }\n}"
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```