Closed rsmb7z closed 5 months ago
Fixes following bug when there are only closed positions.
nautilus_trader\\backtest\\matching_engine.pyx:1261: in nautilus_trader.backtest.matching_engine.OrderMatchingEngine.iterate ??? nautilus_trader\\backtest\\matching_engine.pyx:1331: in nautilus_trader.backtest.matching_engine.OrderMatchingEngine.iterate ??? _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > ??? E ValueError: invalid `PositionSide`, was FLAT nautilus_trader\\model\\orders\\base.pyx:807: ValueError
Added test and resolved the exception.
Pull Request
Fixes following bug when there are only closed positions.
Type of change
How has this change been tested?
Added test and resolved the exception.