@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / index / PerpPositionRef

Interface: PerpPositionRef

Defined in: packages/sdk/src/perp/state.ts:474

Identifies one account's position in one perp pool — the (bank, account, pool) triple every per-position read keys on. Shared by getPerpPosition and getLiquidationPrice (perp/margin.ts); one object instead of three positional Address args (which compiled fine with any two swapped).

Properties

marginBank

marginBank: `0x${string}`

Defined in: packages/sdk/src/perp/state.ts:476

The MarginBank holding the position — comes off the PerpMarket row.


account

account: `0x${string}`

Defined in: packages/sdk/src/perp/state.ts:478

The position's owner.


pool

pool: `0x${string}`

Defined in: packages/sdk/src/perp/state.ts:480

The perp pool the position is in.