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

    Interface PerpetualsTwapCreatePriceConditions

    Create-only price conditions for a new TWAP order.

    Directions are not sent — the perpetuals HTTP API derives them from the mark price at creation. Omit unused keys; omit the object entirely when both fields are empty (unconditional TWAP).

    Mark prices are human-readable numbers, matching stop-order trigger prices and public perpetuals market prices.

    Each price must be finite and greater than zero. NaN and Infinity serialize to JSON null, which the perpetuals HTTP API reads as "no condition" — an unconditional TWAP rather than an error. Validate before calling.

    interface PerpetualsTwapCreatePriceConditions {
        stopMarkPrice?: number;
        triggerMarkPrice?: number;
    }
    Index
    stopMarkPrice?: number

    Mark price that requests cancellation of the unexecuted remainder after activation. Finite and greater than zero.

    triggerMarkPrice?: number

    Mark price that delays first execution until the derived trigger condition is met. Finite and greater than zero.