I have resolved the issue. I also have an account with ICICI Direct, which provides API access, but I faced some issues while trading through it. Therefore, I used ICICI Direct to retrieve historical data and will continue accumulating current data …