雅虎财经所有货币报价 API 文档 [英] Yahoo Finance All Currencies quote API Documentation

查看:34
本文介绍了雅虎财经所有货币报价 API 文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I've being using this feed for a long time, I believe Apple does it as well in one of the mac widgets. but what is really curious is that I simply can't find any documentation for it, I've tried google and everything.

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

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

I can see people using different parameters like view=basic date=Ymd; currency=true but it's horrible there isn't anything official.

现在我使用这些参数:

format=jsoncallback=list 有时...

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

But it is still a mystery for me. Does anyone know the real truth about it because it seems Yahoo is trying to hide it somewhere else :)

推荐答案

从我所做的研究来看,似乎没有任何文档可用于您正在使用的 API.根据您尝试获取的数据,我建议使用 Yahoo 的 YQL API 来访问 Yahoo Finance (可以在此处找到示例).或者,您可以尝试使用这种有据可查的方式来从雅虎财经获取 CSV 数据.

From the research that I've done, there doesn't appear to be any documentation available for the API you're using. Depending on the data you're trying to get, I'd recommend using Yahoo's YQL API for accessing Yahoo Finance (An example can be found here). Alternatively, you could try using this well documented way to get CSV data from Yahoo Finance.

关于雅虎开发者论坛 似乎没有文档(重点是我的):

There has been some discussion on the Yahoo developer forums and it looks like there is no documentation (emphasis mine):

缺少文档的原因是我们没有财务 API.似乎有些人对他们用来提取财务数据的 API 进行了逆向工程,但他们这样做违反了我们的服务条款(不重新分发财务数据),因此我建议您避免使用这些网络服务.

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 控制台,虽然我是不够精明,不知道如何用它提取 URL 参数.

At the same time, the URL you've listed can be accessed using the YQL console, though I'm not savvy enough to know how to extract URL parameters with it.

这篇关于雅虎财经所有货币报价 API 文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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