From 1a9716485c36b7b9b4b052c0347fc9493541788b Mon Sep 17 00:00:00 2001 From: msincenselee Date: Tue, 7 Apr 2020 09:27:58 +0800 Subject: [PATCH] [bug fix] --- vnpy/app/cta_crypto/template.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vnpy/app/cta_crypto/template.py b/vnpy/app/cta_crypto/template.py index b94d1ea3..12fadc55 100644 --- a/vnpy/app/cta_crypto/template.py +++ b/vnpy/app/cta_crypto/template.py @@ -1276,6 +1276,8 @@ class CtaFutureTemplate(CtaTemplate): if order_info['offset'] == Offset.OPEN \ and order_grid \ and len(order_grid.order_ids) == 0 \ + and not order_grid.open_status \ + and not order_grid.order_status \ and order_grid.traded_volume == 0: self.write_log(u'移除从未开仓成功的委托网格{}'.format(order_grid.__dict__)) order_info['grid'] = None