From 6426fd2f63545d7d76ba228b8e2eeeb810d73e3a Mon Sep 17 00:00:00 2001 From: moshferatu Date: Mon, 19 Feb 2024 12:51:39 -0800 Subject: [PATCH] Update stop loss order submission based on recent changes to the IBKR client --- iron_condor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iron_condor.py b/iron_condor.py index e8c69c3..fc35193 100644 --- a/iron_condor.py +++ b/iron_condor.py @@ -63,7 +63,7 @@ def monitor_spread_price(short_leg: OptionLeg, long_leg: OptionLeg, stop_price: client.submit_combo_option_order([short_leg_exit, long_leg_exit], quantity) logging.info('Whole spread exited.') else: - client.submit_option_order(short_leg_exit, quantity) + client.submit_single_option_order(short_leg_exit, quantity) logging.info('Short leg only exited.') # Unsubscribe from market data updates once the trade has exited.