Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Accessing data object, sid function, and more within an IPython notebook?

Hi,

Is it possible to use the default libraries available within a quantopian algorithm, within an IPython notebook?

I.e. what do I need to import to get something like the following to work in an IPython notebook:

hist = data.history(sid(24), 'price', 10, '1d')  

This would really speed up development because I can interactively play with the data and easily create the necessary data manipulation functions needed for my quantopian trading algorithm (whereas atm, if I want to create an involved data manipulation function, it might require running the backtester many times and logging different info).

1 response

You want the research environment api, in particular, the get_pricing() and symbols() functions.

check this out.