droyd_manage_trade
Manage existing cryptocurrency trading positions by closing, adding buys, executing partial sells, or modifying strategy legs like stop losses and take profits.
Instructions
Manage existing trading positions. Close positions, execute additional buys/sells, or modify strategy legs.
Actions:
close - Exit entire position at market
buy - Add to existing position (requires amountUSD)
sell - Partial exit (requires sellPercent, e.g., 0.5 = sell 50%)
update - Modify stop losses and take profits
Examples:
Close position: { "strategy_id": 789, "action": "close" }
Partial sell: { "strategy_id": 789, "action": "sell", "sellPercent": 0.25 }
Add buy: { "strategy_id": 789, "action": "buy", "amountUSD": 50 }
Add stop loss: { "strategy_id": 789, "action": "update", "legs": [ { "leg_action": "add", "type": "stop_loss", "amountUSD": 100, "triggerPercent": 0.10 } ]}
Update existing leg: { "strategy_id": 789, "action": "update", "legs": [ { "leg_action": "update", "leg_id": 123, "triggerPercent": 0.15 } ]}
Remove leg: { "strategy_id": 789, "action": "update", "legs": [ { "leg_action": "remove", "leg_id": 456 } ]}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| strategy_id | Yes | Strategy ID to manage | |
| action | Yes | Action to perform | |
| amountUSD | No | Amount in USD (required for buy action) | |
| portfolio_percent | No | Portfolio percent for buy (0-100) | |
| sellPercent | No | Portion to sell 0-1 (required for sell action) | |
| project_id | No | Override project for buy/sell | |
| legs | No | Leg modifications (required for update action) |