hello, kind of new to this so please apologize if this is very simple but I bang my head on this....
this returns a dataframe quite well :
df = get_fundamentals(query(fundamentals.valuation.market_cap,fundamentals.valuation_ratios.ev_to_ebitda,fundamentals.income_statement.ebit)
.filter(fundamentals.valuation.market_cap > 3e11)
.order_by(fundamentals.valuation.market_cap.desc())
, today
)
df
but if I change > to <
.filter(fundamentals.valuation.market_cap < 3e11)
I got an error
---------------------------------------------------------------------------
HTTPError Traceback (most recent call last)
<ipython-input-50-ae30368ea84e> in <module>()
2 .filter(fundamentals.valuation.market_cap < 3e11)
3 .order_by(fundamentals.valuation.market_cap.desc())
----> 4 , today
5 )
6 df
/home/qexec/src/qexec_repo/qexec/research/api.py in get_fundamentals(query, base_date, range_specifier, filter_ordered_nulls)
263 base_date,
264 range_specifier,
--> 265 filter_ordered_nulls,
266 )
267
/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)
285 filter_ordered_nulls,
286 )
--> 287 return client.get_fundamentals(query_dict)
288
289
/home/qexec/src/qexec_repo/qexec/research/web/client.py in get_fundamentals(self, query_dict)
288 query_dict['params'],
289 query_dict['columns'],
--> 290 query_dict['return_panel'],
291 )
292
/home/qexec/src/qexec_repo/qexec/research/web/client.py in _make_get_fundamentals_request(self, query, params, columns, return_panel)
274 )
275
--> 276 resp.raise_for_status()
277
278 return resp
/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