Closed chuckmelanson closed 4 years ago
Well, this is a tricky one. I modified the code to now include this endpoint, since originally it wasn't released. However, I'm getting inconsistent behavior with it. Right now, the query works perfectly on the Web interface, however, through the API it always returns an empty list.
It might be something related to it being the weekend. I know endpoints will work inconsistently during the weekend compared to regular market hours. I need to do a little bit more research on this to see if I can get it to work.
Also, just an FYI the 'size':25
needs to be a string 'size':'25'
.
Hi Alex, great library!
Been having HTTP 500 errors trying to call run_scanner - would you be able to add a test call into test_client.py?
All other test_client.py calls and get_scanner() seem to work for me.
I saw you had sample output available - hoping this isn't too much trouble! Chuck
DEBUG function: _make_request endpoint: /iserver/scanner/run req_type: POST params: {'instrument': 'STK', 'type': 'TOP_PERC_GAIN', 'filter': [{'code': 'usdPriceAbove', 'value': 1}], 'location': 'STK.US.MAJOR', 'size': 25}