From daaadd8dcae8c2e27f033f6e77e54cfc3abb5485 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Thu, 7 Nov 2019 14:33:08 +0800 Subject: [PATCH] [Fix] close #2180 --- vnpy/app/spread_trading/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: