From 564b0b8c0a15bda2fc35a3a8130b1dd8e7b6e053 Mon Sep 17 00:00:00 2001 From: msincenselee Date: Tue, 7 Apr 2020 22:03:23 +0800 Subject: [PATCH] [bug fix] --- vnpy/app/cta_crypto/engine.py | 2 +- vnpy/app/cta_strategy_pro/engine.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vnpy/app/cta_crypto/engine.py b/vnpy/app/cta_crypto/engine.py index a3526cfb..856b32ae 100644 --- a/vnpy/app/cta_crypto/engine.py +++ b/vnpy/app/cta_crypto/engine.py @@ -599,7 +599,7 @@ class CtaEngine(BaseEngine): order = self.main_engine.get_order(vt_orderid) if not order: self.write_log(msg=f"撤单失败,找不到委托{vt_orderid}", - strategy_Name=strategy.strategy_name, + strategy_name=strategy.strategy_name, level=logging.ERROR) return False diff --git a/vnpy/app/cta_strategy_pro/engine.py b/vnpy/app/cta_strategy_pro/engine.py index d238fd7e..ce15cf3d 100644 --- a/vnpy/app/cta_strategy_pro/engine.py +++ b/vnpy/app/cta_strategy_pro/engine.py @@ -621,7 +621,7 @@ class CtaEngine(BaseEngine): order = self.main_engine.get_order(vt_orderid) if not order: self.write_log(msg=f"撤单失败,找不到委托{vt_orderid}", - strategy_Name=strategy.strategy_name, + strategy_name=strategy.strategy_name, level=logging.ERROR) return False