From 0d546dc267555807b14d01f3d5cdcabeec831328 Mon Sep 17 00:00:00 2001 From: mindesbunister Date: Wed, 19 Nov 2025 09:53:49 +0100 Subject: [PATCH] fix: Correct MIN_QUALITY_SCORE to MIN_SIGNAL_QUALITY_SCORE Settings UI was using wrong variable name (MIN_QUALITY_SCORE) while code reads MIN_SIGNAL_QUALITY_SCORE. This caused quality score changes in settings UI to have no effect. Fixed: - Settings API now reads/writes MIN_SIGNAL_QUALITY_SCORE - Updated .env file to use correct variable name - User's quality score increase to 81 will now work Related: User increased min quality from 60 to 81 to filter out small chop trades (avoiding -$99 trade with quality score 80). --- .env | 2 +- app/api/settings/route.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env b/.env index 6055561..5260fe1 100644 --- a/.env +++ b/.env @@ -390,7 +390,7 @@ NEW_RELIC_LICENSE_KEY= USE_TRAILING_STOP=true TRAILING_STOP_PERCENT=0.5 TRAILING_STOP_ACTIVATION=0.4 -MIN_QUALITY_SCORE=81 +MIN_SIGNAL_QUALITY_SCORE=81 SOLANA_ENABLED=true SOLANA_POSITION_SIZE=100 SOLANA_LEVERAGE=15 diff --git a/app/api/settings/route.ts b/app/api/settings/route.ts index 28039cc..baf3c49 100644 --- a/app/api/settings/route.ts +++ b/app/api/settings/route.ts @@ -119,7 +119,7 @@ export async function GET() { MAX_DAILY_DRAWDOWN: parseFloat(env.MAX_DAILY_DRAWDOWN || '-50'), MAX_TRADES_PER_HOUR: parseInt(env.MAX_TRADES_PER_HOUR || '6'), MIN_TIME_BETWEEN_TRADES: parseInt(env.MIN_TIME_BETWEEN_TRADES || '600'), - MIN_QUALITY_SCORE: parseInt(env.MIN_QUALITY_SCORE || '60'), + MIN_SIGNAL_QUALITY_SCORE: parseInt(env.MIN_SIGNAL_QUALITY_SCORE || '60'), SLIPPAGE_TOLERANCE: parseFloat(env.SLIPPAGE_TOLERANCE || '1.0'), DRY_RUN: env.DRY_RUN === 'true', }