/api/v1/smart_trades/:id
Updates an existing SmartTrade in place using its ID. Modifying SmartTrade parameters is available for entities in waiting_position or waiting_targets status.
Path Parameter
Unique Quentrade ID for this SmartTrade entity.
Body Parameters
4Details of the Leverage applied to this SmartTrade.
Enables leverage settings for this SmartTrade. Set to true to activate. Default: false
Leverage type for the futures account: cross or isolated.
Cross or isolated leverage multiplier value based on exchange rules and currency limits.
Settings of the position applied to this SmartTrade (available if waiting_position).
Details of the units applied to this SmartTrade [value: number].
Details of the price applied to this SmartTrade [value: number].
Settings of conditional order: [order_type: string] (market, limit), [price: object] (type: bid/ask/last, value: number), and [trailing: object] (enabled: boolean, percent: number).
Details of Take Profit settings and multi-target steps applied to this SmartTrade.
Enables Take Profit for this SmartTrade. Set to true to activate. Default: false
Detailed conditions for each Take Profit step: [id: integer], [order_type: market/limit], [volume: number], [price: object] (type: bid/ask/last, value/percent: number), and [trailing: object] (enabled: boolean, percent: number min: 0.01 max: 100 for the last step).
Details of Stop Loss protection applied to this SmartTrade.
Enables Stop Loss for this SmartTrade. Set to true to activate. Default: false
Enables Move to Breakeven. Requires at least two Take Profit steps. Default: false
Stop Loss type: market or limit. Required when stop_loss[enabled] is true.
Direct price value configuration [value: number].
Conditional Stop Loss settings [price: object (type, value, percent), trailing: object (enabled: boolean)].
Timeout delay configuration [enabled: boolean, value: integer (in seconds)].
Response Parameters
If successful, the response includes an updated copy of the SmartTrade entity.
Example Request
Example Responses
Returns HTTP 200 OK on successful modification, or 400 Bad Request on validation or state conflict.