Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

IIFL (XTS)

Use Broker Configuration and Login to save these credentials in OpenAlgo and connect the broker. The .env examples below remain supported; .env keys for the selected broker take precedence over database-saved keys.

IIFL Securities provides API access through the XTS (Symphony Fintech) platform, served from https://ttblaze.iifl.com. OpenAlgo's iifl plugin talks to two XTS endpoints: the Interactive API for orders, positions and holdings, and the Market Data API for quotes, depth and historical candles.

This page covers the XTS integration, which OpenAlgo registers as the broker iifl. IIFL also runs a separate Markets' APIs developer portal used by the IIFL Capital plugin (broker iiflcapital). The two are different products with different credentials. Pick the one your account is enabled for.


Step 1: Create API Applications

Log in to the IIFL XTS developer dashboard with your IIFL credentials.

Once logged in:

  1. Go to My App > Create New Application

  2. Create two separate apps:

  • Interactive Order API

  • Market Data API

Details to Fill:

  • App Name: OpenAlgo

  • App Description: OpenAlgo

  • Redirect URL: (leave it empty)

  • Company Name: OpenAlgo (or your own)

  • Choose the correct API Package depending on the app (Order or Market Data).

Once submitted, wait for approval from the broker. After approval, the status will turn Active.


Step 2: Setup Environment Variables

Each app issues its own App Key and Secret Key. The Interactive app's pair goes into the plain variables, the Market Data app's pair into the _MARKET variables. Refer to the .sample.env file in your OpenAlgo folder and prepare your .env as follows:

Replace the values with actual credentials shown on your developer dashboard once approved.


Step 3: Start OpenAlgo

Once all environment variables are set and both apps are Active, start OpenAlgo and click Connect on the IIFL (XTS) broker page. There is no broker login screen to complete: OpenAlgo posts your App Key and Secret Key straight to the XTS session endpoint and receives the interactive token, the market data feed token and your user id in one step.

This completes the integration process for IIFL (XTS) with OpenAlgo.

Integrating OpenAlgo with IIFL's XTS API empowers traders and developers to automate and streamline their trading workflows with precision and speed. By using both the order execution and market data APIs, you can build robust trading systems capable of reacting to market conditions in real time. Always ensure secure handling of API credentials, implement proper error handling, and monitor your integration to maintain reliability and compliance.

Supported Exchanges

OpenAlgo reads this plugin's exchange list from broker/iifl/plugin.json and serves it to the app, so symbol search, the Strategy Builder and the tools pages only offer what the plugin actually handles.

  • Tradable: NSE, BSE, NFO, BFO, CDS, MCX

  • Index feeds: NSE_INDEX, BSE_INDEX

Last updated