2012-09-26 95 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