Can I run 2 .py algo scripts at same time? Getting exception error

Hi Imran Sir, I am trying to run minirobocop.py and tick by tick option chain.py at same time from 2 separate cmd windows. Is there any restriction on how many algo scripts i can run at same time? Getting below error in either of the scripts execution, it says “Further requests may result in the user being blocked”. kindly advise. Thank you.

Blockquote
2025-03-13 13:47:20.024129
2025-03-13 13:47:25.435012
Exception at calling ltp as {‘status’: ‘failure’, ‘remarks’: {‘error_code’: None, ‘error_type’: None, ‘error_message’: None}, ‘data’: {‘data’: {‘805’: ‘Too many requests. Further requests may result in the user being blocked.’}, ‘status’: ‘failed’}}
Getting Error at Option Chain as ‘NIFTY’
Traceback (most recent call last):
File “8. Tick By TICK Option Chain.py”, line 32, in
atm_strike, option_chain = tsl.get_option_chain(Underlying=“NIFTY”, exchange=“INDEX”, expiry=0,num_strikes=15)
TypeError: cannot unpack non-iterable NoneType object

Hi @saurabha213 ,

You can run 2 scripts in different locations using different credentials, using same credentials may lead to this.

1 Like

Hello @Tradehull_Imran noted Imran Sir. I have only one dhan account. However, I have generated a new access token in API module in website. I shall try to use the new token inside my 2nd script login section and check again during market hours.
Grateful for your knowledge sharing & youtube series. Thank you!

1 Like

hi did this work with a different token plz?