LoopTrader
LoopTrader copied to clipboard
tdaBroker.py - build_account_position() - ERROR - No strike price found for [TICKER]
Describe the bug 2021-06-07 16:30:34,903 - cspByDeltaStrategy.py - process_closing_orders() - DEBUG - process_closing_orders 2021-06-07 16:30:34,903 - cspByDeltaStrategy.py - build_closing_orders() - DEBUG - build_closing_orders 2021-06-07 16:30:35,662 - tdaBroker.py - build_account_position() - ERROR - No strike price found for CRSR 2021-06-07 16:30:35,663 - tdaBroker.py - build_account_position() - ERROR - No strike price found for CRSR_071621C35 2021-06-07 16:30:35,663 - cspByDeltaStrategy.py - check_for_closing_orders() - DEBUG - check_for_closing_orders 2021-06-07 16:30:35,663 - botMediator.py - process_strategies() - INFO - Sleeping...
ERROR - No strike price found for CRSR ERROR - No strike price found for CRSR_071621C35 ERROR - No strike price found for CRSR ERROR - No strike price found for CRSR_071621C35 ERROR - No strike price found for CRSR ERROR - No strike price found for CRSR_071621C35 ERROR - No strike price found for CRSR ERROR - No strike price found for CRSR_071621C35 ERROR - No strike price found for CRSR ERROR - No strike price found for CRSR_071621C35 ERROR - No strike price found for CRSR ERROR - No strike price found for CRSR_071621C35 ERROR - No strike price found for CRSR ERROR - No strike price found for CRSR_071621C35
To Reproduce Start the bot where other positions are present.
Expected behavior This behavior changed in the latest update. If other positions are open for puts, it spawns an error as described above. The bot was previously able to calculate the strike prices with no errors.
Thanks for reporting this, I'll take a look this weekend at it!