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

Request

  • Base URL
    https://api.ondoperps.xyz
  • URL
    https://api.ondoperps.xyz/v1/perps/stop_order
  • Auth
    • HTTP bearer
    • or API key in header ONDO-KEY-ID

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"
  }
}

Changes

No recorded changes to this operation across all 2 revisions of this API.