Paper Trade for intraday/Delivery

Prerequisites: Upstox account (for live LTP), Python installed.

Install: install libraries used in app.py using pip

Run: download/save the folder → open folder → type cmd in address bar → run python app.py → then open Chrome and type 127.0.0.1:5000

Generate API from Upstox account daily and paste it in app.py in place of access token

Keep CMD open while using the app.

https://drive.google.com/drive/folders/1hbgbCjMrvDV-OlUm5QgsNseAvVISyENu?usp=sharing

3 Likes

i went through this. its a great effort. use environment variables bro something like ACCESS_TOKEN = os.getenv(“UPSTOX_TOKEN”) dont hardcode it.
you can aslo use a simple basic authentication for login and if you need to scale go for sqllite or something rather than a text file. and whats the rate limit for this api?

1 Like

I just built this for personal use, so I didn’t implement login or authentication. Also, my Upstox balance is −347 :sweat_smile:, so even if someone got the API token it wouldn’t really matter , and the token expires daily anyway.

The rate limits are 50 requests per second for orders and 500 instruments per LTP request.

I want to add options trading features to it. Can I ask you a few questions , if you’re familiar with Python and this kind of setup?

yea I can build this but I don’t spend time creating things that are already available for free in a few clicks like paper trading accounts. I focus on systems specific to my strategy not generic tools. That said its definitely a great way to learn and experiment an not discouraging anyone. just sharing my personal take. yea… you can maybe try building something around options… there are many knowledgeable people here who can help you with that as well.

Nice initiative, but please use git to make collaboration and review easy. :globe_with_meridians:

2 Likes

@pavinjoseph I will try.