POST /exchange. The server inspects the action.type field in the request body to determine which operation to execute, then recovers your wallet address from the accompanying ECDSA signature to authorize it. This unified design means you only need one integration point for all state-changing calls.
Endpoint
Request Envelope
Every request shares the same top-level envelope structure:Some actions accept additional envelope-level fields (such as
inviteCode for registerAccount). These sit alongside action, signature, and nonce — not inside action — and are not included in the signed payload.Authentication
All requests require a valid ECDSA signature. The server recovers your wallet address from the(r, s, v) tuple and uses it to authorize the operation — no API key header is needed. See the Authentication guide for details on what to sign and how to construct the signature.
Action Groups
Account
Register your wallet and enroll in market deployers.
Orders
Place, modify, and cancel perpetual orders.
Margin & Leverage
Adjust margin mode, leverage, and isolated margin balances.
Conditional Orders
Set and cancel take-profit, stop-loss, and other conditional orders.
Collateral
Lock, unlock, and transfer collateral across deployers and share groups.
Fee Settings & API Wallets
Configure fees and delegate signing to agent wallets.
All Available Actions
Account
Orders
Margin & Leverage
Conditional Orders
Collateral
Fee Settings
API Wallet
Response Shape
A successful request always returns HTTP 200 with"status": "ok":