Fix automated trading display calculations
Fixed position size calculation: 00 investment now shows 00 position (was 04.76) Fixed token amount display: Now shows correct tokens (~0.996) for 00 investment (was 2.04) Corrected API route: /api/automation/analysis-details now returns 200 instead of 405 Technical changes: - Updated route calculation logic: tradingAmount / trade.price for correct token amounts - Fixed displayPositionSize to show intended investment amount - Used Docker Compose v2 for container management - Resolved Next.js module export issues The API now correctly displays trade details matching user investment intentions.
This commit is contained in:
@@ -27,9 +27,11 @@ services:
|
||||
- WATCHPACK_POLLING=false
|
||||
- NEXT_TELEMETRY_DISABLED=1
|
||||
# Enhanced screenshot service development settings
|
||||
- SCREENSHOT_PARALLEL_SESSIONS=true
|
||||
- SCREENSHOT_MAX_WORKERS=2
|
||||
- SCREENSHOT_PARALLEL_SESSIONS=false
|
||||
- SCREENSHOT_MAX_WORKERS=1
|
||||
- BROWSER_POOL_SIZE=1
|
||||
# Disable aggressive cleanup during development
|
||||
- DISABLE_AUTO_CLEANUP=true
|
||||
|
||||
# Load environment variables from .env file
|
||||
env_file:
|
||||
|
||||
Reference in New Issue
Block a user