Files
trading_bot_v3/lib
mindesbunister 9978760995 🔧 Add settlement lag detection and handling
- Detect when balance is low (.53) but no positions active
- This commonly occurs after position closure before profit settlement
- Add _meta field to API response indicating settlement pending status
- Provide explanatory note for debugging and user understanding
- Backend now correctly shows 0 positions and flags settlement delay

Note: Drift UI shows 16.71 but account data shows .53, likely due to
settlement lag between position closure and balance update on blockchain.
2025-07-14 11:03:33 +02:00
..