Place Strategy Trade
Description
Based on: /docs/rest-api/patch-strategies-trade
Edit trade strategy configuration on WunderTrading.
Use to ask about:
- edit strategy
- update strategy
- edit open position
Prompt example
Set one take profit with portfolio 100%, and price equals entry price + 10% for strategy 69d4cda7f8a9507005e211b5
Prompt example
Remove all take profits
Prompt example
Set stop loss - 10% for 69d4cda1f8a9507005e211b2
Prompt example
Remove stop loss price
Prompt example
set takeProfitBaseOn to "entry order"
Input Schema
The Input Schema Provided to LLM.
Required: id
{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Strategy ID or clientId"
},
"takeProfits": {
"type": "array",
"description": "Take profit targets (0 to 10 items). Portfolio sum must equal 1. To remove all take profits, pass []. Before calling this tool, get Entry Price from get_strategy tool.",
"items": {
"type": "object",
"properties": {
"price": {
"type": "number",
"description": "Trigger price. LONG trade range: (Entry Price; +Inf), SHORT trade range: (0; Entry Price), e.g. 150.21"
},
"portfolio": {
"type": "string",
"description": "Portfolio portion (0–1], equals (0% - 100%]. Accepts formats like 0.6, 60%, or 60"
}
},
"required": [
"price",
"portfolio"
]
}
},
"takeProfitBaseOn": {
"type": "string",
"enum": [
"entry_order",
"average_price"
],
"description": "Take profits price averaging condition."
},
"stopLossPrice": {
"type": [
"number",
"null"
],
"description": "Before calling this tool, get Last Price from get_strategy tool. Send null to remove stop loss price. Exact stop loss trigger price (> 0). LONG: (0; Last Price). SHORT: (Last Price; +Inf)"
},
"stopLossBaseOn": {
"type": "string",
"enum": [
"entry_order",
"average_price"
],
"description": "Exact stop loss trigger price."
},
"stopLossMovePrice": {
"type": [
"number",
"null"
],
"description": "Cannot be null when stopLossMoveExecutePrice provided. Send null to remove. Move to break-even trigger (>0). LONG: (Entry Price; +Inf). SHORT: (0; Entry Price)"
},
"stopLossMoveExecutePrice": {
"type": [
"number",
"null"
],
"description": "stopLossMovePrice must be defined. Send null to remove. Move to break-even execution (>0). LONG: (0; stopLossMovePrice). SHORT: (stopLossMovePrice; +Inf)"
},
"trailingStopActivation": {
"type": [
"number",
"null"
],
"description": "Trailing stop activation deviation (0–1], equals (0% - 100%]. Accepts formats like 0.6, 60%, or 60"
},
"trailingStopExecute": {
"type": [
"number",
"null"
],
"description": "Trailing stop execution deviation (0–1], equals (0% - 100%]. Accepts formats like 0.6, 60%, or 60"
},
"reduceOnly": {
"type": "boolean",
"description": "Reduce only for exits. No effect for spot strategies."
},
"placeConditionalOrdersOnExchange": {
"type": "boolean",
"description": "Place exit conditional orders on exchange. Ignored when strategyGroupType = dca"
},
"extraOrderCount": {
"type": [
"integer",
"null"
],
"description": "DCA: total order count (1–30). Only for strategyGroupType = dca"
},
"extraOrderDeviation": {
"type": [
"number",
"null"
],
"description": "DCA: price deviation (0.001–0.2), equals (0.1% - 20%). Accepts formats like 0.6 or 6%. Only for strategyGroupType = dca"
},
"extraOrderVolumeMultiplier": {
"type": [
"number",
"null"
],
"description": "DCA: volume multiplier (0.1–10), e.g. 1.25. Only for strategyGroupType = dca"
},
"extraOrderDeviationMultiplier": {
"type": [
"number",
"null"
],
"description": "DCA: price deviation multiplier (1–10), e.g. 0.5. Only for strategyGroupType = dca"
}
},
"required": [
"id"
]
}
We are continuously improving the platform, and new endpoints and features will be added soon to make your automated trading more flexible and efficient.