Files
trading_bot_v3/components
mindesbunister b6c19c100e CRITICAL: Fix leveraged trading routing
- Add leverage detection in executeTrade function to route correctly
- Leveraged positions (leverage > 1) now route to execute-perp API (Drift Protocol)
- Spot trades (leverage = 1) continue to use execute-dex API (Jupiter DEX)
- Enhanced success messages to distinguish between spot trades and leveraged positions
- Fixes issue where 5x leveraged positions were incorrectly executed as spot swaps
- Added proper console logging for debugging trade routing
2025-07-16 16:43:45 +02:00
..