Resolve issue where option leg was not being passed into method to submit single leg option order
This commit is contained in:
parent
6a7dbe4aae
commit
388d352947
@ -136,7 +136,7 @@ class Client:
|
||||
leg_data = self.get_market_data(self.get_option_contract(leg))
|
||||
leg_mid = (leg_data.ask + max(leg_data.bid, 0)) / 2.0
|
||||
|
||||
option_order = self.submit_single_option_order(leg_data)
|
||||
option_order = self.submit_single_option_order(leg)
|
||||
while not option_order.isDone():
|
||||
self.ib.waitOnUpdate()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user