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

    Event emitted when spread TWAP is updated for a market.

    interface UpdatedSpreadTwapEvent {
        bookPrice: number;
        indexPrice: number;
        marketId: string;
        spreadTwap: number;
        spreadTwapLastUpdateMs: number;
        timestamp: number | undefined;
        txnDigest: string;
        type: string;
    }

    Hierarchy (View Summary)

    • Event
      • UpdatedSpreadTwapEvent
    Index
    bookPrice: number

    Current orderbook price, in quote units.

    indexPrice: number

    Oracle/index price, in quote units.

    marketId: string

    Market whose spread TWAP changed.

    spreadTwap: number

    Spread TWAP as a decimal price difference.

    spreadTwapLastUpdateMs: number

    Spread TWAP update timestamp in Unix milliseconds.

    timestamp: number | undefined

    Timestamp of the event, if available.

    txnDigest: string

    The transaction digest associated with the event.

    type: string

    A string identifying the Move event type.