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
Understand contango in commodity trading, how futures prices differ from spot prices, and how financing, storage and insurance costs influence commodity pricing.
Copper is a widely used base metal known for its electrical and thermal conductivity, strength, ductility and corrosion resistance. It is used across electrical wiring, construction, machinery, power infrastructure and several industrial applications.
Natural Gas is a widely traded energy commodity used for electricity generation, industrial activity, heating and other applications. Its prices can react sharply to weather, supply and demand, inventories, global energy markets and geopolitical developments.