Files
trading_bot_v4/app
mindesbunister d1d7df9631 fix: Emergency position close when exit orders missing (Bug #76 enforcement)
- Changed execute endpoint from warning-only to active enforcement
- When placeExitOrders() returns < expected signatures, immediately:
  1. Close the position 100% (emergency safety)
  2. Return HTTP 500 error (prevent DB record creation)
  3. Log critical error for post-mortem
- Prevents unprotected positions from being created in database
- Root cause: Previous fix validated but continued execution
- Result: No more positions without stop loss protection

Deployed: Dec 10, 2025 11:42 CET
Container: trading-bot-v4
Build: sha256:d576e7c5d421
2025-12-10 07:52:00 +01:00
..
2025-11-30 13:18:03 +01:00