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:
mindesbunister
2025-07-20 22:32:16 +02:00
parent 6ce4f364a9
commit 55cea00e5e
22 changed files with 1180 additions and 189 deletions

View File

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