• Create a CreateOrder action.

    Parameters

    • side: Side

      Order side ("buy" or "sell")

    • price: Numeric

      Price as human-readable string or raw bigint

    • quantity: Numeric

      Quantity as human-readable string or raw bigint

    • OptionalorderType: OrderType

      Order type (default: "Spot")

    Returns Action

    // Human-readable strings (auto-scaled by SDK):
    createOrderAction("buy", "0.02", "100")
    createOrderAction("sell", "0.05", "50", "PostOnly")

    // Raw bigints (pass-through, already scaled):
    createOrderAction("buy", 20000000n, 100000000000n)