FREE Equity Delivery and MF
Flat ₹20/trade Intra-day/F&O
|
-44.09% 2,771,549 Clients
Upstox Account Opening Enquiry
Pay flat Rs 20 per trade for delivery, Intra-day and F&O. Open Instant Account and start trading today.
Upstox API is a set of REST APIs (Application Programming Interface) that provides users with the required data to build a customized and complete investment and trading platform. By using Upstox API, customers can do Algo trading to create programs and codes for real-time order execution, access live market data, analyse historical data, and manage their portfolios.
Upstox API Uplink Version 2 supports 10+ languages, namely JavaScript, Python, C#, etc. Smallcase, Streak and Sensibull are the partners integrating the Upstox APIs. All requests are made over HTTPS and are sent with the "application/json" content type. Developers have the option to choose JSON or CSV response type for some API calls.
As a trader, you can create apps directly from the Upstox mobile app or desktop platform using the Apps sections on the Account tab. Go to account.upstox.com/developer/apps.
If you are a business looking to integrate the Upstox APIs, please contact the Upstox team who will create a custom app for you in no time.
Refer Upstox API documentation for more details.
All orders placed from UpLink Version 2 from 1st September 2023 till 29th February 2024 will be brokerage-free. Upstox API Subscription Charges are Rs 499 (GST included).
API Type | API Includes | Charges |
---|---|---|
Interactive API |
Orders, positions, real-time market updates, holdings, etc. |
Rs 750 per month |
Historical API |
OHLC (Open, High, Low, and close) data for different time intervals. |
Rs 500 per month |
Feature | Description |
---|---|
Broking APIs offered |
· Interactive API (Trading API) |
Language Supported |
10+ languages Javascript, Python, C#, PHP |
Exchanges supported |
BSE, NSE and, MCX (Equity, F&O, Currency, and Commodity) |
Real-Time data |
Yes |
Rate Limits |
Refer Upstox API Rate limit section below |
Supported features in trading app |
· All Basic features |
Integration with third-party software |
Amibroker |
Brokerage |
Rs.20 per trade (Orders placed from UpLink Version 2 will be brokerage-free starting from 1st September 2023 till 29th February 2024). |
Order Types Available |
Market Order, Limit Order, Stop-loss order (SL), Stop loss Market order (SLM), After Market Order (AMO), Cover Order (CO), Bracket Order (BO), Good-Till-Date Order (GTD) |
Product Types available |
Intraday, Delivery, Cover Order, Bracket Order (One Cancels Other) |
Upstox has the following rate limits on the API. The rate limit defines how many API calls can be made within a specified time.
API | Number of requests/second |
---|---|
Position fetching API Rate Limit | 1 |
Holdings fetching API Rate Limit | 1 |
Orders History API Rate Limit | 1 |
Orders Details API Rate Limit | 1 |
Trade Book API Rate Limit | 1 |
Trade History API Rate Limit | 1 |
Order Placement API Rate Limit | 10 |
Order modification API Rate Limit | Unlimited |
Order cancellation API Rate Limit | 1 |
Live Feed API Rate Limit | 1 |
Subscribe/Unsubscribe Live Feed API Rate Limit | 1 |
OHLC API Rate Limit | 10 |
With just a few clicks you can create your app for free with Upstox. Below are the steps to use the Upstox API:
The existing users need to enter User ID, Password, and Year of Birth in the Upstox API Login URL to access the API services.
Upstox Interactive APIs are the trading APIs that allow users to place, modify and cancel trading orders of various types like regular orders, after-market orders, cover orders, bracket orders, and GTD orders. Upstox Trading API also helps users retrieve their positions, balance, holdings, manage user portfolios, faster order execution, and access Trade book and Trade History.
Upstox Historical API offers OHLC (Open High Low Close) historical data for a range of different time intervals ranging from 1 min to 1 month. It stores back-dated data since 2005. Upstox Historical API helps you to backtest your strategy using relevant data from the past. Users can analyze the market performance of their trading strategies and implement or modify them as per their requirements.
Upstox WebSocket API allows you to receive various types of updates like order updates, trade updates, and quote updates for all instruments across NSE, BSE, and MCX.
Upstox TradeButton API allows users to add one-click buttons to the apps or webpages that allow order placement and trade execution. You can either add Upstox branded order placement buttons or custom buttons to your webpage. The TradeButton API provides a facility for users to create a buy or sell single or basket order or mixed basket order.
Upstox API makes trading easy and convenient for traders. Let us see some examples of how Upstox APIs are useful for traders:
Example 1
The Upstox APIs connect traders directly with the stock markets and view real-time data and prices of stocks. Using Upstox API, you can book a profit on shares by selling them at a specified price even without sitting in front of the screen and tracking markets. Users can create a set of instructions through which the order gets auto executed once the stock reaches your desired target price.
Example 2
API also helps you in margin calculations. Using Upstox APIs, you can know all the margin requirements (viz. Span, Exposure, Option premium, Cash margin, VAR margin, etc.) for a list of stocks together. It becomes significant when users need to know the margins requirements for a list of securities at once as they don't need to put details of each stock one by one.
Upstox provides API support via live chat or by raising a ticket. For a live chat with the support team or to submit a ticket, users can log in to their account and provide their account details like UCC and describe the problem to them.
Upstox and Zerodha both offer API services to their customers to enrich their trading experience. Let us have a look at some of the key differences in their API service offerings.
Upstox API | Zerodha API |
Upstox API charges are reasonable. Trading API Cost: Rs 750 p/m Historical API Cost: Rs 500 p/m |
Zerodha API charges are higher. Trading API Cost: Rs 2000 p/m Historical API Cost: Rs 2000 p/m |
Upstox API services are currently restricted to a closed group of members |
Zerodha API services are available to all Zerodha customers. |
Upstox does not have an API for mutual funds. |
Zerodha has a separate Coin API for mutual funds investment. |
Upstox rate limits are lesser compared to Zerodha. For eg: Upstox order placement API rate is 1/second |
Zerodha rate limits are more compared to Upstox. For eg: Zerodha order placement API rate is 5 to 10/second restrcited to 200 orders/minute |
Read Zerodha API review for more details.
Upstox API is a collection of simple-to-use APIs for trading at NSE, BSE, and MCX. The API offers advanced order types, backtesting, historical data stored since 2005, faster trade execution, assist Algo trading, and much more at reasonable pricing of Rs 750 per month for Trading APIs and Rs 500 per month for Historical API. However, currently, the API services are not offered to new members. The company is working in this direction and will update when its API offerings are made open for all.
It is a limited-time offer. Open Instant Account and start trading the same day.
Yes, Upstox provides API services. However, currently, their API services are not available to new users.
Upstox has a trading API (Interactive API), Historical API, Websocket API, Tradebutton (Publisher API).
No, Upstox charges a monthly subscription fee from its users. The company offers two plans to its customers: Interactive API and Historical API. The Interactive plan offers orders, positions, real-time market updates, holdings, etc. The Historical API offers OHLC (Open, High, Low, and close) data for different time intervals.
API Type | Charges |
---|---|
Interactive API | Rs 750 per month |
Historical API | Rs 500 per month |
Steps to get Upstox API key:
You need to generate API key, secret key, and access token to use Upstox API. Once the app gets created and API key and secret key is available, follow the below steps to use Upstox API,
Note: The Access token is valid until the next trading day.
Amibroker is a charting software that offers users the tools to backtest their strategies.
Upstox customers (closed group of users with API access) can use the third-party software Amibroker to analyze markets using multiple indicators and chart types.
Upstox has not stopped API.
As a trader, you can create apps directly from the Upstox mobile app or desktop platform using the Apps sections on the Account tab. Go to account.upstox.com/developer/apps.
If you are a business looking to integrate the Upstox APIs, please contact the Upstox team who will create a custom app for you in no time.
Refer to Upstox API documentation for more details. All orders placed from UpLink Version 2 from 1st September 2023 till 29th February 2024 will be brokerage-free. Upstox API Subscription Charges are Rs 499 (GST included).
Upstox Account Opening Enquiry
Pay flat Rs 20 per trade for delivery, Intra-day and F&O. Open Instant Account and start trading today.
Information on this page was last updated on Friday, October 4, 2024
Rs 0 Account Opening Fee
Free Eq Delivery & MF
Flat ₹20 Per Trade in F&O
FREE Intraday Trading (Eq, F&O)
Flat ₹20 Per Trade in F&O
|