user.account_risk
CHANNELAccount risk snapshot on a regular basis. Subscribe with channels ["user.account_risk"].wss://stream.crypto.com/exchange/v1/user
user.account_riskPrivate
Request
Body
required
Request id
Possible values: [subscribe]
params objectrequired
e.g. ["user.account_risk"]
Current timestamp in milliseconds
Schema
- Array [
- Array [
- ]
- Array [
- ]
- Array [
- Array [
- ]
- Array [
- ]
- ]
- ]
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.
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.
positions object[]
Account ID.
E.g. BTCUSD-PERP.
E.g. PERPETUAL_SWAP.
Position quantity.
Position cost or value in USD.
Profit and loss for the open position.
Open position cost.
Profit and loss in the current trading session.
Updated time (Unix timestamp).
Isolation ID of the isolated position.
Possible values: [ISOLATED_MARGIN]
Isolation type
Session unrealized PnL.
Position initial margin.
Position maintenance margin.
Market value.
Mark price.
Target leverage.
Leverage.
Liquidation price.
Isolated margin balance.
Effective leverage; present in user.account_risk and some WS responses. 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.
Isolation ID of isolated position.
The maximum leverage of the isolated position.
Possible values: [ISOLATED_MARGIN]
Isolation type
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.
positions object[]
Account ID.
E.g. BTCUSD-PERP.
E.g. PERPETUAL_SWAP.
Position quantity.
Position cost or value in USD.
Profit and loss for the open position.
Open position cost.
Profit and loss in the current trading session.
Updated time (Unix timestamp).
Isolation ID of the isolated position.
Possible values: [ISOLATED_MARGIN]
Isolation type
Session unrealized PnL.
Position initial margin.
Position maintenance margin.
Market value.
Mark price.
Target leverage.
Leverage.
Liquidation price.
Isolated margin balance.
Effective leverage; present in user.account_risk and some WS responses. Optional.