Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Preview Google CSV

Having issues with run time errors. Can someone help.

To refer to stocks into Google Document and bring in their latest Closing Price after Market Opens

The Google CSV file has 4 columns Date. Symbol, Shares and Stop Loss Percent to be used as Variables

To get the latest market price after market opens.

Finally have 5 variables to refer to for further calculations.

Problem : Not even able to see the Google Document - Getting runtime error on line 15

def preview(df):
log.info(df)
return df

def initialize(context):
set_symbol_lookup_date('07-15-2016')
fetch_csv('https://docs.google.com/spreadsheets/d/1gJEcLf1xHcgf8vRhizgpKwzUfDZp9ijkDmLKLEdT6yw/pub?gid=0&single=true&output=csv', pre_func = preview, date_column='date',date_format='%m/%d/%y', timezone='UTC')
pass