private/user-balance
POSTReturns the user's wallet balance./private/user-balance
Request
Body
required
Request id (echoed in response)
Must be "private/user-balance"
Your API key (only required for private REST)
HMAC-SHA256 signature in hex (only required for private REST)
Current timestamp in milliseconds, e.g. "1771761038000".
params objectrequired
Schema
- Array [
- Array [
- ]
- Array [
- Array [
- ]
- ]
- ]
Echoed request id
Method invoked
0 = success; non-zero indicates error (reason code).
result object
data object[]
Instrument name of the balance e.g. USD
Balance that user can open new order (Margin Balance - Initial Margin)
Positive cash balance on eligible collateral tokens + Negative balance on all tokens + Unrealised PnL - Fee reserves
Total margin requirement to support positions and all open orders IM and haircut from risk asset holdings. Total sum of total_position_im + total_haircut.
Total maintenance margin requirement for all positions
Position value in USD
Wallet Balance (Deposits - Withdrawals + Realized PnL - Fees)
Collateral Value
Current unrealized profit and loss from all open positions (calculated with Mark Price and Avg Price)
Current realized profit and loss from all open positions (calculated with Mark Price and Avg Price)
Describes whether the account is under liquidation
The actual leverage used (all open positions combined), i.e. position size / margin balance.
Maximum position size allowed (for all open positions combined)
Combined position size of all open positions + order exposure on all instruments
Sum of cash balance of the isolated positions
Optional; present in isolated position items.
Optional; present in isolated position items.
Total risk exposure. Optional.
Total borrow. Optional.
Margin score. Optional.
Whether the account has risk. Optional.
Whether the account is terminatable. Optional.
Credit limits; may be empty. Item shape TBD when non-empty. Optional.
position_balances object[]
Instrument name of the collateral e.g. USD
Quantity of the collateral
Market value of the collateral
true or false
Show haircut for eligible collateral token
Collateral amount derived by market_value minus haircut
Max withdrawal balance of the collateral
Fund/balance in use, not available for new orders or additional trading activities.
Hourly interest rate for the collateral; e.g. "0". Optional.
isolated_positions object[]
Instrument name of the balance e.g. USD
Balance that user can open new order (Margin Balance - Initial Margin)
Positive cash balance on eligible collateral tokens + Negative balance on all tokens + Unrealised PnL - Fee reserves
Total margin requirement to support positions and all open orders IM and haircut from risk asset holdings. Total sum of total_position_im + total_haircut.
Total maintenance margin requirement for all positions
Position value in USD
Wallet Balance (Deposits - Withdrawals + Realized PnL - Fees)
Collateral Value
Current unrealized profit and loss from all open positions (calculated with Mark Price and Avg Price)
Current realized profit and loss from all open positions (calculated with Mark Price and Avg Price)
Describes whether the account is under liquidation
The actual leverage used (all open positions combined), i.e. position size / margin balance.
Maximum position size allowed (for all open positions combined)
Combined position size of all open positions + order exposure on all instruments
Sum of cash balance of the isolated positions
Optional; present in isolated position items.
Optional; present in isolated position items.
Total risk exposure. Optional.
Total borrow. Optional.
Margin score. Optional.
Whether the account has risk. Optional.
Whether the account is terminatable. Optional.
Credit limits; may be empty. Item shape TBD when non-empty. Optional.
position_balances object[]
Instrument name of the collateral e.g. USD
Quantity of the collateral
Market value of the collateral
true or false
Show haircut for eligible collateral token
Collateral amount derived by market_value minus haircut
Max withdrawal balance of the collateral
Fund/balance in use, not available for new orders or additional trading activities.
Hourly interest rate for the collateral; e.g. "0". Optional.
Isolation ID of isolated position.
The maximum leverage of the isolated position.
Possible values: [ISOLATED_MARGIN]
Isolation type
Optional; sub-account ID in get-subaccount-balances.
Present when code !== 0.
Present when code !== 0.