Google API因谷歌财务数据而发生变化

时间:2017-09-15 15:49:37

标签: api google-api google-finance

我有一个从谷歌财务中提取日内数据的软件。但是,由于昨天谷歌更新了API,因此该软件给出了错误

  

从字符串HTML HEAD meta http-equiv =“con”转换为“Double”类型无效。

我有一个该软件的ionic.zip.dll文件。有人可以帮助更新,如何解决上述错误

2 个答案:

答案 0 :(得分:8)

我相信我已经找到了解决Google财经不会下载日内价格的问题的解决方案:域名(网址开头的部分)已更改。

Google似乎正在提供finance.google.com而不是www.google.com的数据。如果您使用www域,则会被重定向到finance.google.com,但在此过程中他们会以某种方式删除确定时间间隔的& i查询字符串参数。默认为86400,仅为您提供每日数据。

为Apple获取2天的1分钟数据,而不是

https://www.google.com/finance/getprices?p=2d&i=60&f=d,o,h,l,c,v&q=AAPL

改为:

https://finance.google.com/finance/getprices?p=2d&i=60&f=d,o,h,l,c,v&q=AAPL

希望这会有所帮助: - )

答案 1 :(得分:0)

Google也没有在主域上提供Converter API,现在也没有了。我们更新了以下网址:

"https://www.google.com/finance/converter?a=$amount&from=$from_Currency&to=$to_Currency"

"https://finance.google.com/finance/converter?a=$amount&from=$from_Currency&to=$to_Currency"