Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Difference between context and data

Guys I have gone through previous questions on this topic and lectures but am still not very clear.
I understand that context used inside initialize(context) method to pass the values in handle_data() function
i also read that data is your universe /options of stock and context is something specific.
But i am not clear from where is data taking the values ?
This may sound silly but appreciate if you can explain difference data and how it is different from context?

1 response

think of it as array(stock, weight). context is the stock, weight is the data.