@somnia-chain/markets-sdk / index / AccountHealth
Interface: AccountHealth
Defined in: reads.ts:275
An account's cross-margin health, standalone (equity vs the IM/MM/CM requirements + the derived status). A lighter read than getMarginAccount when only health matters.
Properties
equity
equity:
bigint
Defined in: reads.ts:277
Account equity = unlockedCollateralBalance + Σ(uPnl) − Σ(fundingOwed) (signed).
imReq
imReq:
bigint
Defined in: reads.ts:278
mmReq
mmReq:
bigint
Defined in: reads.ts:279
cmReq
cmReq:
bigint
Defined in: reads.ts:280
marginStatus
marginStatus:
MarginStatus
Defined in: reads.ts:281