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

    Type Alias ApiPerpetualsPreviewPlaceLimitOrderBody

    ApiPerpetualsPreviewPlaceLimitOrderBody: Omit<
        ApiPerpetualsLimitOrderBody,
        | "collateralChange"
        | "walletAddress"
        | "hasPosition"
        | "cancelSlTp"
        | "txKind"
        | "accountId"
        | "slTp",
    > & { leverage?: number; shouldDeallocateFreeCollateral?: boolean } & (
        | { accountId: PerpetualsAccountId
        | undefined }
        | { vaultId: ObjectId | undefined }
    )

    Request body for previewing a limit order placement (before sending a tx).

    This version is used by the API and includes account or vault context.

    Type Declaration

    • Optionalleverage?: number

      Optional leverage override for the preview.

    • OptionalshouldDeallocateFreeCollateral?: boolean

      If true, the preview includes deallocating free collateral (margin not backing a position) back to the wallet. Defaults to false.