PerpPosition
Represents a perpetual futures position.BN
required
Size of the position in base asset units (positive for long, negative for short)
BN
required
Quote asset amount for the position (tracks notional value)
BN
required
Quote entry amount (used for PnL calculation)
BN
required
Quote break-even amount including fees
number
required
Index of the perpetual market
BN
required
Last cumulative funding rate applied to this position
number
required
Number of open orders for this market
BN
required
Total bid amount from open orders
BN
required
Total ask amount from open orders
BN
required
Settled profit and loss for this position
Liquidity provider shares for this market
number
required
Maximum margin ratio for this position
number
required
Position flags (isolated, being liquidated, etc.)
SpotPosition
Represents a spot market position (deposit or borrow).number
required
Index of the spot market
SpotBalanceType
required
Whether this is a DEPOSIT or BORROW position
BN
required
Scaled balance (multiply by cumulative interest to get actual balance)
number
required
Number of open orders for this market
BN
required
Total bid amount from open orders
BN
required
Total ask amount from open orders
BN
required
Cumulative deposits over lifetime
PoolBalance
Represents a balance in a pool (fee pool, PnL pool, etc.).BN
required
Scaled balance amount
number
required
Market index this pool belongs to
HealthComponent
Breakdown of health calculation components.number
required
Market index for this component
BN
required
Size of the position or balance
BN
required
Value in quote asset
BN
required
Weight applied (asset or liability weight)
BN
required
Final weighted value
HealthComponents
Complete breakdown of account health calculation.HealthComponent[]
required
Array of deposit components
HealthComponent[]
required
Array of borrow components
HealthComponent[]
required
Array of perpetual position components
HealthComponent[]
required
Array of perpetual PnL components
AccountLiquidatableStatus
Indicates whether an account can be liquidated.boolean
required
Whether the account is eligible for liquidation
BN
required
Total margin requirement for the account
BN
required
Total collateral value
LiquidationRecord
Record of a liquidation event.BN
required
Timestamp of liquidation
PublicKey
required
User being liquidated
PublicKey
required
Liquidator account
LiquidationType
required
Type of liquidation
BN
required
Margin requirement at time of liquidation
BN
required
Total collateral at time of liquidation
BN
required
Margin freed by liquidation
boolean
required
Whether the account was bankrupt
SettlePnlRecord
Record of a PnL settlement event.BN
required
Timestamp of settlement
PublicKey
required
User account
number
required
Market index
BN
required
Settled PnL amount
BN
required
Base asset amount of position
BN
required
Quote asset amount after settlement
BN
required
Price at which settlement occurred
SettlePnlExplanation
required
Reason for settlement
FundingPaymentRecord
Record of a funding payment.BN
required
Timestamp of funding payment
PublicKey
required
User authority
PublicKey
required
User account
number
required
Market index
BN
required
Funding payment amount (positive = paid, negative = received)
BN
required
Position size at time of payment