谷歌财务api从2017年9月6日起不工作 [英] google finance api not working from 6/september/2017

查看:127
本文介绍了谷歌财务api从2017年9月6日起不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用google finance api获取股票报价并在我的网站上显示内容。从2017年9月6日起,这突然停止了工作。我以前获取股票报价的网址是 https:// finance.google.com/finance/info?client=ig&q=SYMBOL&callback= ?.

I was using google finance api to get the stock quotes and display the contents on my site. All of a sudden from 6/september/2017 this stopped working. The url i used to get the stock quotes is https://finance.google.com/finance/info?client=ig&q=SYMBOL&callback=?.

以前,我使用的是雅虎财务api和这是不一致的。所以,我切换到谷歌财务api。

Previously, i was using yahoo finance api and it was inconsistent. So, i switched over to google finance api.

你能帮我解决这个问题吗?

Could you please help me on this?

谢谢,
Ram

Thanks, Ram

推荐答案

最后我开始使用雅虎财经。数据不是直播,有20分钟的延迟。我认为这对面临像我这样的问题的人会有所帮助。

In the end i started using yahoo finance. The data is not live, there is a 20 minutes delay. I thought it will be helpful to people who are facing issues like me.

yahoo api url是 https://query.yahooapis.com/v1/public/yql?q=select%20 *%20from%20yahoo。 finance.quotes%20 where%20symbol%3D%22MSFT%22& env = store://datatables.org/alltableswithkeys

The yahoo api url is https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%3D%22MSFT%22&env=store://datatables.org/alltableswithkeys

这将以xml格式返回股票数据。您可以解析xml以获得所需的字段。

This will return the stock data in xml format. You can parse the xml to get your desired fields.

谢谢,
Ram

Thanks, Ram

这篇关于谷歌财务api从2017年9月6日起不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