@somnia-chain/markets-sdk


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

Interface: PerpPositionRef

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

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:252

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


account

account: `0x${string}`

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

The position's owner.


pool

pool: `0x${string}`

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

The perp pool the position is in.