Skip to content

Can't get Crude Oil data from Yahoo! Finance #290

Closed
@xuantianfengwu

Description

@xuantianfengwu

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 ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions