Query account information. No signature required - read-only operation.
Accepts a JSON body with POST request.
Query types:
fullAccount: Complete state (margin + positions + orders + leverage settings)openOrders: Only resting ordersfills: Trade history (last 5000 fills)positions: Closed position history (last 5000 positions)fundingHistory: Funding payment history (last 5000 payments)orderHistory: Terminal order history (last 5000 orders)fullAccount, openOrder, fills, positions, fundingPayment, or orderHistory) depending on the query type.
type: "fullAccount". Returns complete state: margin, positions, open orders, and leverage settings.
totalBalance, availableBalance, marginUsed, notional, realizedPnl, unrealizedPnl, fees, funding
Position fields: symbol, size, price, fairPrice, notional, realizedPnl, unrealizedPnl, leverage, liquidationPrice, fees, funding, maintenanceMargin, lambda, riskAllocation, allocMargin
type: "openOrders". Returns up to 5000 resting orders; each item is an object with key openOrder.
type: "fills". Returns up to 5000 recent fills; each item has key fills.
normal, liquidation, adl
normal - Manually closed by userliquidation - Closed due to liquidationadl - Closed due to auto-deleveragingtype: "orderHistory". Returns up to 5000 terminal orders; each item has key orderHistory.
filled - Fully filledpartiallyFilled - Partially filledcancelled - Cancelled by usercancelledRiskLimit - Risk limit exceededcancelledSelfCrossing - Self-trade preventioncancelledReduceOnly - Would increase positioncancelledIOC - IOC expiredrejectedInvalid - Invalid parametersrejectedRiskLimit - Risk limit on submissionrejectedCrossing - Post-only would crossrejectedDuplicate - Duplicate order IDSuccessful response
Complete account state with margin, positions, orders, and leverage settings