I fetch a signal from a csv, and then when I try to access the data in the global data array, it gives me "debugger gives: Tree_expand: This object is no longer in scope" , which I am currently interpreting as that the data is not set. Here is my very simple code, with the url redaced for security reasons:
def initialize(context):
url = "--"
fetch_csv(url, date_column='date', date_format = '%m/%Y/%d %I:%M:%S %p', symbol='frc')
context.security = symbols('BA','CSCO')
def handle_data(context, data):
data['frc']
Any clue as to why this is happening? Any help is greatly appreciated