🤖 COMPLETE: Learning-Enhanced AI with HTTP Compatibility

LEARNING INTEGRATION:
- Enhanced AI analysis service feeds historical data into OpenAI prompts
- Symbol/timeframe specific learning optimization
- Pattern recognition from past trade outcomes
- Confidence adjustment based on success rates

 HTTP COMPATIBILITY SYSTEM:
- HttpUtil with automatic curl/no-curl detection
- Node.js fallback for Docker environments without curl
- Updated all automation systems to use HttpUtil
- Production-ready error handling

 AUTONOMOUS RISK MANAGEMENT:
- Enhanced risk manager with learning integration
- Simplified learners using existing AILearningData schema
- Real-time position monitoring every 30 seconds
- Smart stop-loss decisions with AI learning

 INFRASTRUCTURE:
- Database utility for shared Prisma connections
- Beach mode status display system
- Complete error handling and recovery
- Docker container compatibility tested

Historical performance flows into OpenAI prompts before every trade.
This commit is contained in:
mindesbunister
2025-07-25 13:38:24 +02:00
parent 2dd7cb2d66
commit 08f9a9b541
14 changed files with 1071 additions and 56 deletions

Binary file not shown.

View File

@@ -204,20 +204,3 @@ model AILearningData {
@@map("ai_learning_data")
}
model DCARecord {
id String @id @default(cuid())
tradeId String
dcaAmount Float
dcaPrice Float
newAveragePrice Float
newStopLoss Float?
newTakeProfit Float?
newLeverage Float?
confidence Float?
reasoning String?
riskAssessment String?
createdAt DateTime @default(now())
@@map("dca_records")
}