Account Data
All account reads are open, keyed by either the 20-byte wallet or the 32-byte account id (see the account model). Paginated endpoints take limit (max 200) and offset, return total, and sort newest first unless noted.
State
Open orders & triggers
Both return the same item shape (shown here for a TRIGGER order — trigger_price, trigger_direction, tpsl, and is_trigger_market are TRIGGER-only and omitted on other rows). Note that read rows render enums in lowercase (side, status, tpsl), unlike the uppercase write vocabulary:
History
Adjust isolated margin
Adds or removes isolated margin on the open (account, market) position. Signed by the trading key as UpdateIsolatedMargin(bytes32 account,string market,string amount,uint256 nonce):
amountis a signed canonical decimal: positive adds margin from the free balance, negative removes it.noncehere is a JSON integer (the order routes carry it as a string).- The adjustment applies asynchronously. The submit response is
data: { request_id, status, reason? }withstatus∈SUBMITTED|REJECTED— a rejection is a 200 response, not an error. - Poll
GET /positions/margin/{requestId}for the outcome:status∈APPLIED|REJECTED(404 while still pending). reasonvalues (submit or outcome):NO_OPEN_POSITION,UNKNOWN_MARKET,INVALID_REQUEST,INSUFFICIENT_BALANCE,EXCEEDS_MAX_REMOVABLE,TRANSFER_DECLINED,DECLINED.
Next: Deposits & Withdrawals