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:
mindesbunister
2025-11-24 10:19:09 +01:00
parent c09201ccde
commit 34127b9e6c
2 changed files with 2 additions and 1 deletions

View File

@@ -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