Skip to content

fix: default sort/order to None so search results sort by relevance (closes #899)#1021

Open
botbikamordehai2-sketch wants to merge 1 commit into
massive-com:masterfrom
botbikamordehai2-sketch:fix/issue-899-1779954814
Open

fix: default sort/order to None so search results sort by relevance (closes #899)#1021
botbikamordehai2-sketch wants to merge 1 commit into
massive-com:masterfrom
botbikamordehai2-sketch:fix/issue-899-1779954814

Conversation

@botbikamordehai2-sketch
Copy link
Copy Markdown

What

list_tickers() had hardcoded default values of sort='ticker' and order='asc'. When a user passes a search argument, these defaults were still sent to the API, overriding the API's relevance-based sorting behavior described in the documentation.

Fix

Change the default values of sort and order from 'ticker'/'asc' to None. This allows the API to apply its own default sorting (relevance when search is provided, ticker otherwise) rather than always forcing alphabetical ticker sorting.

Closes #899

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

list_tickers() sorting behavior doesn't match documentation

1 participant