Modify Position SL/TP
modify_positionModify the stop loss and/or take profit of an open position on a broker account. Use this to adjust risk management on existing trades. At least one of stopLoss or takeProfit must be provided. Values are absolute price levels (e.g. stopLoss: 1.0950, not a pip distance). Setting stopLoss to the position's avgPrice performs a "break even" — moving SL to entry to eliminate risk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stopLoss | No | New stop loss price level (absolute price, e.g. 1.0950) | |
| positionId | Yes | The position ID (from get_positions) | |
| takeProfit | No | New take profit price level (absolute price, e.g. 1.1100) | |
| brokerAccountId | Yes | The broker account ID (from get_positions) |