https://blog.cubed.run/building-a-fully-automated-algorithmic-trading-bot-from-scratch-part-xiv-a9f430f1c4a4