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 URLhttps://api.ondoperps.xyz
- URLhttps://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
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.