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

Fills

GET /v1/account/{addr}/fills
Needs a session for the address in the path.
The account's fills, newest first, each from the account's own side.
query limitintegerdefault: 200
At most 500.
query beforeinteger
A fill's seq, to page backwards from it.
query envelope1
Wrap the answer as {"position", "fills"}.
[ { "seq": 55120, "ts": 199990001234, "underlyingKey": 7, "specifier": 859008923130267914, "side": 1, "size": 10, "price": 20000, "fee": 20000, "role": "maker", "close": 0, "open": 10, "positionAfter": -10, "nonce": 42 } ]
close and open split the fill into the part that closed an existing position and the part that opened a new one; positionAfter is the net position after it.