@somnia-chain/markets-sdk / index / PerpSideHolders
Interface: PerpSideHolders
Defined in: packages/sdk/src/perp/margin.ts:1094
One side of one perp market's complete holder set, as of one block.
Properties
holders
holders:
`0x${string}`[]
Defined in: packages/sdk/src/perp/margin.ts:1100
Every account holding an open position on the requested side. Ordering is UNSPECIFIED by the contract and can change on any close — treat it as a set, never as a stable sequence. Empty when nobody holds that side.
asOfBlock
asOfBlock:
bigint
Defined in: packages/sdk/src/perp/margin.ts:1107
The block height every page was read at. Feed it into the reads that take
a block pin — getBankruptcyPrice's opts.blockNumber, and a sibling
call for the other side — to keep a sweep on one consistent snapshot.
(The other position/health reads answer at head only.)