json - 雅虎财经全币种报价 API 文档

标签 json api yahoo currency finance

我已经使用这个提要很长时间了,我相信 Apple 在其中一个 mac 小部件中也是这样做的。但真正令人好奇的是,我根本找不到任何文档,我已经尝试了 google 和一切。

http://finance.yahoo.com/webservice/v1/symbols/allcurrencies/quote

我可以看到人们使用不同的参数,例如 view=basic date=Ymd; currency=true 但可怕的是什么都没有官方。

现在我使用这些参数:

format=jsoncallback=list 有时...

但这对我来说仍然是个谜。有谁知道它的真实情况,因为雅虎似乎试图将其隐藏在其他地方:)

最佳答案

根据我所做的研究,您正在使用的 API 似乎没有任何可用的文档。根据您尝试获取的数据,我建议使用 Yahoo 的 YQL API 访问 Yahoo Finance (An example can be found here) .或者,您可以尝试使用这种有据可查的方式来 get CSV data from Yahoo Finance .

编辑:

有一些关于Yahoo developer forums 的讨论。看起来没有文档(强调我的):

The reason for the lack of documentation is that we don't have a Finance API. It appears some have reverse engineered an API that they use to pull Finance data, but they are breaking our Terms of Service (no redistribution of Finance data) in doing this so I would encourage you to avoid using these webservices.

同时,您列出的 URL 可以使用 YQL console 访问。 ,虽然我不够精明,不知道如何用它提取 URL 参数。

关于json - 雅虎财经全币种报价 API 文档,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5108399/

相关文章:

jquery - 雅虎财经 cometd 技术

javascript - node.js:雅虎天气的 jQuery 插件不打印数据

javascript - 将 envMap 添加到 model.json Material 中

api - Google Reader Api 将所有项目标记为已读

java - Spring MVC 测试中带有过滤器的 JsonPath 表达式

android - 需要一个开源文本语言翻译 api

php - 为新的 Api 使用 SOAP 或 REST

xml - R : "subscript out of bounds" 中的数据混搭

javascript - 如何在 extjs 网格单元中显示嵌套数组

python - 使用 Pandas 解析嵌套 JSON