Skip to content

Commit

Permalink
issue with order creation
Browse files Browse the repository at this point in the history
  • Loading branch information
rob committed Jul 5, 2023
1 parent 06bd589 commit 74dcb41
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions sysexecution/algos/algo.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,8 @@ def get_and_submit_broker_order_for_contract_order(
limit_price_from=limit_price_from,
input_limit_price=input_limit_price,
)
elif order_type == market_order_type:
limit_price = None
else:
error_msg = "Order type %s not valid for broker orders" % str(order_type)
log.critical(error_msg)

return missing_order
limit_price = None

broker_order = create_new_broker_order_from_contract_order(
contract_order,
Expand Down

0 comments on commit 74dcb41

Please sign in to comment.