1 Commits

Author SHA1 Message Date
mindesbunister
1dccf23fe4 fix: Correct P&L for last 2 trades to match Drift UI actual values
Trade 1: cmibdii4k0004pe07nzfmturo (Nov 23, 07:05)
- Database had: +$6.44 profit (wrong exit price $128.79)
- Drift UI shows: -$59.59 loss
- Corrected: SHORT from $128.729 → $130.167 (price UP = loss)
- Size: 40.18 SOL (~$5,173 notional)

Trade 2: cmiahpupc0000pe07g2dh58ow (Nov 22, 16:15)
- Database had: LONG with -$22.41 loss
- Drift UI shows: +$31.45 profit
- Corrected: Changed to SHORT from $128.729 → $128.209 (price DOWN = profit)
- Size: 60.25 SOL (~$7,756 notional)

Root Cause: External closure P&L calculation using stale monitoring price
instead of Drift's settled P&L. Common Pitfall #57 fix exists but these
trades occurred before Nov 16 container restart with the fix.

Verification: SQL calculations now match Drift UI screenshot exactly.

Manual correction applied via SQL UPDATE statements.
2025-11-23 11:12:08 +01:00