Has AlphaVantage stopped NSE stock quotes data?

I have been using AlphaVantage to get the historic data for NSE stocks. But since past 1 month the API has stopped returning data for NSE stocks. It return data for NASDAQ stocks data.

I tried searching the internet and the closest I found was this question of StackOverflow but it was also not answered. I am using below URL to fetch the data.’

https://www.alphavantage.co/query?function=TIME_SERIES_DAILY&symbol=NSE:HDFCBANK&apikey={API_KEY}

Has AlphaVantage stopped NSE stock quotes data? Or am I doing something wrong here?

1 Like

I am also facing the same issue. Did you find the solution?

1 Like

It seems AlphaVantage no longer provides NSE data (mentioned by a person on Twitter). You can alternatively try querying for the BSE data (this still works) -

https://www.alphavantage.co/query?function=TIME_SERIES_DAILY_ADJUSTED&symbol=BSE:RELIANCE&apikey=XYZ

By any chance can we get 1 min candle data from alpha vantage for nse/bse stocks?

They have a TIME_SERIES_INTRADAY function with support for 1-minute interval data but unfortunately, that doesn’t work with either NSE or BSE stocks

I tried the below options for symbol but none of them worked

  1. …/query?function=TIME_SERIES_DAILY&symbol=BSE:HDFCBANK&apikey=XYZ
  2. …/query?function=TIME_SERIES_DAILY&symbol=HDFCBANK.BSE&apikey=XYZ

I get the below JSON error message.

{
    "Error Message": "Invalid API call. Please retry or visit the documentation (https://www.alphavantage.co/documentation/) for TIME_SERIES_DAILY."
}

When I fire the search query if does return me HDFC Bank BSE symbol.

https://www.alphavantage.co/query?function=SYMBOL_SEARCH&keywords=hdfc&apikey=XYZ

Some of the BSE stocks are only accessible using their Security Code, like for HDFC BANK you can access it via

https://www.alphavantage.co/query?function=TIME_SERIES_DAILY_ADJUSTED&symbol=BSE:500180&apikey=XYZ

1 Like

If you are looking for day candle data than yahoo finance API would be the best option.

I thought that Yahoo Finance API is deprecated. Can you please share the endpoint or any link to its documentation? I am looking for historical end of day stock prices.

This is available as part of pandas data reader. Try below function in python

from pandas_datareader import get_data_yahoo as data
a = data(’^NSEI’,‘2010-01-01’,‘2020-10-01’)

Also, you can check this documentation for other sources as part of pandas DataReader. Not sure if all provide Indian stock data
https://pandas-datareader.readthedocs.io/en/latest/remote_data.html

2 Likes

https://www.alphavantage.co/query?function=GLOBAL_QUOTE&symbol=BPCL.BO&apikey=ZT190HZDN99BS851

Try this. Works for BSE with proper symbols

I came across a different website that is providing access to NSE stocks data (documentation) -

https://fmpcloud.io/api/v3/historical-price-full/RELIANCE.NS?timeseries=50&apikey=API-KEY

timeseries attribute is for the number of days you want to fetch data for


In case you want to query data between a range of dates, then use -

https://fmpcloud.io/api/v3/historical-price-full/HDFC.NS?from=2018-03-12&to=2019-03-12&apikey=API-KEY


Note: It is free to use but requires registration. Also, the free tier has a limit of 250 requests a day & access to a maximum of 5 years old data.

1 Like

I came across a few other API providers which are also providing access to NSE stocks data for free -

IEX Cloud provides access to both NSE and BSE stocks -

https://cloud.iexapis.com/stable/ref-data/region/in/symbols?token=API-KEY

Endpoint for fetching the list of all supported Indian Stocks symbols across all exchanges


https://cloud.iexapis.com/stable/stock/EQTCS-IS/chart/1m?token=YOUR-API-KEY

Endpoint for fetching historical data for specific stock in the daily timeframe. To change the timeframe, replace 1m (1 month) in the URL with 5d (5 days) or 3m (3 months) or 6m (6 months). Refer to its documentation here.


UniBit also provides access to both NSE and BSE stocks -

https://api.unibit.ai/v2/ref/companyList?exchange=NSE&accessKey=API-KEY

Endpoint for fetching the list of all supported stocks symbols on NSE. For supported symbols on BSE, replace NSE in the URL with BOM


https://api.unibit.ai/v2/stock/historical?tickers=RELIANCE.NS&selectedFields=all&startDate=2021-06-15&endDate=2021-06-20&dataType=json&accessKey=API-KEY

Endpoint for fetching historical data for specific stock in the daily timeframe. Documentation available here

2 Likes

One of my close friends was also saying a few months back that he was facing the same issue of being unable to find the historic data. I have no clue as to why the problem is occurring.

did u find any
?

Thanks for the pointers, do you still use these API’s? In my digging around I found that these API’s are now not free any longer and subscriptions need to be purchased.

Can you tell me in which api i can see the 200ma also