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

    24-hour volume and price change statistics for a single market.

    interface PerpetualsMarket24hrStats {
        basePrice: number;
        collateralPrice: number;
        markPrice: number;
        midPrice: number | undefined;
        priceChange: number;
        priceChangePercentage: number;
        volumeBaseAssetAmount: number;
        volumeUsd: number;
    }
    Index
    basePrice: number

    Latest base asset price for this market.

    collateralPrice: number

    Latest collateral asset price used in this market.

    markPrice: number

    Mark price used for liquidations and risk calculations.

    Computed as the median of the index TWAP, the current book-derived price, and the index price adjusted for funding contributions.

    midPrice: number | undefined

    Mid price derived from the current order book.

    Calculated as the average of the best bid and best ask. undefined if either side of the book is empty.

    priceChange: number

    Absolute price change over the last 24h, denominated in the base asset's quote units.

    priceChangePercentage: number

    Relative price change over the last 24h (e.g. +5% => 0.05).

    volumeBaseAssetAmount: number

    The total 24h volume measured in the base asset.

    volumeUsd: number

    The total 24h volume in USD.