Hi Best and Brightest,
My very simple and straight forward fetch_csv does not work. I've check encoding, tested it with another file which works, compared it 1000 times, yet, I get a weird error on load. The error I get is:
MultipleSymbolsFound: Multiple symbols with the name 'A' found. Use the
as_of_date' argument to to specify when the date symbol-lookup
should be valid.
Possible options: [Equity(1225226617897805 [A]), Equity(24757 [A]), Equity(1216409268279878 [A]), Equity(1181121446956622 [A]), Equity(1204288701478740 [A])]
The code I use:
def initialize(context):
# set_symbol_lookup_date('2018-05-01')
file_url = 'https://docs.google.com/spreadsheets/d/e/2PACX-1vQ2wjr1uvpYxGZssaBFmpFripOXUIWD357hGCKLP0hd0eZRDOUkRH9c5_Dck4FuUs2SoteIbFUtjbsK/pub?gid=1510738953&single=true&output=csv'
fetch_csv(file_url,
date_column='date',
date_format='%Y-%m-%d',
mask=False,
timezone='EST'
)
def before_trading_start(context, data):
pass
def handle_data(context, data):
pass