backtrader/backtrader-docs

python noob question - bt.feeds.YahooFinanceData

johndpope opened this issue · 0 comments

I want to iterate over the lines of data from yahoo - and save to database.
just want to suck each line out.

usually in swift we can leverage
df = bt.feeds.YahooFinanceData(dataname='BTC-USD', fromdate=datetime(2011, 1, 1), todate=datetime(2018, 12, 31)) // this all works fine.

for dict in df{ // how to craft this line here?
print( dict["open"])
}

I check docs and it said stuff about _load
it wasn't clear to me how to carry this out.

ended up diving into pycharm to break apart - still none the wiser.

screen shot 2018-02-08 at 10 43 03 pm