Files
trading_bot_v4/.github
mindesbunister 33ef157a24 docs: Update Common Pitfall #56 with order filtering bug fix
Added Nov 21 false positive investigation and resolution:
- Bot showed '32 open orders' when Drift UI showed 0
- Root cause: orderId > 0 check didn't verify baseAssetAmount
- Drift's 32-slot array contained historical metadata
- Fix: Enhanced filter with baseAssetAmount.eq(new BN(0)) check
- Result: Accurate order count reporting

Updated with correct filtering code example and dual commit references.
2025-11-21 16:45:43 +01:00
..