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

    Type Alias SdkPerpetualsPlaceLimitOrderInputs

    SdkPerpetualsPlaceLimitOrderInputs: Omit<
        ApiPerpetualsLimitOrderBody,
        "accountId"
        | "txKind"
        | "slTp"
        | "walletAddress",
    > & {
        slTp?: {
            builderCode?: PerpetualsBuilderCodeParamaters;
            gasCoinArg?: TransactionObjectArgument;
            isSponsoredTx?: boolean;
            size?: bigint;
            stopLossPrice?: number;
            takeProfitPrice?: number;
            triggerPriceType?: PerpetualsStopOrderTriggerPriceType;
        };
        tx?: Transaction;
    }

    SDK-level inputs for placing a limit order from a client.

    Type Declaration

    • OptionalslTp?: {
          builderCode?: PerpetualsBuilderCodeParamaters;
          gasCoinArg?: TransactionObjectArgument;
          isSponsoredTx?: boolean;
          size?: bigint;
          stopLossPrice?: number;
          takeProfitPrice?: number;
          triggerPriceType?: PerpetualsStopOrderTriggerPriceType;
      }

      Optional stop-loss and take-profit configuration.

      • OptionalbuilderCode?: PerpetualsBuilderCodeParamaters

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

      • OptionalgasCoinArg?: TransactionObjectArgument

        Optional gas coin argument used when extending the transaction.

      • OptionalisSponsoredTx?: boolean

        Whether the transaction is sponsored rather than paid directly by the wallet.

      • Optionalsize?: bigint

        Order size in base units.

      • OptionalstopLossPrice?: number

        Stop-loss trigger price.

      • OptionaltakeProfitPrice?: number

        Take-profit trigger price.

      • OptionaltriggerPriceType?: PerpetualsStopOrderTriggerPriceType

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

    • Optionaltx?: Transaction

      Optional transaction to extend with the operation.