aftermath-ts-sdk - v6.7.0
    Preparing search index...

    Daily trading statistics, closing open interest, and funding for a perpetuals market.

    interface PerpetualsMarketDailyStatsRow {
        cumulativeLiquidatedNotionalUsd: number;
        cumulativeTakerTrades: bigint;
        cumulativeVolumeUsd: number;
        fundingRate?: number;
        fundingRateAnnualized?: number;
        fundingSettlements?: bigint;
        fundingUsdPerUnit?: number;
        liquidatedNotionalUsd: number;
        openInterestBase: number;
        openInterestUsd: number;
        takerTrades: bigint;
        timestamp: bigint;
        volumeUsd: number;
    }
    Index
    cumulativeLiquidatedNotionalUsd: number

    All-time liquidated notional in USD for this market up to and including this UTC day.

    cumulativeTakerTrades: bigint

    All-time taker trade count as bigint for this market up to and including this UTC day.

    cumulativeVolumeUsd: number

    All-time taker volume in USD for this market up to and including this UTC day.

    fundingRate?: number

    Mean hourly funding rate for this UTC day as a fraction (0.0000125 = 0.00125% per hour): the day's funding per base unit divided by its settlements and the last daily orderbook close on or before the day. Positive means longs paid shorts. The wire sends null when the day had no settlements or no price is known, which the SDK parses as undefined; also absent from backends that predate daily funding.

    fundingRateAnnualized?: number

    fundingRate × 8760 as a fraction (0.1095 = 10.95% APR). undefined whenever fundingRate is.

    fundingSettlements?: bigint

    Hourly funding settlements in this UTC day as bigint: 24n on a full day, fewer on the current or listing day, 0n before listing. Absent from backends that predate daily funding.

    fundingUsdPerUnit?: number

    Sum of this UTC day's funding in USD per 1 unit of the base asset, the same unit as funding history's longFundingRate. Positive means longs paid. Absent from backends that predate daily funding.

    liquidatedNotionalUsd: number

    Liquidated notional in USD, excluding auto-deleveraging and duplicate liquidator records.

    openInterestBase: number

    Last one-sided open interest in base units, carried forward over inactive days.

    openInterestUsd: number

    Base open interest times the last daily orderbook close on or before this UTC day, in USD; zero before the market's first candle.

    takerTrades: bigint

    Number of taker trades as bigint; maker fills are not counted separately.

    timestamp: bigint

    UTC day start in Unix milliseconds as bigint.

    volumeUsd: number

    Taker-side traded volume in USD.