{"action":"created","issue":{"url":"https://api.github.com/repos/lukaszbanasiak/yahoo-finance/issues/95","repository_url":"https://api.github.com/repos/lukaszbanasiak/yahoo-finance","labels_url":"https://api.github.com/repos/lukaszbanasiak/yahoo-finance/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/lukaszbanasiak/yahoo-finance/issues/95/comments","events_url":"https://api.github.com/repos/lukaszbanasiak/yahoo-finance/issues/95/events","html_url":"https://github.com/lukaszbanasiak/yahoo-finance/issues/95","id":197319158,"number":95,"title":"How to get historical data for commodities index/futures.","user":{"login":"codesagar","id":16500122,"avatar_url":"https://avatars0.githubusercontent.com/u/16500122?v=3","gravatar_id":"","url":"https://api.github.com/users/codesagar","html_url":"https://github.com/codesagar","followers_url":"https://api.github.com/users/codesagar/followers","following_url":"https://api.github.com/users/codesagar/following{/other_user}","gists_url":"https://api.github.com/users/codesagar/gists{/gist_id}","starred_url":"https://api.github.com/users/codesagar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codesagar/subscriptions","organizations_url":"https://api.github.com/users/codesagar/orgs","repos_url":"https://api.github.com/users/codesagar/repos","events_url":"https://api.github.com/users/codesagar/events{/privacy}","received_events_url":"https://api.github.com/users/codesagar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-23T06:27:34Z","updated_at":"2017-04-13T11:53:42Z","closed_at":null,"body":"I am trying to retrieve Nymex Crude historical data.\r\nhttp://finance.yahoo.com/quote/CLF17.NYM?p=CLF17.NYM\r\n\r\n**While the get_price() and get_open() works perfectly, I am having trouble in getting the historical data.** (even for the current month - past week). I get malformed expression error. (on both python2 and python3)\r\n\r\n```\r\n>>> crude_oil = Share(\"CLF17.NYM\")\r\n>>> oil = Share(\"CLF17.NYM\")\r\n>>> print(oil.get_price())\r\n52.22\r\n>>> print(oil.get_open())\r\n52.11\r\n```\r\nHere goes the error part\r\n```\r\n>>> print (oil.get_historical('2016-12-11', '2016-12-22'))\r\nTraceback (most recent call last):\r\n  File \"/opt/conda/lib/python3.5/site-packages/yahoo_finance/__init__.py\", line 120, in _request\r\n    _, results = response['query']['results'].popitem()\r\nAttributeError: 'NoneType' object has no attribute 'popitem'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/opt/conda/lib/python3.5/site-packages/yahoo_finance/__init__.py\", line 123, in _request\r\n    raise YQLQueryError(response['error']['description'])\r\nKeyError: 'error'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/opt/conda/lib/python3.5/site-packages/yahoo_finance/__init__.py\", line 342, in get_historical\r\n    result = self._request(query)\r\n  File \"/opt/conda/lib/python3.5/site-packages/yahoo_finance/__init__.py\", line 125, in _request\r\n    raise YQLResponseMalformedError()\r\nyahoo_finance.YQLResponseMalformedError: Response malformed.\r\n```"},"comment":{"url":"https://api.github.com/repos/lukaszbanasiak/yahoo-finance/issues/comments/293869924","html_url":"https://github.com/lukaszbanasiak/yahoo-finance/issues/95#issuecomment-293869924","issue_url":"https://api.github.com/repos/lukaszbanasiak/yahoo-finance/issues/95","id":293869924,"user":{"login":"wgreene18","id":26743663,"avatar_url":"https://avatars2.githubusercontent.com/u/26743663?v=3","gravatar_id":"","url":"https://api.github.com/users/wgreene18","html_url":"https://github.com/wgreene18","followers_url":"https://api.github.com/users/wgreene18/followers","following_url":"https://api.github.com/users/wgreene18/following{/other_user}","gists_url":"https://api.github.com/users/wgreene18/gists{/gist_id}","starred_url":"https://api.github.com/users/wgreene18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wgreene18/subscriptions","organizations_url":"https://api.github.com/users/wgreene18/orgs","repos_url":"https://api.github.com/users/wgreene18/repos","events_url":"https://api.github.com/users/wgreene18/events{/privacy}","received_events_url":"https://api.github.com/users/wgreene18/received_events","type":"User","site_admin":false},"created_at":"2017-04-13T11:53:42Z","updated_at":"2017-04-13T11:53:42Z","body":"I'd like to get historical data for commodities and currency. It doesn't appear that the method 'get_historical()' is available for Currency. Is it possible to get that added as a method? I know that the Yahoo API does provide historical Currency data. "}}
{"actor":{"display_login":"wgreene18"}}