Commit 3a4a113
committed
Update cost calculation logic in Position class
- Changed the condition in _update_costs method to check for trade.position_effect being POSITION_EFFECT.OPEN instead of trade.side being SIDE.BUY, ensuring accurate cost updates for trade transactions.
- This adjustment improves the handling of trade costs based on the position effect, enhancing the overall functionality of the Position class.1 parent 1964bfd commit 3a4a113
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| |||
0 commit comments