Alpha vantage API Not working for NSE while the same query is giving output for foreign stocks
Asked Answered
A

3

5

I was trying to get JSON for a company by calling API of alphavantage. For some company data it works and for some company it's failing. For example, for this query it works:

https://www.alphavantage.co/query?function=TIME_SERIES_DAILY_ADJUSTED&symbol=IBM&outputsize=full&apikey={API_KEY}

But for example this query fails:

https://www.alphavantage.co/query?function=TIME_SERIES_DAILY_ADJUSTED&symbol=NSE:TATAMOTORS&outputsize=full&apikey={API_KEY}

Aphasic answered 26/6, 2020 at 6:32 Comment(8)
Welcome to SO. Please add: What is your question? What is your error? What do you expect SO members to answer?Syphilology
The API is not returning any data for NSE stocks. If I'm doing anything wrong or the API is not supporting currently the NSE stocksAphasic
@S.Roy: API documentation should be able to help for both of your queries. Check the docs whether it supports NSE stocks or there's something wrong with the query format. We don't have access to APIs so we won't be able to help much.Clubhouse
They appear to be having some technical issues similar questionCompanionate
Try dropping them an email [email protected]Companionate
yes. Did that. thanks to allAphasic
Let us know the response.Companionate
They have not responded yet. if I get one, i will update hereAphasic
S
5

go to link and search exact code for your stock. https://www.alphavantage.co/query?function=SYMBOL_SEARCH&keywords=tatamotors&apikey=ZZZZZZZZZZZZ

Hope this will help u.

Sculpsit answered 1/7, 2020 at 18:28 Comment(2)
don't forget to replace keyword value "tatamotors" and API key mentioned on the link.Sculpsit
Hello PrashantT, instead of commenting on your answer, you can edit it. Comments are easy to overlook when scanning answers, and they're sometimes hidden. It's better to edit/update and answer to make it more complete than adding a comment that may be overlooked.Di
S
3

Alphavantage has stopped supporting NSE data.

Staphylo answered 17/1, 2021 at 16:53 Comment(0)
I
0

Sorry for posting this answer late.

It works for BSE and its in the documentation too.You can try it out like:

https://www.alphavantage.co/query?function=TIME_SERIES_DAILY_ADJUSTED&symbol=RELIANCE.BSE&outputsize=full&interval=5min&apikey=*your_key*

ALPHA VANTAGE BSE

On the other hand,it works for for Daily and Monthly timeframes and not for Intraday :(.

Isiahisiahi answered 20/10, 2021 at 17:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.