SDKs 0.19.0 adopt the one-shape matching response
The TypeScript, Python, and Go SDKs 0.19.0 type GET /v1/matching-markets/sports as one canonical_events shape with a source_id lookup.
SDKBreaking
The TypeScript (@predictorsdk/client), Python (predictorsdk), and Go (github.com/PredictorSDK/sdk-go) SDKs are released at 0.19.0. They type the new GET /v1/matching-markets/sports response, which uses one shape for every venue.
- The response is
canonical_events(canonicalEventsin TypeScript,CanonicalEventsin Go). Themarketsfield and thePlatformMarkettype are gone. By default each event carries its full-game moneyline; setinclude_submarketsfor every matched submarket. - Every source market has the same fields:
provider,event_id(the venue's parent, forGET /v1/events/{event_id}),market_id(forGET /v1/markets/{market_id}),market_name,market_slug, andoutcomes, each mapping a nativeoutcome_idto acanonical_outcome_key. - Lookups take
source_id(sourceId,SourceID) as{provider}:{id}, alongsideevent_id. The eight per-venue request fields, such askalshi_event_tickerandpred_market_id, are removed.
The API already serves this shape, and older SDKs cannot read it: 0.18.0's Python client raises a parsing error because it requires markets, and its TypeScript and Go clients find no markets. Upgrade to 0.19.0. Matching markets describes the shape, and Filtering the lookup rules.