Forum Discussion

sonm10's avatar
sonm10
Icon for Helper I rankHelper I
5 years ago

Downloading stock data from NSE India

Hello,

I have a requirement to load the stock data from NSE website (nseindia.com). I found that they have the option to download historical data in a csv and the url of the download link (https://www.nseindia.com/api/historical/cm/equity?symbol=HCLTECH&series=[%22EQ%22]&from=26-03-2021&to=26-04-2021&csv=true). Through the link, I can succesfully download the required data. However, I have to load the data on a daily basis so wanted to connect directly through Power BI Desktop. I tried with the web source in the Desktop but the query keeps loading till I get a "timeout" error. I tried the same url through Postman and got the result instantly. I tried playing with the headers but no luck so far. Any suggestions is appreciated.

I also found that there is a python package (nsepy) that scraps the data from NSE site. However, with the python script, the package cannot be added to the service and requires Personal Gateway(I have standard) for using the packages.

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    sonm10 

    "Resource Not Found" for me. Is this data displayed in a table in the webpage or it is a csv file for downloading?

     

     

    Paul Zheng _ Community Support Team