Merge pull request #1822 from xldistance/patch-25

修正StopOrder vt_orderids
This commit is contained in:
vn.py 2019-06-13 09:42:28 +08:00 committed by GitHub
commit 48d1c71e8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -187,7 +187,7 @@ class CtaEngine(BaseEngine):
stop_orderid=order.vt_orderid,
strategy_name=strategy.strategy_name,
status=STOP_STATUS_MAP[order.status],
vt_orderid=order.vt_orderid,
vt_orderids=[order.vt_orderid],
)
self.call_strategy_func(strategy, strategy.on_stop_order, so)