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

    Interface SdkPerpetualsPlaceSlTpOrdersInputs

    SDK-level inputs for placing stop-loss / take-profit orders bound to a specific market and position side.

    interface SdkPerpetualsPlaceSlTpOrdersInputs {
        builderCode?: PerpetualsBuilderCodeParamaters;
        gasCoinArg?: TransactionObjectArgument;
        isSponsoredTx?: boolean;
        limitOrderId?: bigint;
        marketId: string;
        size?: bigint;
        sponsor?: PerpetualsSponsorConfig;
        stopLossPrice?: number;
        takeProfitPrice?: number;
        triggerPriceType?: PerpetualsStopOrderTriggerPriceType;
        tx?: Transaction;
    }
    Index

    Optional integrator fee configuration applied when the SL/TP fires.

    gasCoinArg?: TransactionObjectArgument

    Optional gas coin argument.

    isSponsoredTx?: boolean

    Whether to treat the transaction as sponsored.

    limitOrderId?: bigint

    Unique order identifier for limit order sl/tp is tied to.

    marketId: string

    Market and position side targeted by the SL/TP orders.

    size?: bigint

    Optional target size for SL/TP orders (scaled base units).

    Optional gas pool sponsorship configuration.

    stopLossPrice?: number

    Price at which to trigger stop loss (interpreted per triggerPriceType).

    takeProfitPrice?: number

    Price at which to trigger take profit (interpreted per triggerPriceType).

    Which on-chain price the trigger uses: 0 = index (default), 1 = book, 2 = mark.

    tx?: Transaction

    Optional transaction to embed in.