2012-09-26 94 views
2

我的应用程序显示股市数据。我使用YQL获取股票数据。雅虎财务api返回空回复

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:00印度时间),在此之前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

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

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