Please show some live trading example. These kind of articles are available freely everywhere on github. It will be interesting to know how you do the same things in live market with each new candle coming. Do you run the loop every 5 minutes and how you do it? Do you use python modules like schedule or using sleep? How do you avoid API rate Limits?