Skip to main content
In our trading system, account balances aggregate settled cash activity and open position metrics to reflect your real-time financial state. Three balance views are provided: account equity, available balance, and withdrawable balance — each serving a different purpose.

Key Definitions

TermDescription
totalBalanceSettled cash balance — unaffected by index price movements
unrealizedPnLAggregate unrealized profit or loss across all open positions (see Position Metrics for the per-position formula)
accountEquitytotalBalance + unrealizedPnL
positionMarginCollateral locked per open position, calculated from the current index price
openOrderMarginCollateral reserved for open (unfilled) orders

Total Balance

Total balance accumulates all settled cash flows and does not fluctuate with index price movements.
totalBalance = deposits - withdrawals + realizedPnL - fees + fundingPayments

Account Equity

Account equity includes unrealized PnL, so it fluctuates in real time as the index price moves.
accountEquity = totalBalance + unrealizedPnL

Available Balance

Available balance is the amount free for new orders or withdrawals. It deducts position margin (computed at the current index price) and open order margin from account equity.
availableBalance = accountEquity - SUM(positionMargin) - openOrderMargin

where:
  positionMargin = indexPrice × ABS(positionQty) / leverage

Withdrawable Balance

Withdrawable balance is a more conservative measure than available balance. Unrealized profits cannot be withdrawn — only realized gains contribute. Unrealized losses reduce the withdrawable balance immediately, and margin is locked at the entry price rather than the current index price.
withdrawableBalance = totalBalance
                    + SUM(min(0, unrealizedPnL))          -- unrealized losses only
                    - SUM(entryPrice × ABS(positionQty) / leverage)  -- margin locked at entry price
                    - openOrderMargin

Usage in API

These calculations are used in the Get Account Balances response. Note that accountEquity is not returned directly — it can be derived as totalBalance + unrealizedPnl using the unrealizedPnl values from the Get Account Positions response. The top-level margin field in the balances response represents the total position margin in use across all markets.