aftermath-ts-sdk - v3.3.3
    Preparing search index...

    Dynamic runtime state of a perpetuals market.

    These values are updated frequently and used to compute funding and other time-variant metrics.

    interface PerpetualsMarketState {
        cumFundingRateLong: number;
        cumFundingRateShort: number;
        feesAccrued: number;
        fundingLastUpdateTimestamp: number;
        openInterest: number;
        premiumTwap: number;
        premiumTwapLastUpdateTimestamp: number;
        spreadTwap: number;
        spreadTwapLastUpdateTimestamp: number;
    }
    Index
    cumFundingRateLong: number

    Cumulative funding rate for long positions.

    cumFundingRateShort: number

    Cumulative funding rate for short positions.

    feesAccrued: number

    Total fees accrued by the market.

    fundingLastUpdateTimestamp: number

    Last timestamp when funding was updated.

    openInterest: number

    Current open interest in the market.

    premiumTwap: number

    Premium TWAP value (book vs index).

    premiumTwapLastUpdateTimestamp: number

    Timestamp of last premium TWAP update.

    spreadTwap: number

    Spread TWAP value.

    spreadTwapLastUpdateTimestamp: number

    Timestamp of last spread TWAP update.