Alice Blue API (Algo Trading) Review

Alice Blue Logo

0%93,621 Clients

Alice Blue ANT API is a REST-based trading API platform designed for traders, investors, developers, and algo traders to connect their applications with Alice Blue’s trading system. These APIs are built on top of the KAMBALA Risk and Order Management System (RMS) (backend trading infrastructure to manage trading operations and risk controls), helping users perform trading activities through simple API integration.

Using Alice Blue APIs, users can place, modify, and cancel orders, track positions, check funds and balances, view order books, and access live market data. The APIs use JSON format for both requests and responses, making them suitable for web, desktop, and mobile trading applications.

The platform supports integration across different systems and can be used for algorithmic trading, automated trading strategies, portfolio management tools, and custom trading applications. Alice Blue also offers WebSocket APIs for real-time market feeds and live order status updates.

For security and authentication, users need to generate a secure session ID using SHA-256 encryption by combining the User ID, API Key, and Encryption Key. After the session is created, the Session ID is used in the authorization header for all future API requests.

Alice Blue API Details

API Brokerage Charge

Rs 20 For Equity, Futures and Options (per order)

API Document Linkhttps://v2api.aliceblueonline.com/introduction
API Data Format

JSON format is used for API requests and responses

API Offer Type

REST APIs for order management and WebSocket APIs for real-time market data streaming

API Exchange Support

NSE, BSE, MCX, CDS, NCO, BCO

API OS Support

Windows, MacOS, Linux, Android, and iOS

API Support Features

Order placement, modification, cancellation, live market data, portfolio management, funds tracking, and real-time order updates

API Order Types

Limit Order, Market Order, Stop Loss Order, Stop Loss Limit Order, and Stop Loss Market Order

API Support

Contact: +91 7676 444362 (9AM-6PM) (Monday-Saturday)

Alice Blue API Rate Limit

Alice Blue has implemented API rate limits to ensure fair usage across all clients.

  • Order-related requests such as placing, modifying, cancelling, and square-off orders are not limited.
  • All other API requests are limited to 1800 requests per 15 minutes.
  • The request limit resets automatically after every 15 minutes.

The platform also provides WebSocket APIs for live market streaming without repeated polling requests.

Alice Blue API Key

Users can generate API credentials through the Alice Blue developer portal.

The process includes:

  1. Login to the Alice Blue ANT web application.
  2. Navigate to Apps → API Key.
  3. Click on the option to generate the API Key.
  4. Accept the Terms and Conditions.
  5. After acceptance, the API Key will be sent to the user’s registered email ID.
  6. This API Key is used for authentication and authorization.

The generated API credentials are confidential and should not be shared publicly.

API Workflow

  1. After receiving the Encryption Key, users need to generate a SHA-256 encrypted key to create a User Session ID.
  2. The encrypted key is generated by combining:
    • User ID
    • API Key
    • Encryption Key
  3. Send this encrypted value to the authentication API.
  4. After successful verification, a valid User Session ID is generated.
  5. The Session ID must be used in the authorization header for all future API requests.
  6. If the session becomes invalid or unauthorized, users can generate a new session again using the same process.

Alice Blue API Types Offered

Alice Blue offers the following API types through its ANT API platform:

  1. REST API
    Used for:
    • Order placement
    • Order modification
    • Order cancellation
    • Portfolio management
    • Holdings and positions tracking
    • Funds and balance management
  2. WebSocket API
    Used for:
    • Real-time market data
    • Live quotes
    • Tick-by-tick market feed
    • Order status streaming
    • Market depth feed
  3. Vendor API
    Designed for:
    • Third-party platforms
    • Technical companies
    • Trading application developers
    • Multi-user session management without collecting API keys manually from users
  4. HTML5 Trading Button API
    Used for:
    • One-click order placement from websites
    • Basket order execution
    • Custom trading buttons integration on portals and webpages
  5. Historical Data API
    Used for:
    • Backtesting strategies
    • Downloading historical market data
    • Algo strategy development

SDK / Library Support APIs

Alice Blue also provides SDK and integration support for programming languages such as Python for easier API implementation.

Conclusion

Alice Blue ANT API is suitable for retail traders, developers, and algo traders looking for trading automation and real-time market connectivity. The platform offers REST APIs, WebSocket APIs, Vendor APIs, and HTML5 trading integrations for different trading requirements.

Its real-time data streaming, third-party integration support, basket order functionality, and algo trading capabilities make it useful for building custom trading platforms and automated trading systems.

Alice Blue Special Offer

