Pacifica icon

Pacifica

Trade perpetuals and query data on Pacifica DEX

Order → Create Stop Market Order

AI-generated

Summary

Create a stop market order on Pacifica DEX that triggers when the market price reaches the specified stop price, then executes a market order to close a long or short position.

Inputs

  • orderSymbol (required) — Trading pair symbol (e.g., BTC, ETH, SOL).
  • stopOrderSide (required) — Position side this stop order is for. Options: Long (close long position) or Short (close short position).
  • amount (required) — Order amount in base asset units.
  • stopPrice (required) — Trigger price for the stop order.
  • slippagePercent — Maximum slippage tolerance (e.g., 0.5 = 0.5%).
  • reduceOnly — Whether the order can only reduce an existing position.
  • clientOrderId — Optional client-defined order identifier (UUID).

Output shape

object

Returns the created stop market order details from the Pacifica API, including the order ID and status.

Examples

Example 1: Close a long BTC position when price falls to $27,000

orderSymbol: BTC, stopOrderSide: Long (close long position), amount: 0.001, stopPrice: 27000, slippagePercent: 0.5, reduceOnly: true

Links

Discussion