Order history
Endpoint
POST /info
Selector: type: "historicalOrders"
Purpose
Returns retained customer order records, including their lifecycle status.
Authorization
Owner or approved reader for user. The SDK signs requests; raw clients use proof headers.
Request fields
| Field | Type | Required | Meaning |
|---|---|---|---|
type | String | Yes | historicalOrders. |
user | Address | Yes | Customer account address; the signer must own it or have read permission. |
Request example
{
"type": "historicalOrders",
"user": "0x1111111111111111111111111111111111111111"
}Response fields
| Field | Meaning |
|---|---|
order | Detailed order object. |
status | The order's current retained lifecycle status. |
statusTimestamp | Status time in Unix milliseconds. |
Response example
Illustrative response:
[
{
"order": {
"coin": "BTC",
"limitPx": "100000",
"oid": 42,
"side": "B",
"sz": "0.01",
"timestamp": 1796238000000,
"cloid": null,
"isPositionTpsl": false,
"isTrigger": false,
"orderType": "Limit",
"origSz": "0.01",
"reduceOnly": false,
"triggerCondition": "N/A",
"triggerPx": "0",
"children": [],
"tif": "Gtc"
},
"status": "open",
"statusTimestamp": 1796238000000
}
]Constraints
- Newest records first; at most 2,000 entries.
- The result is bounded retained history, not a complete archive guarantee.