SDKs 0.23.0 page through results and follow the 0.23 API
The TypeScript, Python, and Go SDKs 0.23.0 return pages you can iterate, add the lookup method and the list filters, type the new schedule fields, and say provider where they said platform.
The TypeScript (@predictorsdk/client), Python (predictorsdk), and Go (github.com/PredictorSDK/sdk-go) SDKs are released at 0.23.0 for the 0.23 API release shipped the same day. Upgrade now if you use Python: 0.22.0 and earlier fail to parse three responses whose required fields moved, events (platform is now provider), crypto prices (prices is now data) and wallet positions (pagination.total can be null).
- Paginated calls return a page you can iterate.
getSportsMatchingMarkets,getMarkets,getBinanceCryptoPricesandlistPolymarketWalletPositions(snake_case in Python) now return a page instead of the response body. Iterating it visits every item on every page, sending each next cursor and repeating your filters:for await (const item of page)in TypeScript,for item in pagerin Python, andpage.Iterator()in Go. The current page's items arepage.datain TypeScript,pager.itemsin Python andpage.Resultsin Go, and the whole response, withsnapshotandpagination, isresponse(Responsein Go). See Pagination. - Lookups have their own method.
lookupSportsMatchingMarkets(lookup_sports_matching_markets,LookupSportsMatchingMarkets) takeseventIdandsourceIdand returnsdata,lookupsandsnapshot.getSportsMatchingMarketsno longer takes identifiers; it takes the newleague,scheduledDateandparticipantfilters. - Matched events carry their schedule.
scheduledDateis a date (astringin TypeScript,datetime.datein Python,time.Timein Go) andscheduledStartis a timestamp or null (Date | null,Optional[datetime],*time.Time). providerreplacesplatformongetMarketandgetEventand on the event response. In Go the request types areGetMarketRequestProviderandGetEventRequestProvider; a matching row'sProviderconverts to either with a plain type conversion.- Crypto prices and
total.getBinanceCryptoPricestakescursorand returnsdataandpagination, andpagination.totalis nullable (number | null,Optional[int],*int) on every paginated response. - Two generator bugs are fixed before they shipped. A Go paginated method called with a
nilrequest no longer panics, and the TypeScript pager no longer writes its cursor into the request object you passed, so reusing that object starts from the first page.
We checked every published package against the production API before announcing it: each one paged through matched events, filtered by league, found an event through the lookup method, read market detail and the event with provider, and paged through a minute of crypto prices.