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).
This commit is contained in:
2
.env
2
.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
|
||||
|
||||
@@ -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',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user