Files
trading_bot_v3/app/api/automation/trade/route.js
mindesbunister 9114c50678 Fix trade execution with stop loss and take profit orders
- Fixed automation trade route to call 'place_order' instead of 'get_balance'
- Added comprehensive stop loss and take profit order placement
- Implemented 2:1 risk/reward ratio with configurable risk percentage
- Added proper order sequencing: main order → stop loss → take profit
- Enhanced error handling for risk management orders
- Verified live trading with actual position placement

Trade execution now includes:
- Main market order execution
- Automatic stop loss at 1% risk level
- Automatic take profit at 2% reward (2:1 ratio)
- Position confirmation and monitoring
2025-07-22 17:08:10 +02:00

3.5 KiB