mindesbunister
f2e4156c8a
debug: Add comprehensive logging to closePosition for TP1 investigation
- Added console.log debugging to closePosition function
- Logs: percentToClose, position.size, calculated sizeToClose, minimum check
- Logs: Override decision if size below minimum
- Purpose: Investigate why TP1 closes 100% instead of configured 60%
- User reported: Telegram shows '60% closed, 40% runner' but position fully closes
- Files changed: lib/drift/orders.ts (lines 500-522)
2025-12-09 19:02:21 +01:00
..
2025-12-05 00:32:41 +01:00
2025-12-05 00:32:41 +01:00
2025-12-09 19:02:21 +01:00
2025-12-09 17:22:56 +01:00
2025-12-07 02:28:10 +01:00
2025-12-07 13:01:20 +01:00
2025-12-05 00:32:41 +01:00
2025-12-08 15:43:54 +01:00
2025-12-09 17:43:02 +01:00
2025-12-05 00:32:41 +01:00