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

    Latest unresolved TWAP action error on a TWAP order response.

    Surfaced by the perpetuals HTTP API. JSON null is converted to undefined by the SDK decode path (Caller / Helpers.parseJsonWithBigint), so clients only see omit/undefined when no error is present.

    interface PerpetualsTwapOrderLastError {
        action: PerpetualsTwapOrderAction;
        attempt?: PerpetualsTwapOrderAttempt;
        code: string;
        failedLeg?: PerpetualsTwapOrderFailedLeg;
        message: string;
        occurredAtMs: number;
        protocolCode?: number;
        protocolModule?: string;
        retryable: boolean;
    }
    Index

    Failed action that produced this error.

    Amount and prices of the execution that failed. Omitted for finalize and cancel errors and when the backend had no price for the market.

    code: string

    Stable product-facing error code for localization.

    Basket leg whose own fill check failed the shared slice. Every leg of the basket reports the same failing leg. Omitted for independent TWAP orders and when no leg can be named.

    message: string

    Controlled user-facing fallback message from the perpetuals HTTP API.

    occurredAtMs: number

    Milliseconds since the Unix epoch when the error occurred.

    protocolCode?: number

    Move abort code, when this is a protocol error.

    protocolModule?: string

    Move module that emitted the abort, when this is a protocol error.

    retryable: boolean

    Whether the failure is considered retryable. Does not imply a retry is currently running or change orderState.