From 41d970c041bf99b817880c24e611d90135d270b0 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Mon, 24 Dec 2018 09:35:40 +0800 Subject: [PATCH] [Fix]Close #1273 --- vnpy/trader/app/tradeCopy/tcEngine.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vnpy/trader/app/tradeCopy/tcEngine.py b/vnpy/trader/app/tradeCopy/tcEngine.py index b6493137..c82abf98 100644 --- a/vnpy/trader/app/tradeCopy/tcEngine.py +++ b/vnpy/trader/app/tradeCopy/tcEngine.py @@ -195,8 +195,8 @@ class TcEngine(object): req.price = tick.upperLimit else: req.price = tick.askPrice1 - elif DIRECTION_SHROT in vtPositionName: - req.direction = DIRECTION_SHROT + elif DIRECTION_SHORT in vtPositionName: + req.direction = DIRECTION_SHORT if tick.lowerLimit: req.price = tick.lowerLimit else: @@ -209,13 +209,13 @@ class TcEngine(object): req.offset = OFFSET_CLOSE if DIRECTION_LONG in vtPositionName: - req.direction = DIRECTION_SHROT + req.direction = DIRECTION_SHORT if tick.upperLimit: req.price = tick.upperLimit else: req.price = tick.askPrice1 - elif DIRECTION_SHROT in vtPositionName: + elif DIRECTION_SHORT in vtPositionName: req.direction = DIRECTION_LONG if tick.lowerLimit: req.price = tick.lowerLimit