Resolve issue where option leg was not being passed into method to submit single leg option order

This commit is contained in:
moshferatu 2024-03-04 11:52:00 -08:00
parent 6a7dbe4aae
commit 388d352947

View File

@ -136,7 +136,7 @@ class Client:
leg_data = self.get_market_data(self.get_option_contract(leg)) leg_data = self.get_market_data(self.get_option_contract(leg))
leg_mid = (leg_data.ask + max(leg_data.bid, 0)) / 2.0 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(): while not option_order.isDone():
self.ib.waitOnUpdate() self.ib.waitOnUpdate()