running different strategy.py files and accessing obj and data from one login file "login.py".
As accessing/importing obj & data from login.py file re-run's the login file.
Thank you.
So you need to store your smartapi object after logging into a global variable which can be accessed across all scripts/strategies you are running.
Hi Akshad Patil I have looked at your code, you are fetching data for almost 175 symbols and SmartAPI allows fetching 10 per second, so your code is already much faster, even if you make optimizations within your code, you will hit rate limits by SmartAPI, hope that helps!
Trader
Hello sir,
how one can run multiple strategies in smartapi.
running different strategy.py files and accessing obj and data from one login file "login.py". As accessing/importing obj & data from login.py file re-run's the login file.
Thank you.