ICICI Direct Automate Trades Utilizing Free of Cost Breeze Connect API in Python

ICICI Direct Automate Trades Utilizing Free of Cost Breeze Connect API in Python


breeze-connect package, generate your API and secret keys from the ICICI Direct Breeze API Portal, and use a session token to connect and execute orders.

Setup and Installation

Open your terminal or command prompt.Type pip install breeze-connect to get the official Python SDK.Open your Python editor or Jupyter Notebook


Follow the Instructions From the Given Video Below then go for the Code Input:


from breeze_connect import BreezeConnect
import dbm
db=dbm.open('config','r')
api_key=db['api_key'].decode()
api_secret=db['api_secret'].decode()

breeze=BreezeConnect(api_key=api_key)
breeze.generate_session(api_secret=api_secret,session_token='56579573')

print(breeze.get_demat_holdings())

Key Rules and Limits


Cost: Completely free of charge for all ICICI Direct customers.Rate Limits: Maximum of 100 API calls per minute and 5,000 calls per day.Requirements: An active ICICI Direct trading account and a registered app session token generated daily.