Get account
Returns account information for the requested address, including balances, collateral, and open positions. No authentication header is required.
Query Parameters
Master Ethereum address for this API key (must match address from POST /createApiKey for the same key). Required on REST for account-scoped reads and for place/cancel. Invalid hex → 400; mismatch with key → 403.
20-byte EVM address as hex: optional 0x or 0X prefix and exactly 40 hexadecimal digits. API responses normalize to lowercase a–f after 0x.
^(0x|0X)?[0-9a-fA-F]{40}$Response
Account details.
Account state including balances, collateral, and open positions. Returned by GET /account. Orders are served via the dedicated orders channel/endpoint.
Account index (account index, 0–9). Identifies the account for orders, positions, fills, and API keys.
0 <= x <= 9Ethereum address associated with the account.
^(0x|0X)?[0-9a-fA-F]{40}$Account's aggregate cash balance as of the last event, in full quote currency (decimal string). Equals Account.QuoteBalance + Σ Position.QuoteBalance (cross-margin scope). Changes only on external cash flows: deposits, withdrawals, fill cash flows (-sizeDelta × fillPrice), trading fees, and funding settlements. Internal margin reallocations leave it unchanged. Combine with live oracle prices to derive equity: equity = netQuoteBalance + Σ (size × oracle).
"100000"
"-25.5"
Total account equity in full quote currency (decimal string). Computed as netQuoteBalance + Σ (size × oracle) over all open positions. May differ from the engine's netQuoteBalance snapshot between fills as oracle prices move.
Collateral available for trading in full quote currency (decimal string). Computed as equity − Σ initial_margin_required across open positions.
Net deposits (deposits minus withdrawals) in full quote currency (decimal string).
"100000"
Pending deposit amount.
Pending withdrawal amount.
Open positions keyed by marketId (integer; 1=BTC-USD, 2=ETH-USD, etc). JSON keys are stringified integers.
Last processed engine sequence number for this account. Clients can use this to filter duplicate diffs and reconcile against streaming AccountUpdate events on the accounts channel.