Alpha Vantage API Excel

六眼飞鱼酱① 提交于 2020-01-05 04:13:07

问题


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:

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

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


回答1:


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))


来源:https://stackoverflow.com/questions/47229517/alpha-vantage-api-excel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!