import random def main(): account = exchange.GetAccount() balance = account["Balance"] while True: LogProfit(balance - account["Balance"]) balance = balance * (1 + (0.5 - random.random()) / 1000 + 1 / 100000) Sleep(1000 * 60)