Actions31
- Market Data Actions
- Account Actions
- Order Actions
- Position Actions
Order → Create Limit Order
AI-generatedSummary
Creates a limit order on the Pacifica DEX.
Inputs
- orderSymbol (required) — Trading pair symbol (e.g., BTC, ETH, SOL).
- side (required) — Order direction: Buy/Long (bid) or Sell/Short (ask).
- price (required) — Limit price for the order.
- amount (required) — Order amount in base asset units.
- tif — Time in force for the limit order. Options: GTC (Good Til Canceled), IOC (Immediate Or Cancel), ALO (Post Only), TOB (Time on Book). Default: GTC.
- reduceOnly — If true, the order can only reduce an existing position. Default: false.
- clientOrderId — Optional client-defined order identifier (UUID). Default: empty.
Output shape
object
Returns the parsed JSON response from the Pacifica API
/api/v1/orders/createendpoint, which includes details of the created limit order such as order ID, status, timestamps, and any associated take-profit/stop-loss data if provided.
Examples
Example 1: Place a GTC limit buy order for 0.01 BTC at $27,000
orderSymbol: BTC, side: bid, price: 27000, amount: 0.01, tif: GTC, reduceOnly: false