Jonathan, I haven't used Quantopian yet so maybe I am not getting what is the main goal of the tool.
Indeed, you are not.
Quantopian is not merely "an easy API," nor is that what it is intended to be. Quantopian is a full platform for the development, testing, and execution of algorithmic trading algorithms. We provide an integrated development environment, a debugger, more than 13 years of minute-bar historical stock pricing data, Morningstar fundamentals data, and a complete, ready-to-use framework for backtesting and live-trading algorithms. Over time, we will add more data sources and features to keep Quantopian at the vanguard of algorithmic trading in your browser.
Quantopian is also a crowd-sourced hedge fund, enabling our users who create successful trading algorithms to manage money in our fund, reaping the profits from doing so without any down-side risk.
Our goal in creating Quantopian was to make algorithmic trading as accessible as possible to as many people as possible. Providing nothing but an API for people to use would not have achieved that goal. The API is only a very small part of what we provide to our users so they don't have to build it themselves.
Why does the code needs to be in your server?
The code needs to be on our platform so that it can be edited within our IDE.
The code needs to be on our platform so that our users can take advantage of our collaboration features to work on their algorithms with other users and, sometimes, with our support representatives.
The code needs to be on our platform so that we can execute it.
The code needs to be on our platform so that it has access to the data we provide, whose licensing restrictions prohibit us from allowing them to be exported out of the platform.
those honorable commitments are nice but they are not used since the middle ages
I am really not sure what you mean.
Pretty much every single web site you visit which collects any sort of data from or about you has a Terms of Use page and/or Privacy Policy which spells out exactly what they will and won't do with those data. These are legally enforceable, and indeed, have been enforced through legal action in the past.
You will never lose the trust of your users because your users will never be sure that their code was stolen or not.
If we were to make a habit of stealing people's successful trading algorithms, then you're right that the first user whose algorithm we stole, and the second, and the third, ..., probably wouldn't notice. But eventually someone would notice, because the only way Quantopian is going to be financially viable is if we run a substantial amount of money through the algorithms we trade, and eventually somebody will pick up on the fact that some other mysterious entity is placing all the same trades as their algorithm, but in a lot higher volume, and disrupting the market sufficiently that it's reducing their profits.
When that happens, we'll get caught, and we'll be out of business, and quite possibly some of our principles will end paying huge fines or spending some time in jail. We're really not interested in taking that kind of risk; the risk of working for a revolutionary startup is more than enough, thank you very much.
But let's be clear... That's not a risk we need to take, because the business model we've created allows both us and our users to be successful without us ever taking unauthorized advantage of their intellectual property. Indeed, our business model only works if we give users adequate financial incentive to develop successful algorithms and let us license them for the fund. If we steal people's intellectual property rather than paying them fairly for it, then we will fail; it's just that simple.
until now no one here was able to say WHY does the code need to be in your server
As you have said, you haven't used Quantopian yet and you are new here. So please, allow me to point out, for your benefit and the benefit of other new users who might be reading this thread, that the question you are asking -- why does your code need to reside on our server -- has in fact been addressed many times, explicitly and implicitly, in this forum, in our documentation, and on our blog. It might be beneficial to you to read what has been said before, before falsely asserting that the questions you are asking have not been asked or answered.
Then this is just an evasive answer that makes me lose trust in what you're doing here.
If you take some time to read our forum, blog, and about page, you will observe the following:
We are as open and transparent about our business as any company in existence, and more so than most. Take a look, for example, at the post-mortems we've published on our blog about the (minor) security breaches we've experienced in the past.
Nearly every Quantopian employee is active in the forum. Our CEO posts here regularly. We are also active on Reddit, HN, etc., where we respond as openly and transparently as possible to questions about our platform, always, of course, disclosing our affiliation when doing so.
Every single Quantopian employee is identified on our about page, with links to their social media, LinkedIn, etc. You, or any other user who has concerns about whether we can be trusted, is free to dig as deeply as you want into our backgrounds and evaluate whether you believe you can trust us. A simple Google search, for example, will take you to my blog, a quick perusal of which will lead you to the conclusion that in addition to being snarky, righteously indignant, and judgmental -- hardly uncommon on the internet! -- I suffer from what my wife sometimes calls being "ethical to a fault"; it will be clear to anyone who spends any time reading my blog that I wouldn't be caught within a thousand miles of Quantopian if I there were even a whiff of unethical conduct here. We are staking our personal reputations not only on the success of Quantopian, but on the ethical success of Quantopian.
You won't find anyone else, in any industry, being more open and transparent than we have been. To accuse us of being "evasive" in any way is simply false.
I encourage you to take the time to fully understand what Quantopian is, what value we provide to our users, and why our financial interests are aligned with respecting and honoring your intellectual property rights. Having done so, if you still prefer not to utilize our platform, then we fully respect that decision, and of course you are free to use Zipline to create your own algorithm execution platform to use instead of ours.