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

    A TWAP order as surfaced to clients by the read endpoint.

    interface PerpetualsTwapOrderData {
        collateralType: string;
        details: PerpetualsTwapOrderDetailsData;
        invalidReason?: string;
        lastExecutionTimestampMs: number;
        orderState: PerpetualsTwapOrderState;
        processedAmount: bigint;
        scheduledAmount: bigint;
        statusMessage?: string;
        twapOrderObjectId: string;
    }
    Index
    collateralType: string

    Collateral coin type backing the order.

    Order details.

    invalidReason?: string

    Reason the order is invalid, when orderState === "invalid".

    lastExecutionTimestampMs: number

    Timestamp (ms since epoch) of the most recent chunk execution.

    Current lifecycle state of the TWAP order.

    processedAmount: bigint

    Base-asset amount already executed (scaled base units).

    scheduledAmount: bigint

    Base-asset amount currently reserved for execution (scaled base units).

    statusMessage?: string

    Free-form status message about the order, if any.

    twapOrderObjectId: string

    ID of the TWAP order object on-chain.