Skip to content

Commit

Permalink
[Mod] close vnpy#1969
Browse files Browse the repository at this point in the history
  • Loading branch information
vnpy committed Jul 27, 2019
1 parent eb5cf94 commit b755f9f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vnpy/app/cta_strategy/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,11 @@ def send_server_order(
for req in req_list:
vt_orderid = self.main_engine.send_order(
req, contract.gateway_name)

# Check if sending order successful
if not vt_orderid:
continue

vt_orderids.append(vt_orderid)

self.offset_converter.update_order_request(req, vt_orderid)
Expand Down

0 comments on commit b755f9f

Please sign in to comment.