Seeking Alpha

फ्रीमियम
Verified
द्वारा Api Dojo | अपडेट किया गया a month ago | Finance
लोकप्रियता

9.9 / 10

लेटेंसी

1,809ms

सेवा का स्तर

100%

Health Check

N/A

सभी चर्चाओं पर वापस जाएं

[:marketcap] is not a valid field for Screeners

The detail of some screeners now includes the marketcap filter, eg:
Top Yield Monsters {“quant_rating”: {“gte”: 3.5, “lte”: 5.0}, “marketcap”: {“gte”: 100000000.0}, “dividend_yield”: {“gte”: 5.0}}
The get-results api returns:
{“errors”:[{“code”:“104”,“detail”:"[:marketcap] is not a valid field for Screeners::Search.",“status”:“400”,“title”:“Invalid field”}]}

Rapid account: Philipmassey HIS 35 Gc RW 3 Y
philipmassey-HIS35GcRW3Y Commented 2 years ago

The workaround is no longer required for ‘marketcap_display’, I’m quessing a fix was made to the api.
Some mismatch is now in place where the api:
"https://seeking-alpha.p.rapidapi.com/screeners/list"
returns fields:
Top Rated Stocks,{“quant_rating”: {“gte”: 3.5, “lte”: 5.0}, “authors_rating_pro”: {“gte”: 3.5, “lte”: 5.0}, “sell_side_rating”: {“gte”: …
The do not match the fields in:
"https://seeking-alpha.p.rapidapi.com/screeners/get-results"
Can I see what has change?

Rapid account: Philipmassey HIS 35 Gc RW 3 Y
philipmassey-HIS35GcRW3Y Commented 2 years ago

Thank you!
I’m using filters from the the screener list call :
url = "https://seeking-alpha.p.rapidapi.com/screeners/list"
and the screener in resonse text is:
{“id”:“9679329d”,“type”:“screener”,“attributes”:{“name”:“Top Yield Monsters”,“description”:“Stocks yielding above 6% with a Quant Rating of Strong Buy or Buy”,“filters”:{“quant_rating”:{“gte”:3.5,“lte”:5.0},“marketcap”:{“gte”:100000000.0},“dividend_yield”:{“gte”:5.0}},“category”:“public”,“userId”:null},“meta”:{“results_count”:39}},

A work around is to jreplace ‘marketcap’ with ‘marketcap_display’

Rapid account: Apidojo
apidojo Commented 2 years ago

Hello,

You first need to use …/screener-filters/list to get supported filters and the correct id. The id is “marketcap_display”.
You may try again with :

“marketcap_display”: {
“lte”: 1000000000
}
Regards.

चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:

नई टिप्पणियाँ पोस्ट करने के लिए लॉग इन / साइनअप करें