3

我的应用程序显示股市数据。我正在使用 YQL 来获取股票数据。

http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%20in%20(%22SBIN.NS%22)&env=store: //datatables.org/alltableswithkeys&diagnostics=true&format=xml

两天后,当我早上或之前(印度时间下午 1 点)取货时,yql 查询返回空响应。但现在它显示出确切的问题

查询结果为“yahoo.finance.quotes”已被屏蔽。

回应是

    <query xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" yahoo:count="0" yahoo:created="2012-09-26T11:24:22Z" yahoo:lang="en-US">
    <diagnostics>
    <publiclyCallable>true</publiclyCallable>
    <url execution-start-time="20" execution-stop-time="23" execution-time="3" proxy="DEFAULT">
    <![CDATA[
    http://www.datatables.org/yahoo/finance/yahoo.finance.quotes.xml
    ]]>
    </url>
    <cache execution-start-time="25" execution-stop-time="26" execution-time="1" method="GET" type="MEMCACHED">
    <![CDATA[ 13c4f8eac77ad886bade5a711c8c1ef5 ]]>
    </cache>
    <javascript name="yahoo.finance.quotes" verb="select">
    <![CDATA[
    com.yahoo.platforms.pipes.model.ModuleException: Error Codes: js.blocked.execute.request Message: "The current table 'yahoo.finance.quotes' has been blocked. It exceeded the allotted quotas of either time or instructions"
    ]]>
    </javascript>
    <user-time>26</user-time>
    <service-time>4</service-time>
    <build-version>30549</build-version>
    </diagnostics>
    <results/>
    </query>

我没有超过请求限制 1000\小时。只需在一天内尝试 50 次。

4

1 回答 1

4

“这是一个社区贡献的表格,被多人使用。如果一张表格似乎占用了我们的资源,或者持续花费超过 30 秒的时间来执行(这也可能是由于下游来源缓慢),我们将其标记为滥用表格。这特定表似乎比其他表被标记为滥用的次数更多。我们也会在一段时间后删除我们的块,因此表的零星工作。如果您的应用程序需要更稳定的应用程序,我建议您等待 Yahoo! Finance 的官方表数据源。”

http://developer.yahoo.com/forum/YQL/YQL-The-current-table-39-yahoo-finance-quotes-39-has/1332611837865-68d31e89-80e4-4691-91e6-86f687302ff4

于 2012-09-26T11:46:53.933 回答