Dear all,
I am having difficulty importing a custom csv file into quantopian.
vol_csv = "https://www.dropbox.com/s/8y77li835b98q40/quantopian_vol_upload.csv?dl=1"
def initialize(context):
fetch_csv(vol_csv,
date_column = 'vol_date',
date_format = '%Y-%m-%d')
context.etf = sid(19656) #XLF
def handle_data(context, data):
log.info(data[context.etf]["vol"])
This throws the exception
KeyError: u'no item named vol_date'
My other question is that: is it possible to incorporate daily data in back testing with minute bar data?
Thanks for the help!