v1

latestOpenAPI 3.0.32026-07-267278168.1 KB
Stop Orders

Remove Stop Order

Remove a stop order. If no type is specified, removes both stop loss and take profit. For how stop orders work, see Take profit and stop loss.

delete/v1/perps/stop_order

Query parameters

marketstring required
Example:AAPL-USD.P

Perps market

type'stopLoss' | 'takeProfit'
Example:stopLoss

The type of stop order to remove. Either "stopLoss" or "takeProfit". If not set, removes both stop loss and take profit orders.

Response

Remaining stop orders for the market after removal

successboolean required

Whether the request was successful

errorstring

Error message, present only on failure

error_codestring

Semantic error code. See each endpoint's error responses for the specific codes it can return.

deprecatedstring

Deprecation notice, if applicable

Example response

{
  "success": true,
  "result": {
    "market": "AAPL-USD.P",
    "positionDirection": "long",
    "stopLoss": "8.00",
    "takeProfit": "9.00"
  }
}