LoopTrader icon indicating copy to clipboard operation
LoopTrader copied to clipboard

tdaBroker.py - build_account_position() - ERROR - No strike price found for [TICKER]

Open dataartisan opened this issue 3 years ago • 1 comments

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.

dataartisan avatar Jun 07 '21 16:06 dataartisan

Thanks for reporting this, I'll take a look this weekend at it!

pattertj avatar Jun 11 '21 23:06 pattertj