I'm also working on my own trading system, and I want to tackle this problem using the NASA way - have multiple pieces check each other.
So I will have a second independent little process which will also connect to the same trading account and monitor simple things, like ensuring the total...