{s}omniamarkets

@somnia-chain/markets-sdk


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

Interface: PerpPosition

Defined in: reads.ts:196

An account's position in one perp pool (from the MarginBank). size is signed base units: positive = long, negative = short, zero = flat.

Properties

size

size: bigint

Defined in: reads.ts:201

Signed position size in raw base units: positive = long, negative = short, zero = flat.


avgEntryPrice

avgEntryPrice: bigint

Defined in: reads.ts:203

Volume-weighted average entry price (raw quote units per whole base).


entryFundingIndex

entryFundingIndex: bigint

Defined in: reads.ts:205

Cumulative funding index at open / last settlement (1e18-scaled, signed).


lastUpdatedTimestampNs

lastUpdatedTimestampNs: bigint

Defined in: reads.ts:207

Last position update (nanoseconds).