DELETE
Cancel trade
Cancels a specific trade within a SmartTrade using its ID.
Keep in mind, to avoid canceling the SmartTrade, make sure to leave at least one step in the Take Profit trade and avoid deleting the Stop Loss trade.
DELETE/api/v1/smart_trades/:smart_trade_id/trades/:trade_id
dev_getting_started.permission:SMART_TRADES_WRITE
dev_getting_started.security:SIGNED
Path Parameters
smart_trade_idintegerdev_getting_started.required
Unique Quentrade ID for this SmartTrade entity.
trade_idintegerdev_getting_started.required
Unique Quentrade ID for Trade entity.
Example Request
DELETE/api/v1/smart_trades/30428625/trades/1008300673
Response Parameters
If successful response, the response includes a copy of the updated SmartTrade entity.
Example Response
cancel_trade_response.json
200 OK