diff --git a/vnpy/app/spread_trading/base.py b/vnpy/app/spread_trading/base.py index d5d72e34..efbe185f 100644 --- a/vnpy/app/spread_trading/base.py +++ b/vnpy/app/spread_trading/base.py @@ -116,7 +116,7 @@ class LegData: else: self.long_pos -= trade.volume - self.net_pos = self.long_pos - self.net_pos + self.net_pos = self.long_pos - self.short_pos class SpreadData: