As I work on this last step of this client portion of the crypto trading bot, it seems I need to ensure that my positions.json file does not have racing conditions or corruption as explain in the article below. This is also the best article which is simple to understand on how to prevent corruption on competing threads for one resource file.
If you want to run thread within infinite loops, check the answer from pss at
I would go with the options not using classes since they overcomplicate what you want.
Decent example of locking with acquire() and release()
https://www.bogotobogo.com/python/Multithread/python_multithreading_Synchronization_Lock_Objects_Acquire_Release.phpNOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!