Download
iLearn application
Elevate Your Financial Knowledge with the
ICICI Direct iLearn App
Breeze API is the next-gen Trading API from ICICIdirect which has been built with a Customer-first mentality. We are the offering the widest range of data, unmatched in India alongside a robust and stable framework of processes to ensure data security and privacy
You need to login to on https://api.icicidirect.com/apiuser/home to save your App.
A session key is a temporary key that is only used once, during one stretch of time, for encrypting and decrypting data. This is similar to a password that someone has to resets every time they login and helps in encrypting a communication session for each app separately. This key or token expires in 24 hours after generation or at midnight.
Against “API_Session” will be an alpha-numeric (could be only numbers or only alphabets) token. This is your Sesssion Key for that app.
SDK stands for software development kit or devkit for short. SDK tools will include a variety of things, including libraries, documentation, code samples, processes, and guides. These can be used by developers to integrate into the apps they want to create.
A few samples:
from breeze_connect import BreezeConnect
# Generate Session
isec = BreezeConnect(api_key="your_api_key")
isec.generate_session(api_secret="your_secret",
session_token="YOUR_SESSION_TOKEN_OBTAINED_FROM_LOGIN_PAGE_RESPONSE")
# Websocket
isec.ws_connect()
# subscribe stocks feeds
isec.subscribe_stock(exchange_code="", stock_code="", product_type="", strike_date="", strike_price="", right="", get_exchange_quotes=True, get_market_depth=True)
def on_ticks(ticks):
print("Ticks: {}".format(ticks))
isec.on_ticks = on_ticks
# unsubscribe stocks feeds
isec.unsubscribe_stock(exchange_code="", stock_code="",product_type="", strike_date="", strike_price="", right="", get_exchange_quotes=True, get_market_depth=True)
Please note that the stock symbols for websockets/live data are different from all other end points. The stock codes for this can be referenced from the Security Master file available at https://api.icicidirect.com/breezeapi/documents/index.html#instruments
Learn how to calculate the break-even point in commodity trading by factoring in brokerage, taxes, and other charges
Learn how ICICI Direct's Auto Order Slicing automatically splits large commodity orders for faster, seamless execution while complying with exchange limits.
Learn about a BSDA account, its eligibility criteria, annual maintenance charges, and the latest SEBI rules for Basic Services Demat Accounts.