diff --git a/ibkr/client.py b/ibkr/client.py index 4024923..4d7d548 100644 --- a/ibkr/client.py +++ b/ibkr/client.py @@ -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()