-
Notifications
You must be signed in to change notification settings - Fork 679
Can't get Crude Oil data from Yahoo! Finance #290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
https://finance.yahoo.com/lookup?s=cl.nym shows no results ... |
If you add the expiration you can see the info: https://finance.yahoo.com/quote/CLM17.NYM?p=CLM17.NYM I'm able to retrieve data via YQL: http://developer.yahoo.com/yql/console/?q=select%20*%20from%20yahoo.finance.quote%20where%20symbol%20%3D%20%22CLM17.NYM%22&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys My inclination from a bit of testing is that this is a limitation of the icharts API. |
The silver lining in the icharts API being deprecated, the new URL structure implemented by #331 will fix this problem - just tested:
Output (CSV):
|
Yahoo has been deprecated. |
First thanks for such a convenient tool to get data from all over the world.
But I met this problem when I tried to get daily historical data of Crude Oil from Yahoo,
my code is like this:
import pandas_datareader.data as data
import datetime
begin = datetime.datetime(2017,1,1)
end = datetime.datetime(2017,3,31)
oil = data.DataReader("CL.NYM", 'yahoo', begin, end)
oil.head()
I have tried CL, CL=F, F_CL, FCL, FCL.NYM, CL.NYM, a lot of that and still can't get the data I need. At last I have to use USO.
But I still want to know if I can get data of the crude oil Futures with pandas-datareader. Is there any category limitation when using pandas-datareader ?
The text was updated successfully, but these errors were encountered: