Update stop loss order submission based on recent changes to the IBKR client
This commit is contained in:
parent
e91cbb696b
commit
6426fd2f63
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user