From 388d352947582fc7ad2f6ca4768f4c5646856cb9 Mon Sep 17 00:00:00 2001 From: moshferatu Date: Mon, 4 Mar 2024 11:52:00 -0800 Subject: [PATCH] Resolve issue where option leg was not being passed into method to submit single leg option order --- ibkr/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()