相关疑难解决方法(0)

YQLResponseMalformedError:yahoo_finance上的响应格式错误?

截至昨天,yahoo_finance的get_historical函数对我来说一直很好.

现在它每次我尝试调用get_historical时都会给我YQLResponseMalformedError.有任何想法吗?我对代码没有任何新的意义.

from yahoo_finance import Share
yahoo = Share('YHOO')
yahoo.refresh()
yahoo.get_historical('2014-04-26', '2014-04-29')
---------------------------------------------------------------------------
YQLResponseMalformedError                 Traceback (most recent call last)
<ipython-input-8-fbc20f9b6d26> in <module>()
----> 1 yahoo.get_historical('2014-04-26', '2014-04-29')

/Users/anjian/anaconda/lib/python2.7/site-packages/yahoo_finance-1.4.0-py2.7.egg/yahoo_finance/__init__.pyc in get_historical(self, start_date, end_date)
    340             try:
    341                 query = self._prepare_query(table='historicaldata', startDate=s, endDate=e)
--> 342                 result = self._request(query)
    343                 if isinstance(result, dict):
    344                     result = [result]

/Users/anjian/anaconda/lib/python2.7/site-packages/yahoo_finance-1.4.0-py2.7.egg/yahoo_finance/__init__.pyc in _request(self, query)
    123                 raise YQLQueryError(response['error']['description'])
    124             except KeyError:
--> 125                 raise YQLResponseMalformedError()
    126         else:
    127             if self._is_error_in_results(results):

YQLResponseMalformedError: Response malformed.
Run Code Online (Sandbox Code Playgroud)

python ipython yahoo-finance

5
推荐指数
1
解决办法
4557
查看次数

雅虎财务ichart服务可用性

以下雅虎财务网络服务消失了吗?API改变了吗?暂时下来?

现在看来ichart服务出现了问题:https://ichart.yahoo.com/table.csv?s = NFLX & a = 0&b = 1& c = 2016 & d = 4& e = 16& f = 2017 & g = h & signore = .cv

Yahooeyu

来自Yahoo!哪里的消息?由API密钥关闭?关了?

python matlab web-services r yahoo-finance

4
推荐指数
1
解决办法
2470
查看次数

标签 统计

python ×2

yahoo-finance ×2

ipython ×1

matlab ×1

r ×1

web-services ×1