Hi ya'll, I'm very new to Quantopian and am seeking a few details or examples about when the handle_data() method is called.
I see in the documentation:
Called whenever a market event occurs for any of your algorithm's specified securities.
def initialize():
context.stock = symbol("SPY")
def handle_data(context, data):
print("Event occurred on SPY?")
Could someone please elaborate or maybe provide a few scenarios that constitute a 'market event'? Also, by "specified securities" does that mean any securities that I've defined in the initialize method?
Thank you in advance, sorry for the newby question.