Actions31
- Market Data Actions
- Account Actions
- Order Actions
- Position Actions
Position → Close Position
AI-generatedSummary
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