本文介绍了雅虎是否有财务数据请求的上限。是否有替代或解决方法吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好
我已经扫描这个网站和谷歌为从雅虎财经下载股票信息的任何最新的更新。我没有太多的成功。当我测试我的应用程序,我用下面的C#代码段读到一篇404服务器未发现异常:

Hi thereI have scanned this site and Google for any latest updates on downloading stock info from Yahoo Finance. I have not had much success. As I am testing my app, I came across an 404 server not found exception using the following C# code snippet:

string urlTemplate =
                 @"http://ichart.finance.yahoo.com/table.csv?s=[symbol]&a=" +
                   "[startMonth]&b=[startDay]&c=[startYear]&d=[endMonth]&e=" +
                      "[endDay]&f=[endYear]&g=d&ignore=.csv";
...
 WebClient wc = new WebClient();
            try
            {
                history = wc.DownloadString(urlTemplate);
            }



你知道,如果雅虎最近(或总是)有多少的一些更新很多你可以从雅虎财经服务器请求?如果是这样,没有人知道上限或阈值?它是随着时间的推移,或每日请求的最大数目?我想过把长达2分钟随机休眠请求该得到的。我不认为这将有助于。有没有使我能够不断地发出请求雅虎财经其它方法吗?我认为雅虎有某种你可以使用这个确切的目的订阅服务。我找不到任何关于它。如果没有,这是一个没有去与雅虎,没有任何人有负担得起的替代服务或数据馈送服务有任何建议?

Do you know if Yahoo recently (or always) had some update on how much much you can request from Yahoo's Finance server? If so, does anyone know the upper limit or threshold? Is it over time or max number of daily requests? I thought about putting a random sleep request of up to 2 minutes to get by this. I don't think that would help. Is there any alternatives that would enable me to constantly make requests to Yahoo Finance? I thought Yahoo had some kind of subscription service you could use for this exact purpose. I cannot find anything about it. If none of this is a no go with Yahoo, does anyone have any recommendations of affordable alternative services or data feed services?

推荐答案

他们从来不说什么限。我以前每天更新像6000股,它的工作。在一些其他页面的限制似乎要高得多,但在历史悠久的股价它们在某个时候阻塞。

They never said what the limit was. I used to update something like 6000 stocks daily, it worked. On some other pages the limit seems to be much higher, but on historic stock prices they do block at some point.

顺便说一句,有时雅虎服务器返回无证HTTP 999 。代码,我解释为过多的请求

By the way, sometimes yahoo server returns undocumented HTTP 999 code which I interpret as "too many requests".

如果你想要的是一天数据结束,那么也许你可以试试这个:

(我从来没有尝试过我自己)

If all you want is end of day data then perhaps you can try this:http://www.eoddata.com/products/default.aspx(I've never tried it myself)

当然也有支付更频繁的数据订阅。

Of course there are paid subscriptions for more frequent data.

这篇关于雅虎是否有财务数据请求的上限。是否有替代或解决方法吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-22 01:56