Free Account Opening + AMC Free Demat
Loading...

Upstox API (Algo Trading) Review


-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.


Upstox API Benefits

  • Allows users to build their platform for convenient trading.
  • Customize trading platform as per requirements.
  • Users can use any preferred language of their choice - JavaScript, Python, PHP and C#.
  • Smallcase, Streak and Sensibull are the partners integrating the Upstox APIs.
  • Real-time data and order execution
  • Assist in Algo trading.
  • Well-documented and detailed API documentation.

Upstox API Charges

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 API Pricing

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

Upstox API Features

Feature Description

Broking APIs offered

· Interactive API (Trading API)
· Historical Data API
· Websocket API
· Tradebutton API (Publisher 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
· Login Authentication, P&L Statement API
· Order placement, cancellation, modification
· Order History, Market Feeds API
· Portfolio, Profile and Fund API
· Notifications
· Logout

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 API Rate Limit

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

Upstox API Login

With just a few clicks you can create your app for free with Upstox. Below are the steps to use the Upstox API:

  1. Sign in to the Upstox mobile app or web platform.
  2. Upstox will send you an OTP to verify the mobile number.
  3. From the Account tab, go to the Apps section.
  4. Click on My Apps.
  5. Click on "New App."
  6. Create a new app by entering details - app name, description, URL, etc.
  7. Get your API key and let the app creation begin.

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 API Flow Chart

Types of Upstox API

  1. Upstox Interactive API (Trading APIs)

    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.

  2. Upstox Historical API

    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.

  3. Upstox WebSocket API

    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.

  4. Upstox TradeButton API

    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 Example

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 API Support

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 API vs Zerodha API

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.


Conclusion

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.

Upstox Special Offer

Exclusive offer by Upstox

  • Pay flat Rs 20 for Eq Delivery, Intra-day and F&O Trades.
  • Pay Rs 0 commission for Mutual Funds.

It is a limited-time offer. Open Instant Account and start trading the same day.

Frequently Asked Questions

  1. 1. Does Upstox provide API?

    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).

     

     

  2. 2. Is Upstox API free?

    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

     

     

  3. 3. How do I get my Upstox API key?

    Steps to get Upstox API key:

    • Create an app in the Developer Console with the App Type API Trading.
    • Provide the below details for your app
      • App Name
      • Redirect URL
      • Description
    • Once the app gets created, you will get an API key and API secret to access Upstox API.

    Upstox API - Create App 1
    Upstox API - Create App 2

     

     

  4. 4. How to use Upstox API?

    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,

    • Login to Upstox API by opening the web browser.
    • Authenticate yourself by entering your UCC, password, and date of birth.
    • Allow the app to access your credentials.
    • Upstox redirects you to the Redirect URL provided during app creation with a parameter called code.
    • Generate an access token with the help of the code.
    • Use the access Token as your authorization bearer token to start using Upstox API.

    Note: The Access token is valid until the next trading day.

     

     

  5. 5. What is Amibroker in Upstox?

    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.

     

     

  6. 6. Why Upstox stopped API?

    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.

Upstox Competitors Review

Information on this page was last updated on Friday, October 4, 2024

Special Offer: Pay flat Rs 20 per trade for delivery, Intra-day and F&O. Open Instant Account and start trading today.

1 Comments

1. Nilesh Khot   I Like It. |Report Abuse|  Link|June 29, 2023 1:29:59 PMReply
clould you please develop python application to buy and sell nifty option by using upstox api?