dwlf_update_trade
Update an existing trade by ID using partial fields such as stop, take profit, position size, direction, entry price, notes, or paper status. Use it to correct or adjust levels on an open trade.
Instructions
Update an existing trade by ID. All fields except tradeId are optional (partial update). Parameter names match dwlf_create_trade / dwlf_confirm_trade: initialStop / initialTakeProfit / positionSize (formerly stopLoss / takeProfit / quantity — the old names are no longer accepted). symbol and tags are NOT editable — the backend has never accepted them, and offering them meant a caller could set one and be told 200 while nothing changed. To change the levels on an OPEN trade use this; to set them as the trade is taken, pass them to dwlf_confirm_trade instead so it is one call.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tradeId": "<tradeId>"
},
"name": "dwlf_update_trade"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | REMOVED — not editable, the backend has never accepted it. Rejected with an error. | |
| notes | No | Trade notes | |
| symbol | No | REMOVED — not editable, the backend has never accepted it. Rejected with an error. | |
| tradeId | Yes | Trade ID | |
| quantity | No | DEPRECATED — renamed to positionSize. Rejected with an error. | |
| stopLoss | No | DEPRECATED — renamed to initialStop. Rejected with an error. | |
| direction | No | Trade direction | |
| entryPrice | No | Entry price | |
| takeProfit | No | DEPRECATED — renamed to initialTakeProfit. Rejected with an error. | |
| initialStop | No | Stop loss price (formerly stopLoss). ⚠️ This rewrites the R BASELINE: every R-multiple is computed from |entryPrice - initialStop|, and a numeric change also clears the stopAnchor provenance. Correct when the stop was WRONG and is being fixed. NOT for trailing a stop up behind price — that silently shrinks the R denominator and reports an inflated R on a winner. Trailing needs a separate field, not this one. | |
| isPaperTrade | No | Whether this is a paper trade | |
| positionSize | No | Position size / quantity (formerly quantity) | |
| initialTakeProfit | No | Take profit price (formerly takeProfit) |