Fix complete trading system: SL/TP working, live trading operational

- Fixed network connectivity and live trading mode
- Updated Drift SDK integration with proper API methods
- Fixed BN type conversions and minimum order size
- Fixed stop loss & take profit conditional orders
- Complete risk management system now functional
This commit is contained in:
mindesbunister
2025-07-25 09:38:41 +02:00
parent 0e3baa139f
commit 9175bb3add
7 changed files with 342 additions and 103 deletions

View File

@@ -210,7 +210,9 @@ export async function POST(request) {
// Store analysis for learning
await storeAnalysisForLearning(symbol, analysis)
} else {
throw new Error('AI analysis returned null')
console.log('AI analysis returned null (possibly rate limited) - continuing without analysis')
progressTracker.updateStep(sessionId, 'analysis', 'skipped', 'AI analysis skipped due to rate limits or other issues')
analysis = null
}
} catch (analysisError) {