Ok, so, I have a csv list on dropbox. It has two fields (symbol and date) Date is in YYYYMMDD format (so...%Y%M%d, I think) Each day has a bunch of symbols to purchase. So far, so good.
The goal here is simple: Run through that list, grab all the symbols for the appropriate date, and buy them at the start of the day. That's it. Seriously. The rest I can try to figure out on my own.
So, in my initialize, I have the csv_fetch code.
context.buy_these = {}
fetch_csv('publicdropboxurlhere',symbol='symbol',date_column='date',date_format='%Y%M%d')
And in my handle_data part,I have this:
today = get_datetime().date()
if today in context.buy_these:
order(context.buy_these[today],5)
But I have no idea how to associate buy_these with the incoming csv data. Or how to set symbols() to the appropriate incoming csv rows.
I've been hunting via Google and Quantopian, with no luck. Most of the csv import examples only deal with single symbols.
A code example would be great, but having a little guidance on the 'whys' and 'hows' of the example would be even better. =)