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.