_handle_close was not clearing _current_positions when no matching OPEN trade was found in DB, causing all subsequent entries for the same symbol+direction to be silently skipped. Also add PYTHONUNBUFFERED=1 and python -u to make log parser crashes visible in docker logs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
469 B
469 B