Information
- OpenAPI version:
3.1.0
Your accounts, from your own software or AI agent: read them with any key; trade with a key made with « Allow trading » (scope trade), under the same rules and limits as the terminal. Beta: breaking changes are possible.
Authentication: Authorization: Bearer ppk_... (a key of your trader space, shown once). Every answer is
Cache-Control: no-store; errors are {"error": {"code", "source", "message", "detail", "trace_id"}}.
Numbers are integers: a quantity in units of the market (one unit is unit_e8 / 1e8 coin, unit_e8 from
/markets), an order price in micro-USD per unit, a quote (bid_e8, ask_e8) in USD x 1e8 per coin.
Account stream (WebSocket, not an OpenAPI operation): GET /v1/api/accounts/{account_id}/stream with the same
Authorization header on the upgrade. Messages {"ch", "account_id", "seq", "ts", "data"} on the channels orders,
executions, positions, account (risk) and equity, the current state first; ?since_seq=N replays the executions
after N; ?batch=1 sends JSON arrays. Close codes: 4401 key, 4404 account, 4429 limit, 4503 API off, 1013 try later.
Ppk_ followed by 40 letters and digits
Security scheme type: http
Bearer format: ppk_