From 10e9be7c03d1c47c6d80ad6c933cf58ca5c977cd Mon Sep 17 00:00:00 2001 From: cclauss Date: Wed, 20 Jun 2018 09:33:47 +0200 Subject: [PATCH] Update stopAlgo.py --- vnpy/trader/app/algoTrading/stopAlgo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vnpy/trader/app/algoTrading/stopAlgo.py b/vnpy/trader/app/algoTrading/stopAlgo.py index cb54bf4c..a08d09d7 100644 --- a/vnpy/trader/app/algoTrading/stopAlgo.py +++ b/vnpy/trader/app/algoTrading/stopAlgo.py @@ -26,10 +26,10 @@ class StopAlgo(AlgoTemplate): # 参数,强制类型转换,保证从CSV加载的配置正确 self.vtSymbol = str(setting['vtSymbol']) # 合约代码 - self.direction = text_type(setting['direction']) # 买卖 + self.direction = text_type(setting['direction']) # 买卖 self.stopPrice = float(setting['stopPrice']) # 触发价格 self.totalVolume = float(setting['totalVolume']) # 数量 - self.offset = text_type(setting['offset']) # 开平 + self.offset = text_type(setting['offset']) # 开平 self.priceAdd = float(setting['priceAdd']) # 下单时的超价 self.vtOrderID = '' # 委托号