MarginSummary

Documentation for eth_defi.hyperliquid.api.MarginSummary Python class.

class MarginSummary

Bases: object

Margin summary for a perpetual account.

Returned inside PerpClearinghouseState.

Attributes summary

account_value

Total account value in USD

total_ntl_pos

Total notional position size

total_raw_usd

Total raw USD balance

total_margin_used

Total margin used

Methods summary

__init__(account_value, total_ntl_pos, ...)

account_value: decimal.Decimal

Total account value in USD

total_ntl_pos: decimal.Decimal

Total notional position size

total_raw_usd: decimal.Decimal

Total raw USD balance

total_margin_used: decimal.Decimal

Total margin used

__init__(account_value, total_ntl_pos, total_raw_usd, total_margin_used)
Parameters
Return type

None