Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
zipline package locally: doubts

Today i created a venv in Python 3.5 in order to use the zipline package locally with Anaconda/Spyder.
I installed it with conda and installation seems to have gone well, but i have problems to find various modules of your tutorials.
For instance, the module

from zipline.pipeline.data.psychsignal import stocktwits  

, when i run the script in Spyder the output is an ImportError 'no module named zipline.pipeline.data.psychsignal'.
I tried even in other ways, like 'from zipline.pipeline.data.psychsignal import stocktwits_limited_free' but without success.

Another example is

from zipline.algorithm import attach_pipeline  

' and output is ImportError: cannot import name 'attach_pipeline'

I don't understand if i have to install other specific packages after i installed the quantopian zipline package or if there are limitations to use zipline locally.

Thank you

2 responses

Antonio,

zipline is a library that powers our our simulations.

There are other elements of the Quantopian product that are not open sourced and included in zipline. One key element that is not included in zipline is the data from 3rd party providers such as Psychsignal or more generally the market data needed to simulate trading. As such, the lectures and educational content will work reliably with the development environments hosted and provided on the Quantopian site, but not when running locally.

If you'd like to follow our quant finance educational curriculum or use the tutorials, use the Quantopian site.

Thanks
Josh

Disclaimer

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by Quantopian. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. No information contained herein should be regarded as a suggestion to engage in or refrain from any investment-related course of action as none of Quantopian nor any of its affiliates is undertaking to provide investment advice, act as an adviser to any plan or entity subject to the Employee Retirement Income Security Act of 1974, as amended, individual retirement account or individual retirement annuity, or give advice in a fiduciary capacity with respect to the materials presented herein. If you are an individual retirement or other investor, contact your financial advisor or other fiduciary unrelated to Quantopian about whether any given investment idea, strategy, product or service described herein may be appropriate for your circumstances. All investments involve risk, including loss of principal. Quantopian makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances.

Thanks.
But if i build a strategy with quantopian, then how can i use it in real trading if i'm not able to use some data? Must i buy them? Must i pay a subscriptiona?
How does it works the process that goes from simulations on this site to the real trading?