Commit eab035b
fix: spot-perp netPnl now includes spot PnL (was perp-only)
netPnl was only counting perp unrealizedPnl, ignoring spot price change.
For delta-neutral positions this inflated PnL by the perp leg's gain.
Now correctly: spotPnL + perpPnL + funding - fees.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent c1d8e64 commit eab035b
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
478 | | - | |
| 478 | + | |
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
| |||
0 commit comments