@samarth please go through the API doc for historical data https://smartapi.angelone.in/docs/Historical. Also, you need to have an Angel One ID for using historical data API.