What is the correct way in python to log into multiple accounts and retrieve their profit ? (My way got me soft ip ban)

 

Hi , 

I'm writing a script that will fetch from MT5 terminal the profit of 100 accounts I manage.

My code is basic , for each account I initialize mt5 and get account history :

if not mt5.initialize(path=MT5_TERMINAL_PATH,login=int(customer['login']),password=customer['password'],server=customer['server']):
            return None, f"Failed to initialize MetaTrader 5 at path {MT5_TERMINAL_PATH} for {customer['full_name']}."

After couple of hours of development and testing I found out I can't access MQL5 website (had to restart router to change IP).

If connecting/disconnecting multiple times to MT5 (because I iterate over all my accounts and bring the profit for the month) gets my IP banned , What is the correct way to do it ?