This commit is contained in:
vn.py 2019-07-27 08:47:12 +08:00
parent eb5cf945f5
commit b755f9f1fa

View File

@ -323,6 +323,11 @@ class CtaEngine(BaseEngine):
for req in req_list: for req in req_list:
vt_orderid = self.main_engine.send_order( vt_orderid = self.main_engine.send_order(
req, contract.gateway_name) req, contract.gateway_name)
# Check if sending order successful
if not vt_orderid:
continue
vt_orderids.append(vt_orderid) vt_orderids.append(vt_orderid)
self.offset_converter.update_order_request(req, vt_orderid) self.offset_converter.update_order_request(req, vt_orderid)