Search, sort and paging on GET /stocks
GET /stocks can now search, sort and page the catalog through four optional query parameters. Without them the response is unchanged: the whole catalog, in ticker order.
What changed
q: a case-insensitive substring of the ticker, the company name or any venue'stoken_ticker(apple,TSLA,AAPLx), 1 to 100 characters.sort:market_cap,volume_1d,change_24h,price,peorticker. A stock missing the metric sorts last in both directions, and ties break by ticker.order:ascordesc. It defaults toascfortickeranddescfor every metric; sent withoutsort, it orders by ticker.page: 1-based pages of 25 rows. Onlypagechanges the response: it addspage,next_page(nullon the last page) andtotal(the rows matchingqacross all pages). Without it, every matching row comes back.
Search, sort and paging run over the same cached snapshot as the plain read.
What to do
Nothing, unless you want the new parameters. Any other query parameter on /stocks is still 400 invalid_request.