@somnia-chain/markets-sdk / index / PerpStateOnchain
Interface: PerpStateOnchain
Defined in: reads.ts:148
A perp pool's live pricing/funding state, read straight from chain in one pipelined fan-out. Fresher than the indexed Market row (funding fields there only update when FundingUpdated fires, i.e. per settlement window).
Properties
markPrice
markPrice:
bigint
Defined in: reads.ts:150
EMA-smoothed oracle mark price (raw quote units per whole base).
indexPrice
indexPrice:
bigint
Defined in: reads.ts:152
Unsmoothed oracle index price (raw quote units per whole base).
indexUpdatedAt
indexUpdatedAt:
bigint
Defined in: reads.ts:154
Index price oracle timestamp (seconds).
fundingRate
fundingRate:
bigint
Defined in: reads.ts:156
Current funding rate per settlement window (1e18-scaled fraction, signed).
cumulativeFundingPerUnit
cumulativeFundingPerUnit:
bigint
Defined in: reads.ts:158
Settled cumulative funding per base unit (1e18-scaled, signed).
projectedCumulativeFundingPerUnit
projectedCumulativeFundingPerUnit:
bigint
Defined in: reads.ts:160
Cumulative funding projected to now (unsettled accrual included).
longOpenInterest
longOpenInterest:
bigint
Defined in: reads.ts:162
Total long open interest in base units.
shortOpenInterest
shortOpenInterest:
bigint
Defined in: reads.ts:164
Total short open interest in base units.