How to fetch OHLC data beyond 01 yr for any stock in day timeframe. By default we are getting 1 yr data.
Hi @anil_naik, you can use the historical_daily_data()
method from the official dhanhq
Python library. This function interfaces with the /charts/historical
endpoint, which supports fetching daily candle data from the inception of the stock, not just one year. read more here
Set the from_date
and to_date
parameters accordingly (in YYYY-MM-DD
format).