Currently, sometimes data is missing, raising a ValueError. This can be caused by running the program while markets are closed. The error causes the program to exit.
Ideas for fix:
Create a special exception for when this happens, and allow the program to continue running. Only discard the latest attempt
Check beforehand whether markets are open to prevent the program from running when markets are closed, pausing until they re-open.
Currently, sometimes data is missing, raising a ValueError. This can be caused by running the program while markets are closed. The error causes the program to exit. Ideas for fix: