Pacifica icon

Pacifica

Trade perpetuals and query data on Pacifica DEX

Position → Close Position

AI-generated

Summary

Closes an active perpetual position for a symbol by placing an opposing reduce-only market order for the full position size.

Inputs

  • positionSymbol (required) — Trading pair symbol of the position to close (e.g. BTC).
  • closeSlippage — Maximum slippage tolerance percentage for the closing market order. Defaults to 0.5.

Output shape

a single record

Returns the market order confirmation details. Throws an error if no active position with non-zero size exists for the specified symbol.

Examples

Example 1: Close an open BTC position with standard slippage

Symbol: BTC, Slippage %: 0.5

Example 2: Close an open ETH position in a fast-moving market

Symbol: ETH, Slippage %: 1.0

Links

Discussion