Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Unable to Submit Algorithm to Contest

I've been trying to submit an algorithm to the contest for the last 6 hours.

Every time I tried to submit I got the following message:

Submission Error
There was an unexpected error submitting this algorithm. Please try again later.

I'll try again tomorrow morning, but I just wondered if there might be something causing this.

I've run a few backtests and got promising results, keeping leverage well under 3.0, so could there be any other reason for this?

10 responses

Hi James,

I'm sorry to hear that you're having trouble submitting to the contest. Did you happen to receive and automatic email offering a reason why the submission might not have been accepted?

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.

I don't get any emails, I've already submitted 3 entries to the contest without seeing the message. The latest algorithm is a tweak of my last submission which was accepted successfully.

Here's a link to a screenshot of the error message: Error Message

Hi James,

It looks like you already have 3 active entries in the contest, which is the maximum allowed per person. If you'd like to submit a new entry, you can stop an existing algo (by pressing Stop Algorithm in the live algo dashboard). Then you'll have an open slot available.

We'll work on passing along a better error message!

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.

Hi Alisa, I have the same problem: "There was an unexpected error submitting this algorithm. Please try again later." But I have no active strategy in the contest.

In my case it were commented 'set_slippage' and 'set_commission'. The rules prohibit changing those values from default and it seems that there is autocheck for that. But since they were commented, I didn't consider that as a problem for a while.

I guess there can be various causes for the error. Still I think it would be useful to report specific cases, so others can learn from them.

Hi folks, this error was getting triggered if the contest rules were violated. Like Oleg described, if the algo contained set_slippage, set_commissions, fetch_csv, was over-leveraged, etc. The wording in the error message was a bug, and I'm sorry about that. Good news is it's now fixed.

hi guys - i am getting this error while submitting my first algo (that passed all criteria in the backtest over the past 2 years). i used the template from lecture 38 (https://www.quantopian.com/lectures/example-long-short-equity-algorithm) as the backbone of my algo.

anyone still getting this error message too? or anyone from quantopian could suggest a work-around pls? thanks!

Not sure exactly the issue. Ensure that it is running on Python 3.5 (choose that from the dropdown in the IDE when setting up the backtest). All new contest entries must be running Python 3.5 and not 2.7.

Perhaps submit a support request if you still are having issues.

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, Dan.

I managed to identify the problem: I used the StaticAssets(symbols()) to define my universe as I was afraid my algo's Big-O might cause a runtime error. When I set the universe to QTU it worked.

If I may pass some feedback:
- the error message was not very revealing when trying to submit the algo. it just said 'unexpected error....try later'.
- even though my list of symbols in the StaticAssets function were part of the QTU it did not work. reading the Liquid Universe Requirment (https://www.quantopian.com/tutorials/contest#lesson3) it was not very clear to me that we have to use QTU and not just stocks that are part of QTU.

@Rainer Jaeger. Glad you got it working. One clarification... One can trade a subset of the QTradableStocksUS universe (QTU) and qualify for the contest. Technically, all that is required to qualify for the contest, is to import the QTU.

from quantopian.pipeline.filters import QTradableStocksUS

The algo can then trade a subset of that universe. Be careful however using a list of StaticAssets to narrow the universe. First, the QTU is not static and those static assets may drop out for some reason. Second, and more important, defining specific stocks for a strategy introduces bias. Why pick those stocks over some other stocks? It is MUCH better to code the logic for picking those stocks (eg top 20 market cap) rather than code the actual stocks.

Good luck!