400 Client Error: BAD REQUEST


Hi All,

I’m following the Usage Guide on the website, and trying to download Reuter’s financials data with the following command:

jupyter:/codeload $ quantrocket fundamental collect-financials --universes ‘nyse’
status: the fundamental data will be collected asynchronously

but I get the following error in the flightlog:

2019-07-08 09:55:07 quantrocket.fundamental: ERROR Collecting Reuters financials failed due to error: (‘400 Client Error: BAD REQUEST for url: http://houston/master/securities.csv?universes=nyse&exclude_delisted=True’, {‘status’: ‘error’, ‘msg’: ‘No securities match the query parameters’})

I’m running Quantrocket 1.7.0 on DigitalOcean…

Anybody encountered the same issue?

Thanks in advance!


The message indicates that you don’t have a universe called ‘nyse’. Run quantrocket master list-universes to see what universes you’ve created.


Thanks for the help!

In this case I think a different HTTP error code would be more appropriate. The specification states:

The HyperText Transfer Protocol (HTTP) 400 Bad Request response status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).

BAD REQUEST generally means a programmatic error happened, not that the response set is empty due to the incoming parameters in the request.
I also suggest to change the logging level to WARNING in order to notify the user that he/she won’t get any results, and should check the parameters given for the request.

Thanks again!