Analysis updated 2026-05-18
Fetch live spot prices, option chains, and historical candles for NIFTY, BANKNIFTY, and other NSE instruments.
Stream real time price ticks and option Greeks over WebSocket for a trading strategy.
Test a trading strategy with a simulated paper broker that models realistic slippage and Indian market fees.
Build sentiment based filters using India VIX, put call ratio, and foreign investor activity data.
| barathgb007/upstox-python-data | 1038lab/comfyui-agnes-ai | andyuneducated/resolve-ai | |
|---|---|---|---|
| Stars | 18 | 18 | 18 |
| Language | Python | Python | Python |
| Setup difficulty | moderate | easy | hard |
| Complexity | 3/5 | 2/5 | 4/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires an Upstox developer account and a long-lived analytics access token for market data.
This project is a Python toolkit for pulling stock market data from Upstox, an Indian brokerage, specifically for NSE indices like NIFTY and BANKNIFTY and their futures and options contracts. The author built it for their own algorithmic trading project and shared it after noticing many people in an online community struggling just to get clean price data working. The toolkit is organized into several files, each handling a different job. One file wraps Upstox's REST API to fetch spot prices, option chains, historical candles, India VIX values, and figures like foreign and domestic investor activity. Another file handles a live WebSocket connection for real time price ticks, order book depth, and option Greeks such as delta and theta. A background poller keeps a constantly updated cache of prices and can detect sudden price spikes. There is also a simulated paper trading broker that models realistic costs, including brokerage, taxes, and slippage from bid ask spreads, so a strategy can be tested without risking real money. Setup requires creating a developer account with Upstox, generating an access token for market data, and installing the Python dependencies listed in the project. The README includes runnable example scripts for each major feature, such as fetching an option chain, streaming live ticks, or running a simulated trade. It also shows how to extend the toolkit to individual stocks beyond the built in indices by adding their instrument codes. This project is aimed at developers and traders building their own trading strategies in Python who need a working data layer for the Indian stock market, and it assumes basic familiarity with financial terms like options, open interest, and put call ratios.
A Python toolkit for pulling live and historical Indian stock market data from Upstox, including options data and a simulated paper trading broker.
Mainly Python. The stack also includes Python, Upstox API, WebSocket.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.