Update stop loss order submission based on recent changes to the IBKR client

This commit is contained in:
moshferatu 2024-02-19 12:51:39 -08:00
parent e91cbb696b
commit 6426fd2f63

View File

@ -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.