v26

latestOpenAPI 3.0.2raw.githubusercontent.com2024-10-0834042975.6 KB
Spot Algo

Query Historical Algo Orders

Get all historical SPOT TWAP orders

Weight(IP): 1

get/sapi/v1/algo/spot/historicalOrders

Query parameters

symbolstring required
Example:BNBUSDT

Trading symbol, e.g. BNBUSDT

side'SELL' | 'BUY' required
Example:SELL
startTimeinteger

UTC timestamp in ms

endTimeinteger

UTC timestamp in ms

pageinteger
Example:1

Default 1

pageSizestring

MIN 1, MAX 100; Default 100

recvWindowinteger
Example:5000

The value cannot be greater than 60000

timestampinteger required

UTC timestamp in ms

signaturestring required

Signature

Response

twap historical orders

totalinteger required

Example response

{
  "total": 1,
  "orders": [
    {
      "algoId": 14517,
      "symbol": "ETHUSDT",
      "side": "SELL",
      "totalQty": "5.000",
      "executedQty": "0.000",
      "executedAmt": "0.000",
      "avgPrice": "0.00",
      "clientAlgoId": "d7096549481642f8a0bb69e9e2e31f2e",
      "bookTime": 1649756817004,
      "endTime": 1649756817004,
      "algoStatus": "WORKING",
      "algoType": "VP",
      "urgency": "LOW"
    }
  ]
}