feat: Add quality score to trade opened Telegram notifications
User Request: Show quality score in Telegram when position opened
Changes:
- Updated execute endpoint response to include qualityScore field
- n8n workflow already checks for qualityScore in response
- When present, displays: ⭐ Quality: XX/100
Impact:
- Users now see quality score immediately on position open
- Previously only saw score on blocked signals
- Better visibility into trade quality at entry
Files Modified:
- app/api/trading/execute/route.ts (added qualityScore to response)
This commit is contained in:
@@ -874,6 +874,7 @@ export async function POST(request: NextRequest): Promise<NextResponse<ExecuteTr
|
||||
tp2Percent: config.takeProfit2Percent,
|
||||
entrySlippage: openResult.slippage,
|
||||
timestamp: new Date().toISOString(),
|
||||
qualityScore: qualityResult.score, // Add quality score for Telegram notification (Nov 24, 2025)
|
||||
}
|
||||
|
||||
// Attach exit order signatures to response
|
||||
|
||||
Reference in New Issue
Block a user