Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Bug in Tutorial - Using Fundamental Data Notebook

I am wondering whether anyone has similar issue as I saw. Or it just system server error from another reason.

I found there is a potential ipython notebook bug in Tutorial - Using Fundamental Data.ipython from the folder of "Tutorials and Documentation". After I run this notebook, the following error message shows up from this particular cell.

# Get a list of sids for the date upon which you want to enforce your filtering and limiting criteria

criteria_df = get_fundamentals(query(fundamentals.company_reference.sid  
        )  
        .filter(fundamentals.valuation.market_cap> 100000000)  
        .order_by(fundamentals.valuation.market_cap.desc())  
        .limit(10)  
        , '2015-05-01')  
series_of_securities = criteria_df.loc['sid']  

Error message as below:

HTTPError Traceback (most recent call last)
in ()
6 .order_by(fundamentals.valuation.market_cap.desc())
7 .limit(10)
----> 8 , '2015-05-01')
9 series_of_securities = criteria_df.loc['sid']

/home/qexec/src/qexec_repo/qexec/research/api.py in get_fundamentals(query, base_date, range_specifier, filter_ordered_nulls) 104 base_date,
105 range_specifier,
--> 106 filter_ordered_nulls,
107 )
108

/home/qexec/src/qexec_repo/qexec/research/api.py in get_fundamentals_with_namespace(ns, available_date_tbl, query, base_date, range_specifier, filter_ordered_nulls) 126 filter_ordered_nulls,
127 )
--> 128 return client.get_fundamentals(query_dict)
129
130

/home/qexec/src/qexec_repo/qexec/research/web/client.pyc in get_fundamentals(self, query_dict) 281 query_dict['params'],
282 query_dict['columns'],
--> 283 query_dict['return_panel'],
284 )
285

/home/qexec/src/qexec_repo/qexec/research/web/helpers.pyc in method(args, **kwargs) 127 def _method(*args, **kwargs):
128 response = f(
args, **kwargs)
--> 129 response.raise
for_status()
130
131 # If we make it to here, that means we have a 200. It still might

/usr/local/lib/python2.7/dist-packages/requests/models.pyc in raise_for_status(self) 849
850 if http_error_msg:
--> 851 raise HTTPError(http_error_msg, response=self)
852
853 def close(self):

HTTPError: 500 Server Error: INTERNAL SERVER ERROR

2 responses

Adam, I was able to replicate it. We'll dig in and figure out what's happening.

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.

I get the same Bug when running the Tutorial - Using Fundamental Data.
Any fix available?
Thanks