@somnia-chain/markets-sdk


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

Interface: PerpPositionRef

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

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

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


account

account: `0x${string}`

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

The position's owner.


pool

pool: `0x${string}`

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

The perp pool the position is in.