Alpha Vantage API Excel
Asked Answered
S

1

1

I’ve got an Alpha Vantage API key and am having issues with parsing the data. I’m unsure how to approach parsing the data as there are JSON and CSV options. The CSV seems to be a download, I’m not trying to manually download a new file every time I want to update the stock price.

This is how I used to get the prices of stocks in Excel:
enter image description here

I would always use CTRL-ALT-F9 to refresh everything.

Unfortunately, Yahoo has stopped this service so I have to fix it.

Strath answered 10/11, 2017 at 19:2 Comment(0)
D
3

You can use Alpha Vantage the same way. But it gives you more information for each call so you need to parse it. To get the latest stock price for example, this works:

=NUMBERVALUE(MID(WEBSERVICE("https://www.alphavantage.co/query?function=TIME_SERIES_DAILY&apikey=<key>&datatype=csv&symbol=MSFT&outputsize=compact"),49,6))
Defense answered 14/11, 2017 at 3:10 Comment(1)
Thank you for your help, I really appreciate that!Strath

© 2022 - 2024 — McMap. All rights reserved.