Hi,
I had been trying to ponder this ordeal with data.fetcher_assets. I am using fetch_csv to grab my data from dropbox with the following code
def initialize(context):
fetch_csv('https://dl.dropboxusercontent.com/u/26039084/MEG.csv',
date_column = 'DATE',
symbol='MEG',
date_format='%M/%D/%Y')
under handle_data all I am trying to do is to get the symbols from data.fetcher_assets but this thing is null!!
def handle_data(context,data):
print "total fetchet_assets size:{c}".format(c=len(data.fetcher_assets))
for stock in data.fetcher_assets:
print "list of stocks:{s}".format(s=stock)
I get the below response
2010-01-06 22:38 PRINT total fetchet_assets size:0
2010-01-06 22:39 PRINT total fetchet_assets size:0
2010-01-06 22:40 PRINT total fetchet_assets size:0
2010-01-06 22:41 PRINT total fetchet_assets size:0
2010-01-06 22:42 PRINT total fetchet_assets size:0
2010-01-06 22:43 PRINT total fetchet_assets size:0
2010-01-06 22:44 PRINT total fetchet_assets size:0
How can I iterate through data.fetcher_assets to get the fetch stock from fetch_csv()????