binance_get_algo_order_history
List finished spot TWAP algo orders (filled, cancelled, expired) with optional filters to audit execution and reconcile historical trading activity.
Instructions
List finished spot TWAP algo orders — filled, cancelled or expired.
Calls GET /sapi/v1/algo/spot/historicalOrders (SIGNED, IP weight 1). Every filter is
optional: symbol, side, start_time, end_time. Binance's older reference marks
symbol and side as mandatory; the current per-endpoint page makes both optional, which
is what this tool follows — omit them for the whole account.
No maximum window is documented for this endpoint, so none is enforced here.
When to Use:
Reviewing how a TWAP actually executed once it is no longer open.
Reconciling a period: what algo orders ran, on what symbols, for how much.
When NOT to Use:
For orders still working —
binance_get_open_algo_orders.For the individual fills and fees of one order —
binance_get_algo_sub_orders; a row here only carries the aggregate.For ordinary spot order history —
binance_get_all_orders(spot_orders.py).
Returns:
A markdown table (bookTime, algoId, symbol, side, algoStatus, algoType, totalQty,
executedQty, executedAmt, avgPrice, urgency, endTime) capped at 50 rows, or the raw
{total, orders[]} payload with response_format="json" (which also carries
clientAlgoId).
Pagination:
page (1-based) and page_size (1-100, default 100) map to Binance's page /
pageSize. Only 50 rows are rendered, so a full 100-row page hides rows 51-100:
lower page_size to 50, or use response_format="json", for the rest.
Examples: params = {} params = {"symbol": "BTCUSDT", "side": "BUY", "page_size": 20} params = {"start_time": "2026-09-01", "end_time": "2026-09-23T23:59:59Z"}
Error Handling:
start_time / end_time accept epoch ms or ISO-8601; anything else fails locally
with a readable message. -2015 means the key lacks Reading permission or this IP is
not allowlisted. /sapi does not exist on the spot testnet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |