API Usage Policy
This page explains how you can use Upstox APIs and the market data they return. Read it before you build, especially if your app stores data, shows data to other people or serves users other than yourself.
This policy applies to everyone who uses Upstox APIs, including individual traders, developers and businesses. You need an Upstox account to use the APIs.
Exchange licences
You do not need a separate NSE, BSE or exchange market data licence for private use through Upstox APIs.
Market data usage
| Use | Allowed | Conditions |
|---|---|---|
| Fetch historical, intraday and live market data for your own analysis | ✅ Yes | Within the rate limits |
| Store market data locally, including bid and ask depth | ✅ Yes | For your own private use only |
| Keep raw and normalised data long term | ✅ Yes | No retention limit, for your own private use |
| Use stored data for backtesting, ML research, microstructure research and slippage analysis | ✅ Yes | For your own private use only |
| Paper trade with virtual capital | ✅ Yes | For your own private use only |
| Show market data to other users of your website, app or platform | ❌ No | Not allowed, whether the platform is free or paid |
| Redistribute raw market data to third parties | ❌ No | Not allowed under any arrangement |
| Fetch market data only to serve your own end users, without order execution | ❌ No | Connect with an exchange-authorised data vendor |
Sharing, selling, showing or giving third parties access to market data from Upstox APIs is redistribution, and it is not allowed. This applies to free and paid platforms alike, and Upstox does not offer arrangements that permit it.
Educational and paper trading platforms cannot show Upstox market data to their users. This applies to both free and paid platforms, so commercial plans built on Upstox market data are not allowed. You can still paper trade with Upstox market data for your own private use.
Business API access
The Business API is for fintechs that build trading and investing use cases for their end users. Examples include trade journals, portfolio tracking, risk and discipline tools, options analytics, market dashboards, order execution for research and advisory platforms, and model portfolio or basket investing.
Upstox has paused new Business API onboarding while regulators clarify the rules for third-party platforms connecting to broker APIs. There is no timeline yet. Follow the community update for news.
Credentials and access
- Keep your API key, API secret and access tokens private. Do not share them with anyone.
- Treat the Analytics Token as a sensitive credential. Each account can have only one active Analytics Token.
- Order APIs need a registered static IP. See Algo Registration and Static IP Requirement.
- With the Analytics Token, market data APIs work without a static IP, but account APIs need one.
- Stay within the rate limits. Repeatedly exceeding them can lead to a temporary suspension of API access.
Get clarification
If your use case is not covered here, ask in the Upstox Developer Community or email support@upstox.com before you build or launch.