polygon-io / issues

Quickly track and report problems with polygon.io
29 stars 0 forks source link

Different search result between v2/reference/tickers and v3/reference/tickers when search term contains spaces #149

Closed syedhusain-appspace closed 1 year ago

syedhusain-appspace commented 3 years ago

URL https://api.polygon.io/v3/reference/tickers?apiKey={{Polygon Dev APIKEY}}&search=Lithium Americas Corp. Common Shares

Result Seems like all tickers

Expected Result Only tickers related to the search term

Screenshots image

Desktop (please complete the following information):

Additional context When searching "Lithium" only, it manage to return related tickers only. Only happen if the search term contains spaces. Other example "Southwestern Energy Company". V2 API returns all tickers that contains the search term: https://api.polygon.io/v2/reference/tickers?search=Lithium Americas Corp. Common Shares&apiKey={{Polygon Dev APIKEY}}.

Encoding the space with %20 doesn't help

jrbell19 commented 3 years ago

This is something that we are looking into. Sorry for the confusion.

syedhusain-appspace commented 3 years ago

Thanks for looking this up. Let me know if you need more information.