You are using wrong API for historical data. Please go through this documentation - https://smartapi.angelone.in/docs/Historical