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

    Interface PerpetualsAccountMarginHistoryData

    Historical margin data point for an account, used in margin history views.

    interface PerpetualsAccountMarginHistoryData {
        availableCollateralUsd: number;
        boostedYieldUsd?: number;
        liquidatedFeesUsd: number;
        liquidatorFeesUsd: number;
        makerFeesUsd: number;
        makerVolumeUsd: number;
        realizedFundingsUsd: number;
        realizedPnlUsd: number;
        takerFeesUsd: number;
        takerVolumeUsd: number;
        timestamp: number;
        totalEquityUsd: number;
    }
    Index
    availableCollateralUsd: number

    Available collateral in USD.

    boostedYieldUsd?: number

    Boosted yield paid into a vault's account, in USD.

    A lifetime running total of every yield deposit made before the end of this snapshot's bucket, each valued at the collateral price when it landed. Subtract two snapshots for the yield within a window. The vault's boosted APR is derived from the same deposits.

    undefined for an account that is not a vault's account, when the yield data is unavailable, or on API deployments that predate the field (the API sends null, which this SDK decodes as undefined); every snapshot in one response agrees. A vault that has never received a yield reports 0. A deposit is added a minute or two after it lands, so the most recent snapshots may be revised.

    liquidatedFeesUsd: number

    Liquidated fees in USD at that time.

    liquidatorFeesUsd: number

    Liquidator fees in USD at that time.

    makerFeesUsd: number

    Maker fees in USD at that time.

    makerVolumeUsd: number

    Maker volume in USD at that time.

    realizedFundingsUsd: number

    Realized funding PnL in USD at that time.

    realizedPnlUsd: number

    Realized position PnL in USD at that time.

    takerFeesUsd: number

    Taker fees in USD at that time.

    takerVolumeUsd: number

    Taker volume in USD at that time.

    timestamp: number

    Timestamp of this snapshot.

    totalEquityUsd: number

    Total equity in USD.