Experience transparent pricing with no hidden fees at Alice Blue

  • ₹0 Account Opening Charges - Open Free A/c
  • ₹0 Account Maintenance Charges (AMC)
  • ₹0 brokerage Mutual Funds Investment
Open Free Alice Blue Account Now!

Frequently Asked Questions

Alice Blue offers free API services to its clients and partners through ANT Plus. Alice Blue offers Interactive and Feeds API that establishes a connection between your trading algorithm and Alice Blue's trading platform by providing you with a secret key.

Alice Blue API helps you build your own trading platform and assist Algo trading. It also helps real-time order execution, access live market feeds, manage portfolios, and much more.

 

Yes, Alice Blue provides free API to its customers and partners through ANT Plus.

You need to have an account with Alice Blue to access Alice Blue API. Alice Blue provides only Trading (Interactive) API and WebSocket (Feeds) API.

 

Alice Blue API (Application Program Interfaces) is a confidential key that allows you to establish a connection between your trading algorithm and Alice Blue's trading platform to obtain real-time pricing and place orders.

To get the API, you have to send the broker a request to generate an API Key on api@aliceblueindia.com. Alternatively, you can call their Customer Support for assistance.

 

Alice Blue offers ANT Plus free APIs to its customers and business partners. You need to have an account with Alice Blue to use Alice blue APIs. ANT Plus APIs help you build your own, customized trading platform with real-time market prices and data.

You need to drop an email to api@aliceblueindia.com to get free access to APIs. Once you get a response from Alice Blue, you need to generate Alice Blue API keys.

Steps to use Alice Blue APIs:

  1. Get your unique API secret by logging in to the develop-api.aliceblueonline.com.
  2. Click on 'Create an app'.
  3. Enter 'App Name' and 'Redirect URI' (https://ant.aliceblueonline.com/plugin/call back)
  4. Copy the 'App Id' and 'App Secret' required to generate an access token.
  5. Create access token using login and get_access_token() function with your username, password, 2FA (year of birth), App_id and App_secret.
  6. Once the access_token gets generated, you can start working with the Alice Blue APIs.

You can refer to Alice Blue API documentation for more details.

 

Alice Blue ANT API is a REST-based trading API platform that allows traders, investors, developers, and algo traders to connect their applications with Alice Blue’s trading system. The APIs are built on top of the KAMBALA Risk and Order Management System (RMS).

Using the API, users can place orders, modify or cancel trades, track positions, monitor funds and balances, access order books, and receive live market data. The platform uses JSON-based request and response formats, making integration simple for web, desktop, and mobile applications.

The API works through a secure authentication process. Users first generate an API Key, then create a SHA-256 encrypted key using the User ID, API Key, and Encryption Key. After successful verification, a Session ID is generated, which is used for all future API requests.

 

To get started with Alice Blue API:

  1. Login to the Alice Blue ANT web application.
  2. Navigate to Apps → API Key.
  3. Generate the API Key.
  4. Accept the Terms and Conditions.
  5. Receive the API Key on the registered email ID.
  6. Generate a secure Session ID using SHA-256 encryption.
  7. Use the Session ID in the authorization header for API access.

After completing authentication, users can start integrating APIs for trading, portfolio management, market data, and algo trading.

 

Users can access Alice Blue API by creating API credentials through the Alice Blue ANT platform. After generating the API Key, users need to authenticate themselves using the API workflow process.

The authentication process includes:

  • Generating an Encryption Key
  • Creating a SHA-256 encrypted hash using User ID, API Key, and Encryption Key
  • Sending the encrypted value to the authentication API
  • Receiving a valid User Session ID

Once the session is created, users can access REST APIs and WebSocket APIs for stock trading, live market data, order management, and automated trading strategies.

 

Alice Blue Competitors Review

Information on this page was last updated on Thursday, November 23, 2023

Special Offer:

Free Account opening| ₹0 AMC| Max ₹20/order – Equity, F&O, Commodity & Currency| No hidden Fees, Simple Brokerage

Open FREE Alice Blue Account Today!
🚀 Open Your Alice Blue Account Today!

Free Account opening| ₹0 AMC| Max ₹20/order – Equity, F&O, Commodity & Currency| No hidden Fees, Simple Brokerage

Open FREE Alice Blue Account Today!

Alice Blue Special Offer

Experience transparent pricing with no hidden fees at Alice Blue

  • ₹0 Account Opening Charges - Open Free A/c
  • ₹0 Account Maintenance Charges (AMC)
  • ₹0 brokerage Mutual Funds Investment
Open Free Alice Blue Account Now!
⚖️
Compare Brokers

Compare brokers side-by-side to choose the right one.

Are you a Alice Blue Customer?