From 5f576cc02949df2ef23a65bc021db1ddd346093a Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Mon, 24 Dec 2018 20:39:15 +0800 Subject: [PATCH] [Fix]Close #1297 --- vnpy/trader/app/algoTrading/algo/stopAlgo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnpy/trader/app/algoTrading/algo/stopAlgo.py b/vnpy/trader/app/algoTrading/algo/stopAlgo.py index 0985d96b..df12514c 100644 --- a/vnpy/trader/app/algoTrading/algo/stopAlgo.py +++ b/vnpy/trader/app/algoTrading/algo/stopAlgo.py @@ -70,7 +70,7 @@ class StopAlgo(AlgoTemplate): func = self.sell - self.vtOrderID = func(self.vtSymbol, price, self.volume, offset=self.offset) + self.vtOrderID = func(self.vtSymbol, price, self.totalVolume, offset=self.offset) msg = u'停止单已触发,代码:%s,方向:%s, 价格:%s,数量:%s,开平:%s' %(self.vtSymbol, self.direction,