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
Prayag
October 2, 2020, 3:18am
3
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?
Prayag
October 2, 2020, 6:04am
5
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
β¦/query?function=TIME_SERIES_DAILY&symbol=BSE:HDFCBANK&apikey=XYZ
β¦/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
Prayag
October 2, 2020, 8:29pm
7
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
Vaga
October 3, 2020, 1:56pm
8
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.
Vaga
October 4, 2020, 7:37am
10
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
Prayag
January 21, 2021, 3:17am
12
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.
Prayag
July 6, 2021, 6:39pm
13
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
1 Like
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.