Chittorgarh.com Logo
Loading...

Upstox API (Algo Trading) Review


143.59% 5,215,523 Clients

Upstox Account Opening Enquiry

FREE Account Opening + Rs 1000 brokerage credit + Rs 0 Demat AMC + 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 supports many languages viz. JavaScript, Python, .NET, etc. Upstox API also allows integration with third-party software like Amibroker, a charting platform, through which you can build and backtest your strategies with the help of historical data.

Currently, Upstox is not offering API services to new members and is only limited to a closed group of users.

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, and .NET.
  • Users can integrate with a third-party platform - Amibroker.
  • Real-time data and order execution
  • Assist in Algo trading.
  • Well-documented and detailed API documentation.

Upstox API Charges

Upstox has two different API subscription plans for its customers. It charges a monthly fee of Rs. 750 for its Interactive API services and Rs. 500 for its Historical API plans.

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

Javascript, Python, .NET

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
· Order placement, cancellation, modification
· Order History
· Portfolio
· Notifications
· Logout

Integration with third-party software

Amibroker

Brokerage

Rs.20 per trade

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 1
Order modification API Rate Limit 1
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

Upstox API is currently available only for a closed group of users of Upstox. The new members are not allowed to access the Upstox API services.

Upstox API gives users access to the live infrastructure of Upstox's trading platform that can help order placement, modification, cancellation, faster trade execution, access to live feed, user position, holdings, trade book, and much more.

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

  • FREE Account Opening.
  • Get Rs 1000 brokerage credit.
  • Rs 0 Demat AMC.
  • 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. Currently, Upstox API services are restricted to only a closed group of users. The new members are not allowed to access the existing API services.

    The company has stated that they are limiting their services to improve their API offerings and will update once their API services are made open to all Upstox customers.

     

     

Upstox Account Opening Enquiry

FREE Account Opening + Rs 1000 brokerage credit + Rs 0 Demat AMC + 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, June 10, 2022

Special Offer: FREE Account Opening + Rs 1000 brokerage credit + Rs 0 Demat AMC + Pay flat Rs 20 per trade for delivery, Intra-day and F&O. Open Instant Account and start trading today.

Comments

Add a public comment...