'Close' Attribute Error
-
I'm new to using Backtrader, and don't have a lot of experience with Python either. I began the quickstart tutorial, but quickly ran into an issue where the Yahoo Finance data wasn't being accessed. I then switched to using Quandl. Below is the relevant bit of code that is being used to fetch the ticker data.
data = bt.feeds.Quandl( dataname = "AMZN", apikey = "xxblahblahblahxx", dataset = "myspecialdataset", fromdate=datetime.datetime(2000, 1, 1), todate=datetime.datetime(2000,12,31) )
When I run the program, I get: Attribute Error: 'NoneType' object has no attribute 'close'.
I've been searching around and haven't been able to find a solution. I appreciate anyone's help.
TIA
-
It would be helpful if you could share your full code ( yes I understand this is the quickstart tutorial, but nevertheless ). A wild guess is that
adddata
call is missing somewhere but without actually seeing the code it is hard to tell for sure. -
@vladisld Funnily enough, I just found out why it wasn't working: I hadn't unzipped the download from the Github repo.
facepalm
Thanks for replying!