Skip to Content
PredictorSDK

SDKs 0.20.0 type event_id as always present

The TypeScript, Python, and Go SDKs 0.20.0 make source_markets[].event_id a required string and document the hardened matching lookups.

SDKBreaking

The TypeScript (@predictorsdk/client), Python (predictorsdk), and Go (github.com/PredictorSDK/sdk-go) SDKs are released at 0.20.0, following the matching lookup changes shipped the same day.

  • event_id on every source market is a required string. It was always present in responses; the types now say so, so you can pass it to getEvent without a guard. TypeScript's eventId changes from string | undefined to string, Python's event_id from str | None to str, and Go's EventID from *string to string: drop the dereference (*m.EventID becomes m.EventID). That is the one source-breaking change, and only in Go.
  • The docstrings match the API. source_id and event_id describe outcome-token lookups (Polymarket, Predict, AlphaArcade), case-insensitive matching, and the 400s for an empty value, a comma-joined list, or a venue ID sent as event_id. include_submarkets says the default covers events whose full-game moneyline is matched. market_slug now says market detail takes market_id: it accepts a Polymarket slug but not an AlphaArcade one.

0.19.0 keeps working against the API; upgrade for the corrected types and docs.