Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

Resting orders

GET /v1/account/{addr}/orders
Needs a session for the address in the path.
The account's resting orders, newest first.
query statestring
Only resting is accepted, which is also the default.
query envelope1
Wrap the answer as {"position", "orders"}.
[ { "nonce": 42, "orderId": "1834:12", "underlyingKey": 7, "specifier": 859008923130267914, "side": 1, "size": 25, "remaining": 15, "limitPrice": 20000, "expiresAt": 200003600000, "ts": 199990000000 } ]
size is the order's size at entry, remaining what is still resting. expiresAt here is the contract's expiry. For an order that has ended, use order status.