【问题标题】:yahoo finance api returns empty response雅虎财务 api 返回空响应
【发布时间】:2012-09-26 07:17:47
【问题描述】:

我的应用程序显示股市数据。我正在使用 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 次。

【问题讨论】:

    标签: yql yahoo-finance


    【解决方案1】:

    “这是一个社区贡献的表格,供多人使用。如果表格似乎占用了我们的资源,或者执行时间持续超过 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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-04-10
      • 2017-03-01
      相关资源
      最近更新 更多