# PredictorSDK > One API for prediction markets. It lists the markets of ten venues (Kalshi, Polymarket, Predict, SX Bet, Hyperliquid, AlphaArcade, ProphetX, Limitless, Pred and Polymarket US) in one catalog, returns one market with its quotes and the venue's trading fees, and matches the same NBA, WNBA, NHL, MLB and NFL games across venues. - Base URL: https://api.predictorsdk.com - Authentication: `Authorization: Bearer ` on every request except `GET /v1/plans`. - Usual path: list matched games with `GET /v1/matching-markets/sports`, find one by a venue's identifier with `source_id={provider}:{id}`, then read each venue market's quotes with `GET /v1/markets/{market_id}`. - Every page as one text file: https://docs.predictorsdk.com/llms-full.txt - Any page as Markdown: add `.md` to its URL (https://docs.predictorsdk.com/quickstart.md), or request it with `Accept: text/markdown` - OpenAPI document: https://docs.predictorsdk.com/openapi.yaml - Changelog: https://docs.predictorsdk.com/changelog.md # Overview (https://docs.predictorsdk.com/) One API for prediction markets. Browse every venue's markets, read live prices and fees, and find the same game on every venue. PredictorSDK reads ten prediction market venues (Kalshi, Polymarket, Predict, SX Bet, Hyperliquid, AlphaArcade, ProphetX, Limitless, Pred and Polymarket US) and answers in one shape, so your code handles one format instead of ten. ## What you can do [#what-you-can-do] - [Find the same game on every venue](https://docs.predictorsdk.com/concepts/matching-markets): NBA, WNBA, NHL, MLB and NFL games, matched across venues down to each side of each market. - [Browse every market](https://docs.predictorsdk.com/api-reference/getMarkets): One catalog of every venue's open markets, sports or not, filtered by venue or category. - [Read live prices and fees](https://docs.predictorsdk.com/api-reference/getMarket): Any market's quotes, read from the venue when you ask, with its trading fees where the venue publishes them. - [Use an SDK](https://docs.predictorsdk.com/sdk/installation): TypeScript, Python and Go clients, generated from the same OpenAPI spec as these docs. ## How the pieces fit [#how-the-pieces-fit] Most integrations make three calls: 1. **List matched games** with [`GET /v1/matching-markets/sports`](https://docs.predictorsdk.com/api-reference/getSportsMatchingMarkets). Each game lists every venue market matched to it. 2. **Find a game again** by any venue's ID with [`GET /v1/matching-markets/sports/lookup`](https://docs.predictorsdk.com/api-reference/lookupSportsMatchingMarkets), for example `?source_id=kalshi:KXNBAGAME-26OCT20OKCSAS`. 3. **Price it** by sending each venue market's `market_id` to [`GET /v1/markets/{market_id}`](https://docs.predictorsdk.com/api-reference/getMarket). Matching tells you which markets are the same bet; it doesn't return prices. Market detail reads prices from the venue when you ask, not from a stored copy. [Quickstart](https://docs.predictorsdk.com/quickstart) walks through all three calls. ## Coverage [#coverage] Matched games come from five leagues. A game shows up once at least two venues list it, and it carries every venue that does. | League | Venues matched | |---|---| | NBA | Kalshi, Polymarket, Predict, SX Bet, ProphetX, Pred, AlphaArcade, Polymarket US | | WNBA | Kalshi, Polymarket, SX Bet, ProphetX, AlphaArcade, Polymarket US | | NHL | Kalshi, Polymarket, Predict, SX Bet, ProphetX, AlphaArcade, Polymarket US | | MLB | Kalshi, Polymarket, Predict, SX Bet, ProphetX, AlphaArcade, Polymarket US | | NFL | Kalshi, Polymarket, Predict, SX Bet, ProphetX, Pred, Limitless, Hyperliquid, AlphaArcade, Polymarket US | Every league matches full-game moneylines, spreads and totals. The NBA, WNBA and NFL also match half and quarter spreads and totals, the NFL matches team totals, and player props match when the player and the line are verified on each venue. Not every venue lists every kind of market: [Sources](https://docs.predictorsdk.com/concepts/sources) shows what each one contributes. The market catalog and market detail go further than sports: they cover the open markets of all ten venues, from elections to crypto prices. ## Next steps [#next-steps] - [Quickstart](https://docs.predictorsdk.com/quickstart): make your first call in a few minutes - [Authentication](https://docs.predictorsdk.com/authentication): get an API key - [Use with AI](https://docs.predictorsdk.com/ai-tools): hand these docs to ChatGPT, Claude or Cursor - [API reference](https://docs.predictorsdk.com/api-reference): every endpoint, with a playground - [OpenAPI spec](https://docs.predictorsdk.com/openapi.yaml): the source the SDKs are generated from # Quickstart (https://docs.predictorsdk.com/quickstart) Get an API key, list matched games, find one again by a venue's ID, and read its live prices. This guide goes from a new API key to live prices for one game on several venues. Each call is shown with curl and with the TypeScript, Python and Go SDKs (see [Installation](https://docs.predictorsdk.com/sdk/installation) to set one up). ### 1. Get an API key [#1-get-an-api-key] Sign up at [app.predictorsdk.com](https://app.predictorsdk.com), open **API Keys** and create one. Copy it straight away: it is shown only once. The free plan covers everything in this guide. [Authentication](https://docs.predictorsdk.com/authentication) has the details. ### 2. List matched games [#2-list-matched-games] This first call needs no IDs. It returns a page of games that two or more venues list, soonest first. The TypeScript examples use top-level `await`, so run them as an ES module: from a `.mjs` or `.mts` file, or in a project whose `package.json` has `"type": "module"`. **cURL** ```bash curl -s \ -H "Authorization: Bearer YOUR_API_KEY" \ "https://api.predictorsdk.com/v1/matching-markets/sports?limit=2" ``` **TypeScript** ```ts import { PredictorSDKClient } from "@predictorsdk/client"; const client = new PredictorSDKClient({ token: "YOUR_API_KEY", }); // A paginated call answers a page; page.data holds its events. const page = await client.getSportsMatchingMarkets({ limit: 2 }); for (const event of page.data) { console.log(event.eventId, event.title); } ``` **Python** ```python from predictorsdk import PredictorSDK client = PredictorSDK(token="YOUR_API_KEY") # A paginated call returns a pager; pager.items holds this page's events. pager = client.get_sports_matching_markets(limit=2) for event in pager.items: print(event.event_id, event.title) ``` **Go** ```go import ( "context" "fmt" predictorsdk "github.com/PredictorSDK/sdk-go" predictorclient "github.com/PredictorSDK/sdk-go/client" "github.com/PredictorSDK/sdk-go/option" ) client := predictorclient.New(option.WithToken("YOUR_API_KEY")) // A paginated call returns a page; page.Results holds its events. page, err := client.GetSportsMatchingMarkets(context.TODO(), &predictorsdk.GetSportsMatchingMarketsRequest{ Limit: predictorsdk.Int(2), }) if err != nil { panic(err) } for _, event := range page.Results { fmt.Println(event.EventID, event.Title) } ``` Each game in `data` has a canonical `event_id` (league, away team, home team, date), its teams, and the day it is scheduled. By default a game carries one submarket, its full-game winner, with every venue market matched to it (abridged here; the [API reference](https://docs.predictorsdk.com/api-reference/getSportsMatchingMarkets) shows every field): ```json { "data": [ { "event_id": "nba-okc-sas-2026-10-20", "sport": "basketball", "league": "nba", "title": "Oklahoma City Thunder vs. San Antonio Spurs", "scheduled_start": "2026-10-20T23:30:00.000Z", "scheduled_date": "2026-10-20", "participants": [ { "key": "okc", "name": "Oklahoma City Thunder", "role": "away" }, { "key": "sas", "name": "San Antonio Spurs", "role": "home" } ], "submarkets": [ { "key": "moneyline|full|winner", "market_type": "moneyline", "segment": "full", "display_name": "Winner", "outcomes": [ { "key": "winner:okc", "label": "Oklahoma City Thunder win", "side": "win" }, { "key": "winner:sas", "label": "San Antonio Spurs win", "side": "win" } ], "source_markets": [ { "provider": "kalshi", "event_id": "KXNBAGAME-26OCT20OKCSAS", "market_id": "KXNBAGAME-26OCT20OKCSAS-OKC", "market_name": "Oklahoma City wins", "outcomes": [ { "canonical_outcome_key": "winner:okc", "label": "Yes", "outcome_id": "yes", "side": "yes" }, { "canonical_outcome_key": "winner:sas", "label": "No", "outcome_id": "no", "side": "no" } ] }, { "provider": "kalshi", "event_id": "KXNBAGAME-26OCT20OKCSAS", "market_id": "KXNBAGAME-26OCT20OKCSAS-SAS", "market_name": "San Antonio wins", "outcomes": [ { "canonical_outcome_key": "winner:sas", "label": "Yes", "outcome_id": "yes", "side": "yes" }, { "canonical_outcome_key": "winner:okc", "label": "No", "outcome_id": "no", "side": "no" } ] }, { "provider": "sxbet", "event_id": "L19766755", "market_id": "0xb4d047a709aae881e5ccad9d123592967644ee1df1f17078c762b388e41b81c5", "market_name": "San Antonio Spurs vs Oklahoma City Thunder", "outcomes": [ { "canonical_outcome_key": "winner:sas", "label": "San Antonio Spurs", "outcome_id": "outcomeOne" }, { "canonical_outcome_key": "winner:okc", "label": "Oklahoma City Thunder", "outcome_id": "outcomeTwo" } ] } ] } ] } ], "pagination": { "limit": 2, "total": 140, "has_more": true, "next_cursor": "eyJ..." }, "snapshot": { "observed_at": "2026-10-03T23:11:41.515Z" } } ``` Each venue market, whichever venue it comes from, has the same fields: - `provider` names the venue: `kalshi`, `sxbet`, `polymarket` and so on. - `market_id` is the market itself. You will use it in step 4. - `event_id` is the venue's own parent event, for [`GET /v1/events/{event_id}`](https://docs.predictorsdk.com/api-reference/getEvent). It is not the canonical `event_id` of the game. - `outcomes` maps each side of the market (`outcome_id`) to a side of the game (`canonical_outcome_key`, such as `winner:okc`). Kalshi lists a game winner as one yes/no market per team, so it appears twice, once per team. A game stays in the list through the day after its scheduled date (in US Eastern time), so the first games can be ones already played. See [Include settled events](https://docs.predictorsdk.com/guides/filtering#include-settled-events). **The IDs in these docs expire.** Venues delist a game's markets after it is played, so the example IDs here will stop working. Use live ones from your own response to the call above. ### 3. Find a game again [#3-find-a-game-again] You don't need to page through the list to get back to a game. Send any ID you already have to [`GET /v1/matching-markets/sports/lookup`](https://docs.predictorsdk.com/api-reference/lookupSportsMatchingMarkets): a canonical key as `event_id`, or a venue's ID as `source_id={provider}:{id}`. This looks up a Kalshi event and a Kalshi market no other venue lists: **cURL** ```bash curl -s \ -H "Authorization: Bearer YOUR_API_KEY" \ "https://api.predictorsdk.com/v1/matching-markets/sports/lookup?source_id=kalshi:KXNBAGAME-26OCT20OKCSAS&source_id=kalshi:KXNBA-27-SAS" ``` **TypeScript** ```ts const response = await client.lookupSportsMatchingMarkets({ sourceId: ["kalshi:KXNBAGAME-26OCT20OKCSAS", "kalshi:KXNBA-27-SAS"], }); for (const [id, found] of Object.entries(response.lookups)) { console.log(id, found.eventIds); } ``` **Python** ```python response = client.lookup_sports_matching_markets( source_id=["kalshi:KXNBAGAME-26OCT20OKCSAS", "kalshi:KXNBA-27-SAS"] ) for identifier, found in response.lookups.items(): print(identifier, found.event_ids) ``` **Go** ```go response, err := client.LookupSportsMatchingMarkets(context.TODO(), &predictorsdk.LookupSportsMatchingMarketsRequest{ SourceID: []*string{ predictorsdk.String("kalshi:KXNBAGAME-26OCT20OKCSAS"), predictorsdk.String("kalshi:KXNBA-27-SAS"), }, }) if err != nil { panic(err) } for identifier, found := range response.Lookups { fmt.Println(identifier, found.EventIDs) } ``` The response lists each game it found in `data`, with every submarket. `lookups` tells you what each ID you sent found, so an ID that found nothing shows up with an empty list: ```json { "data": [ { "event_id": "nba-okc-sas-2026-10-20", "title": "Oklahoma City Thunder vs. San Antonio Spurs", "submarkets": [ … ] } ], "lookups": { "kalshi:KXNBAGAME-26OCT20OKCSAS": { "event_ids": ["nba-okc-sas-2026-10-20"] }, "kalshi:KXNBA-27-SAS": { "event_ids": [] } }, "snapshot": { "observed_at": "2026-10-03T23:11:41.515Z" } } ``` `KXNBA-27-SAS` is a real Kalshi market, a season-long bet on the 2027 title, but no other venue lists it, so it matches no game. One request can carry up to 100 IDs from any mix of venues. ### 4. Read live prices [#4-read-live-prices] Matching tells you which markets are the same; it carries no prices. To price a market, send its `market_id` and `provider` to [`GET /v1/markets/{market_id}`](https://docs.predictorsdk.com/api-reference/getMarket), here as one ID, `kalshi:KXNBAGAME-26OCT20OKCSAS-OKC`: **cURL** ```bash curl -s \ -H "Authorization: Bearer YOUR_API_KEY" \ "https://api.predictorsdk.com/v1/markets/kalshi:KXNBAGAME-26OCT20OKCSAS-OKC" ``` **TypeScript** ```ts const market = await client.getMarket({ marketId: "KXNBAGAME-26OCT20OKCSAS-OKC", provider: "kalshi", }); for (const outcome of market.outcomes) { console.log(outcome.name, outcome.bid, outcome.ask); } ``` **Python** ```python market = client.get_market("KXNBAGAME-26OCT20OKCSAS-OKC", provider="kalshi") for outcome in market.outcomes: print(outcome.name, outcome.bid, outcome.ask) ``` **Go** ```go market, err := client.GetMarket(context.TODO(), &predictorsdk.GetMarketRequest{ MarketID: "KXNBAGAME-26OCT20OKCSAS-OKC", Provider: predictorsdk.GetMarketRequestProviderKalshi.Ptr(), }) if err != nil { panic(err) } for _, outcome := range market.Outcomes { // Bid and Ask are pointers, nil when that side has no quote. if outcome.Bid != nil && outcome.Ask != nil { fmt.Println(outcome.Name, *outcome.Bid, *outcome.Ask) } } ``` The answer comes straight from the venue, read when you asked (`observed_at`). Each outcome carries its `price` and the best `bid` and `ask`, as a probability from 0 to 1, and `trading_fees` describes the venue's fee for trading it, where the venue publishes one (abridged here): ```json { "id": "kalshi:KXNBAGAME-26OCT20OKCSAS-OKC", "provider": "kalshi", "title": "Oklahoma City wins", "status": "open", "outcomes": [ { "name": "Yes", "outcome_id": "yes", "price": 0.45, "bid": 0.44, "ask": 0.46, "last": 0.46 }, { "name": "No", "outcome_id": "no", "price": 0.55, "bid": 0.54, "ask": 0.56, "last": 0.54 } ], "pricing": { "availability": "live", "scale": "probability_0_1", "observed_at": "2026-10-17T23:45:21.908Z" }, "trading_fees": { "availability": "published", "taker": { "model": "quadratic", "rate": 0.07 } } } ``` Market detail returns the same `outcome_id`s as the matched market in step 2, so you can line the sides up across venues by ID. `pricing.availability` says whether the quotes are tradeable: read it before you act on a price. See [Trading fees](https://docs.predictorsdk.com/guides/trading-fees) for turning a price and a fee into the cost of a trade. ## Where to go next [#where-to-go-next] - **More submarkets.** Add `include_submarkets=true` to the list to get every matched spread, total, half, quarter and player prop, not only the winner. - **Narrow the list.** Filter by `league`, `scheduled_date` or `participant`, for example `?league=nfl&scheduled_date=2026-10-25`. See [Filtering](https://docs.predictorsdk.com/guides/filtering). - **Walk every page.** The SDKs iterate pages for you; with curl, follow `pagination.next_cursor`. See [Pagination](https://docs.predictorsdk.com/guides/pagination). - **Handle errors.** Every error has a stable `code`. See [Error handling](https://docs.predictorsdk.com/guides/error-handling). - **Know your limits.** See [Plans & limits](https://docs.predictorsdk.com/guides/plans). # Authentication (https://docs.predictorsdk.com/authentication) Get an API key and send it with every request. Every request carries an API key, except `GET /v1/plans`, which is public. ## Get an API key [#get-an-api-key] 1. Sign up at [app.predictorsdk.com](https://app.predictorsdk.com). 2. Open **API Keys** and click **Create API Key**. 3. Copy the key. It is shown only once. The same page lets you revoke a key or roll it to a new value. ## Send it [#send-it] Put the key in the `Authorization` header as a Bearer token. The SDKs do this for you once you pass the key in: **cURL** ```bash curl -H "Authorization: Bearer YOUR_API_KEY" \ "https://api.predictorsdk.com/v1/matching-markets/sports" ``` **TypeScript** ```ts import { PredictorSDKClient } from "@predictorsdk/client"; const client = new PredictorSDKClient({ token: "YOUR_API_KEY" }); ``` **Python** ```python from predictorsdk import PredictorSDK client = PredictorSDK(token="YOUR_API_KEY") ``` **Go** ```go client := predictorclient.New(option.WithToken("YOUR_API_KEY")) ``` A request without a key, or with an unknown one, gets `401`. Keep keys out of browser code and public repositories: anyone holding a key can spend your plan's requests. ## Permissions [#permissions] Keys created in the dashboard can call every endpoint in these docs. Each endpoint checks one permission, and a key without it gets `403`: | Permission | Endpoints | |---|---| | `markets.matching.read` | `GET /v1/matching-markets/sports`, `GET /v1/matching-markets/sports/lookup` | | `markets.read` | `GET /v1/markets`, `GET /v1/categories`, `GET /v1/markets/{market_id}` | | `events.read` | `GET /v1/events/{event_id}` | | `crypto.prices.read` | `GET /v1/crypto-prices/binance` | | `polymarket.wallet.read` | `GET /v1/polymarket/wallet` | | `polymarket.positions.read` | `GET /v1/polymarket/wallet/positions` | ## Rate limits [#rate-limits] Your plan sets how many requests a key can make per minute (`rate_limit_per_min` on [`GET /v1/plans`](https://docs.predictorsdk.com/guides/plans)). Every authenticated response reports it: | Header | Meaning | |---|---| | `X-RateLimit-Limit` | Requests allowed in any rolling 60 seconds. Pace against this one. | | `X-RateLimit-Remaining` | A rough guide only: it can repeat or even go up while you spend it. | | `X-RateLimit-Reset` | A Unix time in seconds. | Over the limit, the API answers `429` with `Retry-After` in seconds. The budget refills gradually rather than all at once, so count your own requests over the last 60 seconds instead of trusting `X-RateLimit-Remaining`. [Error handling](https://docs.predictorsdk.com/guides/error-handling#building-a-local-limiter) shows a limiter that works, and when to retry. # Use with AI (https://docs.predictorsdk.com/ai-tools) Hand these docs to ChatGPT, Claude, Cursor or any coding agent as clean Markdown. Every page here is also published as plain Markdown, so an AI tool can read the docs without the website around them. ## One page [#one-page] Under each page's title: - **Copy Markdown** copies the page as Markdown, ready to paste into a chat. - **Open** sends the page to ChatGPT, Claude or Cursor, or shows its Markdown. The Markdown copy lives at the page's address with `.md` on the end: ```txt https://docs.predictorsdk.com/quickstart.md https://docs.predictorsdk.com/api-reference/getMarkets.md https://docs.predictorsdk.com/changelog.md ``` A tool that asks for Markdown (`Accept: text/markdown`) gets it from the normal address too. ## The whole site [#the-whole-site] | File | What it holds | |---|---| | [llms.txt](https://docs.predictorsdk.com/llms.txt) | A short guide to the API and a link to every page's Markdown copy. Start here. | | [llms-full.txt](https://docs.predictorsdk.com/llms-full.txt) | Every page and the full changelog in one file, for tools that read a whole document at once. | | [openapi.yaml](https://docs.predictorsdk.com/openapi.yaml) | The OpenAPI spec: every endpoint, parameter and response schema. The SDKs are generated from it. | ## In a coding agent [#in-a-coding-agent] Give the agent `llms.txt` along with the task. For example: ```txt Read https://docs.predictorsdk.com/llms.txt. Then write a TypeScript script that lists today's NFL games and prints each game's Kalshi and Polymarket prices for the full-game winner. ``` The agent can follow the links in `llms.txt` to the pages it needs. If it writes code against the SDKs, point it at the [SDK pages](https://docs.predictorsdk.com/sdk/installation) as well: their tables list every method and field. # Matching Markets (https://docs.predictorsdk.com/concepts/matching-markets) How PredictorSDK finds the same game and the same bet on different venues, and the IDs it gives them. The same game is listed on many venues, each in its own format. Kalshi calls Thunder at Spurs `KXNBAGAME-26OCT20OKCSAS`, SX Bet calls it fixture `L19766755`, and Polymarket gives it its own slug and IDs. PredictorSDK matches these listings into one **event**, and the bets inside it into **submarkets**, so you can put the same bet side by side across venues. ## What gets matched [#what-gets-matched] 1. **The game.** Listings are grouped by league, teams and date into one event, such as `nba-okc-sas-2026-10-20`. 2. **The bet.** Within a game, markets are grouped by kind (winner, spread, total, team total, player prop), period (full game, a half, a quarter) and line. 3. **The sides.** Each venue's sides (yes and no, team names, over and under) map to shared outcomes, such as `winner:sas`. An event or submarket appears only when at least two venues list it. Venues sometimes settle the same bet differently, for example a tied NFL game or overtime in a second half. The response says so: see [Game-line rules](https://docs.predictorsdk.com/guides/game-line-rules) and [Player-prop matching](https://docs.predictorsdk.com/guides/player-prop-matching). ## IDs that don't change [#ids-that-dont-change] Every matched game, bet and side has a canonical ID, the same on every call: | ID | Example | What it names | |---|---|---| | Event ID | `nba-okc-sas-2026-10-20` | The game: league, away team, home team and date (US Eastern) | | Submarket key | `moneyline\|full\|winner`, `spread\|full\|spread:okc\|8.5` | One bet within the game | | Outcome key | `winner:sas`, `cover:okc`, `over` | One side of that bet | ## What a matched game looks like [#what-a-matched-game-looks-like] Each event in `data` lists its submarkets, and each submarket lists the venue markets matched to it in `source_markets[]`. A venue market has the same fields whichever venue it comes from: `provider`, the venue's own `event_id` and `market_id`, `market_name`, and `outcomes`, which map each of the venue's sides to a canonical outcome. [Events and markets](https://docs.predictorsdk.com/concepts/events-and-markets) walks through a full example and says which ID goes to which endpoint. A venue's `event_id` goes to `GET /v1/events/{event_id}`, with one catch: SX Bet lists a fixture's markets only while the fixture is trading, so once a game has been played its SX Bet `event_id` answers `404` there. Its `market_id` still works on market detail. A page of the list covers games whose full-game winner is matched, and each game carries only that submarket, so pages stay small. Add `include_submarkets=true` for every matched submarket, which also brings in games matched only on spreads, totals or props. The list is sorted by scheduled start, soonest first. A game stays in it through the day after its date (US Eastern), so the first games may already be over; [Filtering](https://docs.predictorsdk.com/guides/filtering#include-settled-events) shows how to reach older ones. ## Finding games [#finding-games] - **Browse** with `GET /v1/matching-markets/sports`, narrowed by `league`, `scheduled_date` or `participant`. See [Filtering](https://docs.predictorsdk.com/guides/filtering). - **Look up** with `GET /v1/matching-markets/sports/lookup`. It takes canonical keys as `event_id`, and any ID a venue market publishes as `source_id={provider}:{id}`, such as `kalshi:KXNBAGAME-26OCT20OKCSAS`. On Polymarket, Predict, AlphaArcade and Hyperliquid an outcome token works too, and on Polymarket a condition ID. Send up to 100 IDs in one request; matching ignores case. Each game found comes back once, with every submarket, and `lookups` reports what each ID found. ## Identity, not prices [#identity-not-prices] Matching answers one question: which markets are the same bet. It returns no prices, volumes or statuses. To price a market, send its `market_id` to [`GET /v1/markets/{market_id}`](https://docs.predictorsdk.com/api-reference/getMarket), which reads the venue when you ask. **Upgrading from an older SDK?** SDK 0.23 moved lookups to their own route, renamed the `platform` parameter to `provider`, and made paginated calls return pages you can iterate. SDKs 0.21 and 0.19 reshaped the response. Retired parameters answer `400` naming their replacement, and the [breaking changes](https://docs.predictorsdk.com/changelog?tag=breaking) in the changelog map each old field to its new home. # Events and Markets (https://docs.predictorsdk.com/concepts/events-and-markets) The shape of a matched game, what each field means, and which ID goes to which endpoint. A matched game is an **event**. Inside it, each bet is a **submarket**, and each submarket lists the **venue markets** that offer that bet. This page walks through that shape and the IDs in it. The [API reference](https://docs.predictorsdk.com/api-reference/getSportsMatchingMarkets) lists every field. ## Events [#events] An event is one game. Its `event_id` reads `---`, for example `nba-okc-sas-2026-10-20`, with the date in US Eastern time. Each event also carries: - `participants`: the two teams, each with a `key`, a `name` and a `role` (`away` or `home`). - `scheduled_date`: the game's day, in US Eastern time. Always present. - `scheduled_start`: the start time in UTC, when a venue published an exact one, and `null` otherwise. It says when the game is scheduled, not whether it has started. ## Submarkets [#submarkets] A submarket is one bet within the game, named by its `key`, such as `spread|full|spread:hou|8.5`: | Field | Meaning | |---|---| | `key` | The bet's canonical ID within the event | | `market_type` | `moneyline`, `spread`, `total` (points in the game), `team_total` (one team's points) or `player_prop`. Treat it as text: an unfamiliar value is a new kind of market | | `segment` | `full`, `half:1`, `half:2`, or `quarter:1` to `quarter:4` | | `line` | The number the bet turns on. Left out on moneylines, signed on spreads (negative means that team gives the points), positive on totals and props | | `subject` | Whose line it is: the team on a spread or team total, the player on a prop. Left out on moneylines and game totals, which belong to the whole game | | `display_name` | A readable label, such as `Houston Rockets -8.5` or `1H Total 111.5` | | `rules` | Settlement notes, when they decide what can match. See below | A half or a quarter means regulation play. The exception is a second half or fourth quarter whose venues count overtime: its `key` ends its detail in `:incl_ot` (`spread|half:2|spread:hou:incl_ot|8.5`), its `rules.settlement` is `incl_ot`, and its `display_name` ends in "(incl. OT)". It joins only other lines that count overtime. A full-game total also states `rules.settlement`, because venues differ on whether its overtime counts. ### Outcomes [#outcomes] Each submarket defines its canonical outcomes, and every venue's sides map to them: `winner:okc` and `winner:sas` on a moneyline, `cover:hou` and `not_cover:hou` on a spread, `over` and `under` on a total. ### Team totals [#team-totals] A team total is one team's own points, such as the Eagles over 24.5 (`market_type` `team_total`). Its `subject` is the team and its key names the team (`team_total|full|team_total:phi:incl_ot|24.5`), so two teams' lines at the same number stay separate. Its `display_name` names the team (`Philadelphia Eagles Total 24.5`) and its outcomes are `over` and `under`. Team totals match for the NFL, on Kalshi and Polymarket, for the full game and the first half. ## A full example [#a-full-example] Here is one game with two submarkets: the full-game winner, listed by Kalshi (twice, once per team) and Polymarket, and a spread. A real response lists at least two venues on every submarket; this one shows only SX Bet's spread to keep it short. ```json { "data": [ { "event_id": "nfl-sea-den-2026-10-15", "sport": "football", "league": "nfl", "title": "Seattle Seahawks vs. Denver Broncos", "scheduled_start": "2026-10-16T00:15:00.000Z", "scheduled_date": "2026-10-15", "participants": [ { "key": "sea", "name": "Seattle Seahawks", "role": "away" }, { "key": "den", "name": "Denver Broncos", "role": "home" } ], "submarkets": [ { "key": "moneyline|full|winner", "market_type": "moneyline", "segment": "full", "display_name": "Winner", "outcomes": [ { "key": "winner:sea", "label": "Seattle Seahawks win", "side": "win" }, { "key": "winner:den", "label": "Denver Broncos win", "side": "win" } ], "source_markets": [ { "provider": "kalshi", "event_id": "KXNFLGAME-26OCT15SEADEN", "market_id": "KXNFLGAME-26OCT15SEADEN-DEN", "market_name": "Denver wins", "outcomes": [ { "canonical_outcome_key": "winner:den", "label": "Yes", "outcome_id": "yes", "side": "yes" }, { "canonical_outcome_key": "winner:sea", "label": "No", "outcome_id": "no", "side": "no" } ] }, { "provider": "kalshi", "event_id": "KXNFLGAME-26OCT15SEADEN", "market_id": "KXNFLGAME-26OCT15SEADEN-SEA", "market_name": "Seattle wins", "outcomes": [ { "canonical_outcome_key": "winner:sea", "label": "Yes", "outcome_id": "yes", "side": "yes" }, { "canonical_outcome_key": "winner:den", "label": "No", "outcome_id": "no", "side": "no" } ] }, { "provider": "polymarket", "event_id": "nfl-sea-den-2026-10-16", "market_id": "4212356", "market_name": "Seahawks vs. Broncos", "market_slug": "nfl-sea-den-2026-10-16", "outcomes": [ { "canonical_outcome_key": "winner:sea", "label": "Seahawks", "outcome_id": "61085243734073593459419955931627362545950081431149347585770687210061098950896" }, { "canonical_outcome_key": "winner:den", "label": "Broncos", "outcome_id": "78653414984017864835330593213700943479354040352698721042453780387223265497055" } ] } ] }, { "key": "spread|full|spread:den|3.5", "market_type": "spread", "segment": "full", "display_name": "Denver Broncos -3.5", "line": -3.5, "subject": { "type": "participant", "key": "den", "name": "Denver Broncos" }, "outcomes": [ { "key": "cover:den", "label": "Denver Broncos covers -3.5", "side": "cover" }, { "key": "not_cover:den", "label": "Denver Broncos does not cover -3.5", "side": "not_cover" } ], "source_markets": [ { "provider": "sxbet", "event_id": "L19431555", "market_id": "0x4703010fbb76917d799c0df6c2886d52b863d04c1578157f431b9684b13bdaa0", "market_name": "Denver Broncos -3.5 vs Seattle Seahawks +3.5", "outcomes": [ { "canonical_outcome_key": "cover:den", "label": "Denver Broncos -3.5", "outcome_id": "outcomeOne" }, { "canonical_outcome_key": "not_cover:den", "label": "Seattle Seahawks +3.5", "outcome_id": "outcomeTwo" } ] } ] } ] } ] } ``` A few things to notice: - Kalshi and Pred list each side of a market as `Yes` or `No`, the way market detail names them. The market's own name is in `market_name`. - An SX Bet market is named by its two outcome labels, because the venue's own market name is the game's team pair, the same on every bet in the game. - Polymarket's `event_id` above ends in `2026-10-16`, the UTC date of a Thursday-night kickoff, while the canonical key uses the Eastern date. That is why matching reads each venue's own fields rather than parsing its slugs, and why you should match on the canonical `event_id` too. ## Which identifier goes where [#which-identifier-goes-where] Every venue market carries the same references: | Field | What it names | Where it goes | |---|---|---| | `event_id` | The venue's parent event | [`GET /v1/events/{event_id}`](https://docs.predictorsdk.com/api-reference/getEvent) | | `market_id` | The market itself | [`GET /v1/markets/{market_id}`](https://docs.predictorsdk.com/api-reference/getMarket) | | `outcomes[].outcome_id` | One side of that market | The same `outcomes[].outcome_id` on market detail | To find the game again, send any of `event_id`, `market_id` or `market_slug` as `source_id={provider}:{id}` to [`GET /v1/matching-markets/sports/lookup`](https://docs.predictorsdk.com/api-reference/lookupSportsMatchingMarkets). A Polymarket, Predict, AlphaArcade or Hyperliquid `outcome_id`, or a Polymarket condition ID, works there too. Kalshi lists a game winner as one yes/no market per team ("Tampa Bay wins" and "Dallas wins"), so a Kalshi moneyline appears once per team. Group by `provider` if you want one entry per venue. A venue's `event_id` is never a market ID, even where it looks like one. A Kalshi event ticker answers `404` on market detail, and SX Bet and ProphetX event IDs answer `400`. SX Bet lists a fixture's markets only while the fixture is trading. Once a game has been played, its SX Bet `event_id` answers `404` on `GET /v1/events/{event_id}`, while its `market_id` still works on market detail, with status `settled`. To read a finished SX Bet game, use the `market_id`. ### Always send the provider [#always-send-the-provider] Pass the venue market's `provider` with either call. It is the same lowercase value the `provider` parameter takes, so you can pass it straight through: ```txt GET /v1/events/{event_id}?provider={provider} GET /v1/markets/{market_id}?provider={provider} ``` The composite `{provider}:{id}` form works on both endpoints too: `GET /v1/markets/predict:1607914` goes straight to Predict. Without a provider, the API guesses from the ID's shape. That works for Kalshi tickers and SX Bet IDs, but a bare number or slug could belong to Polymarket or Predict, and the two really do share numbers. The API then checks both venues and answers only if exactly one has the ID. If both do, it returns `409 Conflict` with the candidates rather than picking one. `GET /v1/markets/1607914` is such a number: ```json { "code": "ambiguous_identifier", "message": "market_id \"1607914\" resolves on polymarket and predict, which are different markets. Retry with ?provider= naming the one you want, or use the composite {provider}:{id} form.", "status_code": 409, "param": "market_id", "candidates": ["polymarket", "predict"] } ``` `GET /v1/events/{event_id}` checks the same way, with `param` set to `event_id`, but collides less often, because Polymarket numbers its events and its markets separately. Sending the provider every time is the one rule that works for all ten venues. It is also faster and more reliable: guessing needs both venues to answer, so it fails when either has an outage. AlphaArcade, Hyperliquid, Limitless, ProphetX, Pred and Polymarket US IDs are never guessed at all and always need the provider or the composite form. ### Outcome IDs [#outcome-ids] An `outcome_id` is the venue's own name for a side, never a universal ID. It is the same string market detail returns for that market, on every venue. - Polymarket, Predict, AlphaArcade and Hyperliquid use tokens that are unique on the venue, so `source_id=polymarket:` finds the game from the token alone (send a Hyperliquid token's leading `#` as `%23`). AlphaArcade game lines reuse the token of the Polymarket market they mirror, so key a cross-venue map by provider and token, never by token alone. - Kalshi, Pred, Limitless, Polymarket US, SX Bet and ProphetX name sides within one market: `yes` and `no` on Kalshi, Pred, Limitless and Polymarket US, `outcomeOne` and `outcomeTwo` on SX Bet, small numbers such as `4` and `5` on ProphetX. They only mean something next to the `market_id`, and they are not lookup IDs: `source_id=kalshi:yes` answers `400` pointing you to the market's `market_id`. This page is about identity. For a market's current status, quotes and liquidity, send its IDs to market detail. The matching response carries no prices or order books. # Sources (https://docs.predictorsdk.com/concepts/sources) The ten venues PredictorSDK reads, their IDs, and what each one contributes to matching. PredictorSDK reads ten prediction market venues. Every market in the catalog and in market detail comes from one of them, and matched sports games combine them. Each venue's **source key** is the value in a market's `provider` field and the value [`GET /v1/markets?provider=`](https://docs.predictorsdk.com/guides/filtering#market-providers) takes. ## At a glance [#at-a-glance] | Venue | Source key | IDs look like | Matched sports | |---|---|---|---| | [Kalshi](https://docs.predictorsdk.com/concepts/sources#kalshi) | `kalshi` | `KXNBAGAME-26OCT20OKCSAS-OKC` | Game lines, halves and quarters, team totals, props | | [Polymarket](https://docs.predictorsdk.com/concepts/sources#polymarket) | `polymarket` | `4212356`, or a slug | Game lines, halves and quarters, team totals, props | | [Predict](https://docs.predictorsdk.com/concepts/sources#predict) | `predict` | `77071` | Moneylines; NBA and NFL spreads and totals | | [SX Bet](https://docs.predictorsdk.com/concepts/sources#sx-bet) | `sxbet` | `0x…` market hash, `L…` fixture | Game lines, first half and quarters | | [Hyperliquid](https://docs.predictorsdk.com/concepts/sources#hyperliquid) | `hyperliquid` | an integer outcome ID | NFL game lines | | [AlphaArcade](https://docs.predictorsdk.com/concepts/sources#alphaarcade) | `alpha-arcade` | a ULID, such as `01K0HQ…` | Moneylines; NHL puck lines | | [ProphetX](https://docs.predictorsdk.com/concepts/sources#prophetx) | `prophetx` | `:` | Half-point game lines; NFL props | | [Limitless](https://docs.predictorsdk.com/concepts/sources#limitless) | `limitless` | a slug | NFL moneylines | | [Pred](https://docs.predictorsdk.com/concepts/sources#pred) | `pred` | `0x…:0x…` | NFL and NBA game lines; NBA points props | | [Polymarket US](https://docs.predictorsdk.com/concepts/sources#polymarket-us) | `polymarket-us` | a slug, such as `aec-nfl-ind-jax-2026-11-01` | Game lines, halves and quarters, NFL team totals, props | Game lines are full-game moneylines, spreads and totals. The [table below](https://docs.predictorsdk.com/concepts/sources#what-each-venue-matches) has the detail. AlphaArcade, Hyperliquid, Limitless, ProphetX, Pred and Polymarket US IDs always need the `provider` parameter or the `{provider}:{id}` composite form. See [Always send the provider](https://docs.predictorsdk.com/concepts/events-and-markets#always-send-the-provider). ## Kalshi [#kalshi] A CFTC-regulated exchange. Every market is a yes/no contract with a ticker, such as `KXNBAGAME-26OCT20OKCSAS-OKC`, grouped under an event ticker (`KXNBAGAME-26OCT20OKCSAS`). - **Matched:** full-game moneylines, spreads and totals in all five leagues; half and quarter spreads and totals in the NBA, WNBA and NFL; NFL team totals; player props. - **Halves and quarters:** a Kalshi period winner ("Will Golden State win the 1st quarter?") loses on a tied period, so it is matched as that team's −0.5 spread for the period. - **Catalog:** leaves out Kalshi's user-built parlays (`KXMVECROSSCATEGORY…` tickers). Each one combines markets that are already listed on their own. A parlay ticker still works on `GET /v1/markets/{market_id}`. - **Categories:** each market takes the category Kalshi gives its series, mapped to the [canonical categories](https://docs.predictorsdk.com/guides/filtering#market-categories). - **Team codes:** Kalshi spells Jacksonville `JAC`; the canonical code is `jax`. Lookups handle it: `kalshi:KXNFLGAME-26OCT11PHIJAC` finds `nfl-phi-jax-2026-10-11`. ## Polymarket [#polymarket] A prediction market on Polygon. Markets have numeric Gamma IDs and slugs, and each side has a CLOB token ID (a position ID on Polymarket's newer Protocol V2 markets). - **Matched:** full-game moneylines, spreads and totals in all five leagues; half and quarter spreads and totals in the NBA, WNBA and NFL; NFL team totals; player props. - **Condition IDs:** a market's condition ID, which wallet positions carry, works as an ID too: `GET /v1/markets/polymarket:` returns the market and `source_id=polymarket:` finds its game. - **NFL dates:** Polymarket dates NFL slugs by the UTC day of kickoff, so a night game's slug can read a day later than its canonical event: `nfl-buf-la-2026-10-13` is the Bills at the Rams on Monday, October 12, event `nfl-buf-lar-2026-10-12`. It also spells the Rams `la` (the Chargers are `lac`). Match on the canonical `event_id`, never on a slug. ## Predict [#predict] A prediction market with numeric market IDs. - **Matched:** full-game moneylines in the NBA, NHL, MLB and NFL; NBA and NFL full-game spreads and totals when Predict lists them, which for the NBA is usually only near game time. Predict lists no WNBA games. - **Checks:** Predict names the Polymarket market each of its markets copies. A Predict market whose twin reads as a different bet is left out, and an NBA spread or total is matched only when its title, teams, line and rules agree. - **Start times:** Predict's start times can stay at a game's first announced time after it moves, so they set a game's date but never its `scheduled_start`. - **Categories:** each market takes the category Predict tags its market group with, mapped to the [canonical categories](https://docs.predictorsdk.com/guides/filtering#market-categories). Predict's Culture tag is `culture`, except movies and awards, which are `entertainment`. ## SX Bet [#sx-bet] A sports betting exchange on a blockchain. Markets are `0x` hashes; a game is a fixture with an `L…` ID. - **Matched:** full-game moneylines, spreads and totals in all five leagues; first-half and first-three-quarter spreads and totals in the NBA, WNBA and NFL. Its second halves and fourth quarters aren't matched. - **Sides:** each market's sides are `outcomeOne` and `outcomeTwo`. - **Finished games:** an SX Bet fixture's `event_id` works on `GET /v1/events/{event_id}` only while the fixture trades. After the game, use the `market_id`, which still resolves, with status `settled`. ## Hyperliquid [#hyperliquid] A decentralized exchange with HIP-4 outcome markets. Each market has an integer ID, and each side has a spot coin, such as `#114580`. - **Catalog:** every HIP-4 market, through the catalog, market detail and events. - **Matched:** NFL full-game moneylines, spreads and totals, at half-point lines only, and a spread only when its named team gives the points. Hyperliquid doesn't say which team is home, so a market joins the game other venues list for the same two teams on the same day; a game no other venue lists is left out. Two market creators list most games, so a game can carry two Hyperliquid markets. - **Ties:** a Hyperliquid game winner counts overtime and pays 0.5 to each side on a tie. - **IDs:** a matched market's `market_id` and `event_id` are the same number, and its outcome IDs are its spot coins, the same IDs market detail returns. ## AlphaArcade [#alphaarcade] A prediction market on Algorand. Markets are yes/no or multiple choice, with ULID IDs. - **Matched:** full-game moneylines in every league it lists games for, and full-game spreads that are a single market with a single line (NHL puck lines, such as "Will Capitals -1.5 win?"). A spread's `yes` side is the team covering, its `no` side the team not covering. - **Not matched:** spreads that offer several lines in one market, totals, and first-half and team-total markets. - **Checks:** a game line is left out if its start date disagrees with a date in its title or slug, and a spread is matched only when its rules agree with its title. - **IDs:** game lines reuse the token IDs of the Polymarket market they mirror. ## ProphetX [#prophetx] A sports betting exchange. Events have integer IDs, and a market is named `:`. - **Matched:** full-game moneylines and every half-point line of its spread and total ladders in the NFL, MLB, NBA, NHL and WNBA, and every half-point line of verified NFL player props. Whole-number lines and halves are not matched. - **Lines:** ProphetX lists each spread, total and player prop as a ladder of lines. `:` follows whichever line ProphetX currently features; `::` names one line of the ladder, and matched spreads, totals and props use it, so one game's spread can be matched under several IDs. A spread's native line is the home team's handicap, so it can be positive even though the canonical subject gives the points. - **Catalog:** every active tournament, including other sports, futures, esports, politics and business. These stay unmatched. A market's category is that of the sport ProphetX files its tournament under, so politics markets are `politics` and ProphetX's markets on other venues' monthly trading volume are `finance`. Each market is one catalog row, `:`, however many of its lines are matched. - **Schedule:** ProphetX lists about a week of games per league, so a game gains ProphetX once the venue opens it. ## Limitless [#limitless] A prediction market on Base, paid in USDC. Markets are yes/no with slugs, such as `england-vs-sri-lanka-1789383376774`; a group market holds one submarket per outcome. - **Matched:** NFL full-game moneylines. Each copies a Polymarket market for the same game and joins that game's event. Its `yes` side pays on the team named first in its title (the away team), and a tie resolves 50-50. - **Checks:** a game is matched only when its title, its rules and its Polymarket slug name the same two teams in the same order and agree on the date. - **Start times:** Limitless copies a game's start time when it lists the game and doesn't update it, so it sets the date but never `scheduled_start`. - **IDs:** a matched market's slug is both its `market_id` and its `event_id`. ## Pred [#pred] A peer-to-peer sports exchange on Base, paid in USDC, with an order book. The market you trade is a child market, grouped under a parent; IDs are `0x` hashes, and a market is named `:`. A bare `pred:` is the parent as a group. - **Matched:** NFL and NBA full-game moneylines, spreads and totals, and NBA player points props (`Cade Cunningham Points Over 24.5`). - **Moneylines:** an NFL or NBA moneyline is one market for the home team; its `no` side is the away team. - **Overtime:** Pred's spread rules, and its NFL total and moneyline rules, don't say whether overtime counts. Pred has paid every NFL game that went to overtime on the final score, so the [rule comparison](https://docs.predictorsdk.com/guides/game-line-rules) reads its overtime as included. ## Polymarket US [#polymarket-us] A CFTC-regulated US exchange (gateway.polymarket.us), separate from Polymarket: its markets, order books, fees and rules are its own. Each market is one instrument, and buying it is the `yes` side while selling it is the `no` side. A market's ID is its slug, such as `aec-nfl-ind-jax-2026-11-01`, and a game is an event with a slug such as `nfl-ind-jax-2026-11-01`. - **Matched:** full-game moneylines, spreads and totals in the NFL, NBA, NHL and WNBA, and in MLB when the venue lists games; half and quarter spreads and totals in the NFL and NBA; NFL team totals for the full game and each half; NFL, NBA and WNBA player props. - **Halves and quarters:** a period winner ("Will the CHA Hornets win the second quarter vs the WAS Wizards?") pays `no` on a tied period, which the venue settles to a separate Tie market, so it is matched as that team's −0.5 spread for the period, as Kalshi's are. - **Checks:** a market is matched only when everything it says agrees: its `sportsMarketType`, its two sides (the team each pays on), its line and each side's signed handicap, its rules text and, on a spread, its title. The away team comes from the event's own order and agrees with the moneyline's `yes` side. Anything else stays a catalog row. - **Overtime:** each market's rules say whether overtime counts, and the line is matched under that rule. Its second halves count overtime today and its fourth quarters don't. - **Prices:** market detail reads the instrument's order book. The book is the `yes` side's, and the `no` side's quotes are its complement. - **Titles:** a market's title is the venue's question, plus the period or the team the question leaves out ("… (1st half)", "… (Dallas Cowboys)"): an NFL team's total asks the game total's question. It is the same title on the catalog, market detail, events and matching. - **IDs:** a matched market's slug is its `market_id` and the game's event slug is its `event_id`. Both look like Polymarket slugs, so send `provider=polymarket-us` with them. ## What each venue matches [#what-each-venue-matches] | Market type | Kalshi | Polymarket | Predict | SX Bet | AlphaArcade | ProphetX | Pred | Limitless | Hyperliquid | Polymarket US | |---|---|---|---|---|---|---|---|---|---|---| | Moneyline (full) | Yes | Yes | Yes | Yes | Yes | Yes | Yes | NFL | NFL | Yes | | Spread (full) | Yes | Yes | NBA and NFL, when listed | Yes | Single-line | Half-point | NFL and NBA | No | NFL, when listed | Yes | | Total (full) | Yes | Yes | NBA and NFL, when listed | Yes | No | Half-point | NFL and NBA | No | NFL, when listed | Yes | | Spread and total (1H and quarters, NBA/WNBA/NFL) | Yes | Yes | No | 1H, Q1–Q3 | No | No | No | No | No | NBA and NFL | | Spread and total (2H, NBA/WNBA/NFL) | Yes | Yes | No | No | No | No | No | No | No | NBA and NFL | | Moneyline (halves and quarters) | As −0.5 spreads | No | No | No | No | No | No | No | No | As −0.5 spreads | | Team total (NFL: full game and halves) | Full game and 1H | Yes | No | No | No | No | No | No | No | Yes | | NFL player props (same-prop policy) | Yes | Yes | No | No | No | Yes | No | No | No | Yes | | Player points | Yes | Yes | No | No | No | No | NBA | No | No | NBA and WNBA | | Player rebounds | Yes | Yes | No | No | No | No | No | No | No | NBA and WNBA | | Player assists | Yes | Yes | No | No | No | No | No | No | No | NBA and WNBA | | Player threes (three-pointers made) | Yes | Yes | No | No | No | No | No | No | No | NBA and WNBA | | Player steals and blocks | NBA | Yes | No | No | No | No | No | No | No | NBA and WNBA | | Player points + rebounds + assists | NBA | No | No | No | No | No | No | No | No | NBA and WNBA | The table shows what can match, not what is listed today: a game carries the venues that actually list it. MLB and NHL match the full game only. Player props also need the player and the settlement rules verified; see [Player-prop matching](https://docs.predictorsdk.com/guides/player-prop-matching). ## Halves and quarters [#halves-and-quarters] Two settlement rules decide which half and quarter lines join: - **Ties.** A half or quarter can end level, and venues settle a tied period three different ways: Kalshi lists the tie as its own contract, Polymarket pays half to each side, and SX Bet voids the bet. So half and quarter **moneylines** are not matched. Kalshi's team legs are matched as −0.5 spreads instead (key `spread|quarter:1|spread:gs|0.5`), next to other venues' −0.5 spreads. - **Overtime.** The second half and the fourth quarter end where overtime begins, and venues disagree about counting it. Each line is matched under the rule its own market text states. A line that counts overtime carries `incl_ot` in its key (`total|half:2|game_total:incl_ot|82.5`), in `rules.settlement` and in its `display_name` ("(incl. OT)"), and joins only lines that count it; a line that excludes overtime keeps its plain key and joins only lines that exclude it. A line whose rule can't be read is left out. Venues change these rules, which is why each market's own text decides: on 2026-10-30 Kalshi's and Polymarket US's NBA second halves counted overtime, as did Kalshi's, Polymarket's and Polymarket US's NFL second halves, and every venue's fourth quarter excluded it. ## Team totals [#team-totals] A team total is one team's points, such as the Eagles over 24.5. Team totals match for the NFL, on Kalshi, Polymarket and Polymarket US, for the full game and the first half, and on Polymarket and Polymarket US for the second half, which counts overtime on both. A full-game team total counts overtime, like a full-game total. Each venue's team is read from its own structure (Kalshi's ticker, Polymarket's slug, the team on Polymarket US's two sides), never guessed from a title. ## Looking up by venue ID [#looking-up-by-venue-id] Find a matched game by any ID a venue market publishes, prefixed with its source key, on `GET /v1/matching-markets/sports/lookup`: ```txt ?source_id=kalshi:KXNBAGAME-26OCT20OKCSAS # Kalshi event ticker ?source_id=sxbet:L19766755 # SX Bet fixture ?source_id=polymarket:nfl-pit-no-2026-10-25 # Polymarket slug ?source_id=prophetx:YOUR_EVENT_ID:YOUR_MARKET_ID ?source_id=alpha-arcade:YOUR_MARKET_ULID ?source_id=pred:YOUR_PARENT_ID:YOUR_CHILD_ID ?source_id=limitless: ?source_id=polymarket-us: # or the game's event slug ``` Replace the placeholders with a venue market's `market_id`. A ProphetX or Pred market's bare `event_id` works too. Side names such as the `yes` and `no` of Kalshi, Limitless and Polymarket US name a side of every market on the venue, so they answer `400` rather than finding anything. Venues delist a game's IDs some time after it is played. See [Filtering](https://docs.predictorsdk.com/guides/filtering) for the full lookup rules. # Filtering (https://docs.predictorsdk.com/guides/filtering) Narrow the list of matched sports events by league, date or participant, and look up specific matches by identifier. Two routes read matched sports games: - `GET /v1/matching-markets/sports` lists them, soonest first, and takes the filters below. A game stays listed through the day after its date, so the first games can be over; see [Include settled events](https://docs.predictorsdk.com/guides/filtering#include-settled-events). - `GET /v1/matching-markets/sports/lookup` finds the games behind IDs you already have, and reports what each ID found. The market catalog, `GET /v1/markets`, has filters of its own: by [category](https://docs.predictorsdk.com/guides/filtering#market-categories) and by [provider](https://docs.predictorsdk.com/guides/filtering#market-providers). ## Filtering the list [#filtering-the-list] Called without parameters, `GET /v1/matching-markets/sports` returns the first page of currently matched events. Narrow it with these parameters: | Parameter | Type | Description | Example | |---|---|---|---| | `league` | `nba`, `wnba`, `nfl`, `mlb` or `nhl` | Only that league's events | `nfl` | | `scheduled_date` | date, `YYYY-MM-DD` | Only the games on that day, read in America/New_York | `2026-10-25` | | `participant` | string | Only events with a participant whose `key` is this (`participants[].key`), case-insensitively | `okc` | | `include_settled` | boolean | Also draw from the settled archive: past-dated and cancelled games (see below) | `true` | | `include_submarkets` | boolean | Every matched submarket instead of the full-game moneyline | `true` | | `include_rules` | boolean, default `false` | Each game line also lists its `rule_comparisons` rows (see [game-line rules](https://docs.predictorsdk.com/guides/game-line-rules)) | `true` | | `player_prop_match` | `strict` or `same_prop` | Player-prop admission policy | `same_prop` | `league`, `scheduled_date` and `participant` combine, so `?league=nfl&scheduled_date=2026-10-25` returns NFL games on that day, and `pagination.total` counts only the games that match. Each is named after the response field it filters on. A value the API doesn't accept, such as an unknown league or a date that isn't real, is a `400` that quotes it: the API never ignores a filter, because an ignored filter would return a full page that only looks filtered. An empty value (`league=`) is a `400` too; leave the parameter out to get everything. Participant keys are unique only within a league: `la` is the Rams in the NFL and the Sparks in the WNBA. Pair `participant` with `league` unless you want both. A key is the lower-case code in `participants[].key` (`okc`, `sas`, `no` for the Saints), the same one `source_markets[]` outcomes refer to. Cursors are bound to the filters that issued them. `limit` and `cursor` work as described in [Pagination](https://docs.predictorsdk.com/guides/pagination), but a `next_cursor` replayed with a different `league`, `scheduled_date`, `participant`, `include_settled`, `include_submarkets` or `player_prop_match` is a `400`; start again from the first page when you change a filter. `include_rules` is the exception: it shapes each event and never selects one, so a cursor continues with or without it. For canonical player props, `include_submarkets=true` uses strict settlement equivalence by default. Add `player_prop_match=same_prop` to include verified same-prop identities with different or unverified rules. This policy works with every filter on this page, list pagination, and `include_settled`; it does not change game-line matching. See the [options and rule matrix](https://docs.predictorsdk.com/guides/player-prop-matching). ### When a game is scheduled [#when-a-game-is-scheduled] Every event, in the list and in a lookup, says when it is scheduled: | Field | Value | |---|---| | `scheduled_date` | The game's calendar day in America/New_York, `YYYY-MM-DD`. Always present. | | `scheduled_start` | The start in UTC at millisecond precision (`2026-10-21T00:30:00.000Z`) when a venue published an exact start time, otherwise `null`. | A game that starts at 8:30 PM Eastern on the 20th is on the 20th although its `scheduled_start` falls on the 21st in UTC; `scheduled_date` is the day to filter, group and display by. The day is the one the default list judges the game by: the day of its start in Eastern time, and never earlier than the date its `event_id` ends in. A postponed game takes its new day. `scheduled_start` is `null` when no venue published an exact time. Kalshi's tickers carry a date and no time, a venue's "time to be announced" placeholder is not a start, and games matched before start times were recorded read `null` too (archived games for up to 30 days after that change). `null` means "no exact start is known", never a guess at one, and `scheduled_date` still names the day. When venues disagree, the earliest exact start is published. Both fields are schedule identity, not a status: they do not say whether a game has started, ended or been postponed. ## Looking events up by identifier [#looking-events-up-by-identifier] `GET /v1/matching-markets/sports/lookup` takes identifiers instead of filters, and needs at least one: | Parameter | Type | Description | Example | |---|---|---|---| | `event_id` | string (repeatable) | Look up canonical event key(s) | `nba-okc-sas-2026-10-20` | | `source_id` | string (repeatable) | Look up a venue market's `market_id`, `market_slug` or `event_id` (or a Polymarket, Predict, AlphaArcade or Hyperliquid outcome token, or a Polymarket condition ID), as `{provider}:{id}` | `kalshi:KXNBAGAME-26OCT20OKCSAS` | | `include_settled` | boolean | Also search the settled archive: past-dated and cancelled games | `true` | | `include_submarkets` | boolean, default `true` | Every matched submarket (`false` for the moneyline alone) | `false` | | `include_rules` | boolean, default `false` | Each game line also lists its `rule_comparisons` rows (see [game-line rules](https://docs.predictorsdk.com/guides/game-line-rules)) | `true` | | `player_prop_match` | `strict` or `same_prop` | Player-prop admission policy | `same_prop` | The lookup answers `{ data, lookups, snapshot }`: the games found, each once, what each ID found, and how old the data is. It returns everything in one response, so it takes no `limit`, `cursor` or list filters; sending one is a `400` that lists what the route accepts. Sending `event_id` or `source_id` to the list route is a `400` that names the lookup route. `source_id` takes any `market_id`, `market_slug` or `event_id` a venue market publishes, prefixed with its `provider`. Some venues accept more: | Provider | IDs it accepts after `{provider}:` | |---|---| | `kalshi` | An event or market ticker | | `polymarket` | A market ID, slug or event slug; an outcome token; a condition ID, the `condition_id` [wallet positions](https://docs.predictorsdk.com/api-reference/listPolymarketWalletPositions) carry | | `predict` | A market ID; an outcome token | | `sxbet` | A market hash; an `L…` fixture ID | | `alpha-arcade` | A ULID or slug; an outcome token | | `prophetx` | An event ID; an `:` ID, which names its line on a matched spread, total or prop (`::`) | | `pred` | A parent ID; a `:` pair | | `limitless` | A market slug | | `hyperliquid` | An outcome ID; an outcome token, with its leading `#` sent as `%23` | A few rules hold for every lookup: - **The provider comes first.** Only the text before the first colon is the provider, so IDs that contain colons need no escaping. A bare ID with no provider is a `400`, because IDs aren't unique across venues. - **Side names aren't IDs.** Kalshi's, Pred's, Limitless's and Polymarket US's `yes` and `no`, and SX Bet's `outcomeOne` and `outcomeTwo`, name a side of every market on the venue, so they answer `400` pointing you to the market's `market_id`. ProphetX's small side numbers aren't lookup IDs either. - **Case doesn't matter.** `event_id=NBA-OKC-SAS-2026-10-20` finds the same game as the lower-case key, and a Kalshi ticker typed in lower case finds the same game as Kalshi's own upper-case spelling. - **Repeat a parameter for several values,** mixing `event_id` and `source_id` and any venues, up to 100 different IDs per request. A comma-joined value (`source_id=kalshi:,kalshi:`) and an empty one are `400`s, and so is a request with no ID at all. - **Errors name the value.** Every `400` quotes the value it rejected, so you can find it in a batch. ## Market categories [#market-categories] Use `GET /v1/categories` to list the canonical category values, then pass one to `GET /v1/markets`: ```http GET /v1/markets?category=sports GET /v1/markets?category=crypto ``` Only the canonical category values are accepted (case-insensitive). Any other value returns `400`, so use the list from `GET /v1/categories` rather than provider-native tags like `mlb` or `btc`. The category filter is part of pagination scope, so keep the same `category` value when following a `next_cursor`. ## Market providers [#market-providers] `GET /v1/markets` walks providers in a fixed order (`kalshi`, `polymarket`, `predict`, `sxbet`, `hyperliquid`, `alpha-arcade`, `prophetx`, `limitless`, `pred`), so without a filter the first pages are all Kalshi, and reaching a later provider means paging through every earlier one. Pass `provider` instead: ```http GET /v1/markets?provider=sxbet GET /v1/markets?provider=alpha-arcade ``` The value is each row's own `provider` field, the source key [Sources](https://docs.predictorsdk.com/concepts/sources) lists for each venue. Only those nine values are accepted, in any case. Anything else is a `400` listing the legal ones, including spellings the `provider` parameter on `GET /v1/markets/{market_id}` tolerates, such as `sx_bet`, `hl` or `px`: ```json { "code": "invalid_parameter", "message": "invalid provider \"sx_bet\": must be one of kalshi, polymarket, predict, sxbet, hyperliquid, alpha-arcade, prophetx, limitless, pred", "status_code": 400, "param": "provider" } ``` `pagination.total` counts only that provider's rows, and a `next_cursor` only works with the same `provider` value. `snapshot.observed_at` narrows with it. Unfiltered, it is when the oldest venue crawl behind the page began, a floor for the whole catalog; under `provider`, it is when that venue's own crawl began. So filtering is also the cheapest way to get an exact age instead of a cautious one; see [Pagination](https://docs.predictorsdk.com/guides/pagination). Both filters compose, and the result is the intersection: ```http GET /v1/markets?provider=polymarket&category=sports ``` `provider` on `GET /v1/markets` filters a list. The `provider` parameter on `GET /v1/markets/{market_id}` and `GET /v1/events/{event_id}` has the same name and values but another job: it says which venue a single ID belongs to. It also tolerates a few spellings, such as `sx_bet`, that the list filter rejects. ## Examples [#examples] ### Filter the list [#filter-the-list] ```http GET /v1/matching-markets/sports?league=nfl&scheduled_date=2026-10-25 GET /v1/matching-markets/sports?league=nba&participant=okc ``` The second request is the Thunder's games. `pagination.total` is the number of events that match, and the cursor continues that filtered list. ### Look up a canonical event directly [#look-up-a-canonical-event-directly] Use this route when you already hold the stable event key; there is no need to page through the list to rediscover it. ```http GET /v1/matching-markets/sports/lookup?event_id=nba-okc-sas-2026-10-20 ``` ### Look up by a venue's own ID [#look-up-by-a-venues-own-id] Prefix the ID with its `provider`. A source market's `market_id`, `market_slug` or `event_id` works. These are the `source_id` values of `GET /v1/matching-markets/sports/lookup`: ```txt ?source_id=kalshi:KXNBAGAME-26OCT20OKCSAS # Kalshi event ticker ?source_id=kalshi:KXNBAGAME-26OCT20OKCSAS-OKC # Kalshi market ticker ?source_id=sxbet:L19766755 # SX Bet fixture ?source_id=polymarket:nfl-pit-no-2026-10-25 # Polymarket slug ``` ProphetX lists games only about a week ahead, and AlphaArcade and Pred IDs are long, so copy those from a venue market in a current list response: its `market_id`, or for ProphetX and Pred its `event_id` too. A venue ID stops finding anything once the venue stops listing it: after the game for most markets, and sometimes during it for player props. ```txt ?source_id=prophetx:YOUR_EVENT_ID ?source_id=prophetx:YOUR_EVENT_ID:YOUR_MARKET_ID ?source_id=alpha-arcade:YOUR_MARKET_ULID ?source_id=pred:YOUR_PARENT_ID:YOUR_CHILD_ID ?source_id=pred:YOUR_PARENT_ID ?source_id=limitless: ?source_id=polymarket:YOUR_CLOB_TOKEN_ID # an outcome token ``` A lookup finds the game an identifier belongs to and returns it with every matched submarket, so the spread, total or prop market you looked up is in it. Add `include_submarkets=false` for the moneyline alone. ### Look up several events at once [#look-up-several-events-at-once] Repeat either parameter, and mix them and the venues freely: ```http GET /v1/matching-markets/sports/lookup?event_id=nba-okc-sas-2026-10-20&source_id=kalshi:KXNBAGAME-26OCT20BOSDET&source_id=sxbet:L19766755 ``` ### Return all matched events [#return-all-matched-events] ```http GET /v1/matching-markets/sports ``` No parameters required. Returns the first page of currently matched sports events with its cross-platform identifiers and schedule. See [Pagination](https://docs.predictorsdk.com/guides/pagination) for how to traverse larger result sets. ### Include settled events [#include-settled-events] ```txt ?include_settled=true ``` `include_settled` picks which events the request draws from, and it applies to the lookup route as well as to the list. By default you get today's games, plus one day of grace so a late game that runs past midnight Eastern isn't dropped while it is still being played. Set `include_settled=true` to add the settled archive: games that left live matching, usually because the venues settled or delisted them, kept for 30 days. That includes older games (even ones a venue still lists as open) and cancelled games, which can be dated in the future. What counts is the game's date, `scheduled_date`, not what a venue says. So `scheduled_date=2026-10-01` matches nothing by default once that day has passed, and matches that day's games with `include_settled=true`. A game missing from the default list hasn't necessarily been settled by its venues; it just isn't current. A postponed game takes its new date and stays current until it is played. If you hold the `event_id` of a game that has been played, ask with `include_settled=true`: without it, the lookup answers `200` and lists your ID in `lookups` with no events. A game that has started keeps every venue market it was matched with once it started, including a player prop a venue closed during the game because its result was reached, and a market a venue listed while it was played. That is what reconciling a settlement needs, and it holds both for today's finished games and, with `include_settled=true`, for older ones. Games archived before October 4, 2026 are the exception: they kept only the venues still listing them when they left, usually two. They leave the 30-day archive by November 4, 2026. A game that was cancelled and never played is left out by default, in the list and in lookups. The signal is Polymarket settling its moneyline 50-50 (it does that when a game is cancelled with no make-up), and the game leaves the default list within about ten minutes of it. `include_settled=true` still returns the game with the markets matched to it, so a position on one of them can be reconciled. Because that signal is Polymarket's, a cancelled game Polymarket never listed stays in the list until its date passes. So does a cancelled NFL game, because a tied NFL game also settles 50-50. This works alongside pagination and the filters above, but `include_settled` is part of cursor scope, so changing it mid-traversal requires starting over from page 1. ### Check how old the answer is [#check-how-old-the-answer-is] Matching runs continuously in the background, and both routes read its stored result. Every response, including a lookup that found nothing, carries `snapshot.observed_at`: when the oldest venue read behind the result began. ```json { "data": [], "lookups": { "nba-okc-sas-2026-10-20": { "event_ids": [] } }, "snapshot": { "observed_at": "2026-09-19T21:14:07.412Z" } } ``` Each venue is re-read about every 30 seconds, and a venue's last good read is used for at most 10 minutes. So while matching is healthy, `observed_at` is normally under two minutes old and never more than about 12. An older value means the data has stopped updating. Then a game missing from the response is **unknown, not unmatched**: a game listed after the data froze can't be in it. Check the age before acting on an absence: ```python from datetime import datetime, timedelta, timezone from predictorsdk import PredictorSDK client = PredictorSDK(token="YOUR_API_KEY") response = client.lookup_sports_matching_markets(event_id="nba-okc-sas-2026-10-20") observed = response.snapshot.observed_at if observed is None or datetime.now(timezone.utc) - observed > timedelta(minutes=15): raise RuntimeError("matching snapshot is stale; treat a missing event as unknown") ``` A recent `observed_at` says the snapshot is updating; it does not promise every venue is in it. A venue whose reads keep failing is dropped from the snapshot once its last good read is 10 minutes old, so its events can be missing even from a current one. `observed_at` is `null` when the age is unknown, for example while a snapshot written before this field existed is still being served. Pages of one cursor traversal can come from successive snapshots, so the value can advance between pages; settled events added by `include_settled=true` do not affect it. ### See every submarket [#see-every-submarket] ```http GET /v1/matching-markets/sports?include_submarkets=true ``` A list page covers games whose full-game moneyline is matched, and each game carries only that submarket, so `submarkets` is never empty and pages stay small. `include_submarkets=true` adds every other matched submarket in the same shape, plus games matched only on those. A lookup returns every submarket already; `include_submarkets=false` narrows it to the moneyline. Each submarket carries its market type, period, `line`, settlement rules where they matter, canonical outcomes and each venue's own market and outcome IDs. It carries no prices, statuses, liquidity, fees or order books: send the IDs to market detail for those. ## What a lookup found [#what-a-lookup-found] `data` lists each matched event once, soonest scheduled start first, on both routes. A lookup adds `lookups`, which reports every `event_id` and `source_id` you sent with the events it found: ```json "lookups": { "kalshi:KXNBAGAME-26OCT20OKCSAS": { "event_ids": ["nba-okc-sas-2026-10-20"] }, "sxbet:L19766755": { "event_ids": ["nba-okc-sas-2026-10-20"] }, "kalshi:KXNBA-27-SAS": { "event_ids": [] } } ``` Each identifier is reported as you sent it, with whitespace around the provider and ID trimmed. Matching ignores case, but the key keeps your spelling, so you can index the result by your own strings. Two identifiers of one game list the same event, which `data` holds once. An identifier that found nothing lists no events: it is unknown, the market is matched by no other venue, the game is past-dated (see `include_settled`), the game's only matches are player props that the `player_prop_match` policy excludes (send `player_prop_match=same_prop`), or, under `include_submarkets=false`, the game's full-game moneyline is not matched. Do not confuse the canonical `event_id` with `source_markets[].event_id`. The canonical key is PredictorSDK's stable cross-venue ID, which the lookup's `event_id` takes. The source-market field is native to one venue and names that venue's parent event, for `GET /v1/events/{event_id}`; to look it up here, prefix it with its `provider` and send it as `source_id`. A venue ID sent as `event_id` (a Kalshi ticker, a numeric ID, an `L…` fixture, an `0x` hash) is a `400` that says so, and so is one that matches no canonical event but is a venue's identifier. That is most often a Polymarket slug, which can differ from the canonical key: a night game's slug carries the UTC date (`nfl-sea-den-2026-10-16` for the canonical `nfl-sea-den-2026-10-15`), and Polymarket spells some teams differently. The `400` names the provider to send it under. See [Which identifier goes where](https://docs.predictorsdk.com/concepts/events-and-markets#which-identifier-goes-where). ## List and lookup [#list-and-lookup] The two routes differ in what they answer: | | `GET /v1/matching-markets/sports` | `GET /v1/matching-markets/sports/lookup` | |---|---|---| | Use it to | Browse or filter the schedule | Find the events behind identifiers you hold | | Selects with | `league`, `scheduled_date`, `participant` | `event_id` and `source_id` (at least one, 100 unique at most) | | Response | `data`, `pagination`, `snapshot` | `data`, `lookups`, `snapshot` | | Pages | Keyset cursor, default `limit=25`, max `100` | None: one bounded response | | Submarkets | The full-game moneyline unless `include_submarkets=true` | Every matched submarket unless `include_submarkets=false` | `limit`, `cursor`, `league`, `scheduled_date`, `participant`, `include_settled`, `include_submarkets`, `include_rules` and `player_prop_match` each take one value; sending one twice is a `400`, as is a value they do not accept, and every such `400` quotes the value. Both routes include the `snapshot` block described in [Check how old the answer is](https://docs.predictorsdk.com/guides/filtering#check-how-old-the-answer-is), and both are read with the same `markets.matching.read` permission and counted as one request each. ## Response size [#response-size] Responses are gzip-compressed when the request allows it (every SDK does). Roughly, for a `limit=100` page (the high end is an NFL weekend, when every venue lists the games): | Request | JSON | Gzipped | |---|---|---| | Default (full-game moneylines) | 240–300 KB | 60–75 KB | | `include_submarkets=true` | 2–5 MB | 450 KB–1 MB | | `include_submarkets=true&player_prop_match=same_prop` | 10–11 MB | 1.2–1.6 MB | Player props make the last row heavy on an NFL weekend. Use a smaller `limit`, or look up the events you need, if that size matters to you. The game-line rule rows (`include_rules=true`) are heavy too: they can make up more than half of a page with every submarket, which is why they are opt-in. Ask for them on a lookup or a small page. # Player-prop matching (https://docs.predictorsdk.com/guides/player-prop-matching) Compare the same player prop across venues, and see where their settlement rules differ. Two markets can ask the same player to exceed the same line and still pay differently when that player does not play. PredictorSDK separates **prop identity** from **settlement equivalence**. These options apply to player props only. Moneylines, spreads, and game totals publish a smaller matrix of their own (tie, overtime, push), with its rows only when you send `include_rules=true`; a player prop's matrix is always there. See [game-line rules](https://docs.predictorsdk.com/guides/game-line-rules). ## Choose a policy [#choose-a-policy] Use the existing [sports matching endpoint](https://docs.predictorsdk.com/api-reference/getSportsMatchingMarkets). | Request | Player props returned | | --- | --- | | No parameters | Each event's full-game moneyline only; no player props | | `include_submarkets=true` | Strict settlement-equivalent player props only | | `include_submarkets=true&player_prop_match=strict` | Same strict default, explicitly selected | | `include_submarkets=true&player_prop_match=same_prop` | Verified same-prop identities, including different or unverified settlement rules | | `player_prop_match` with `include_submarkets=false`, or in list mode without `include_submarkets=true` | `400`; the requested comparison would not be visible. A lookup sets `include_submarkets=true` by default. | | A repeated or unsupported `player_prop_match` | `400`; no silent fallback | | An empty `player_prop_match=` | The default, `strict`, like an empty value of any other control parameter | Both policies work with list pagination, lookups (`event_id` and `source_id` on `GET /v1/matching-markets/sports/lookup`), and `include_settled=true`. A cursor belongs to one policy and cannot be reused after switching policies. Lookup still accepts at most 100 unique identifiers and remains unpaginated. Without `include_submarkets=true`, each event carries only its full-game moneyline, never player-prop outcomes. ```http GET /v1/matching-markets/sports?include_submarkets=true&player_prop_match=same_prop ``` For a known event, call `GET /v1/matching-markets/sports/lookup?event_id=`; do not search every page to rediscover it. A result requires at least two distinct providers, not two markets from the same venue. An event whose only matches are player props is listed only when the policy admits its props: with `include_submarkets=true&player_prop_match=same_prop` today, because the strict policy currently admits none. ## What must match in both modes [#what-must-match-in-both-modes] The sport and league, both teams, game date, player, statistic, full-game period, threshold, and native selection meanings must agree. NFL kickoff dates are normalized to America/New_York; Polymarket's UTC-dated slug is not used as the Eastern game date (its NBA and WNBA slugs carry the Eastern day itself, a night game's included). Player names are resolved against both teams' ESPN rosters to an unambiguous athlete ID, and exactly one ESPN fixture must corroborate the matchup and Eastern game day. An explicit source kickoff that conflicts with ESPN is refused. A venue's name matches an athlete when it is ESPN's name for that athlete, ignoring case, accents and punctuation. When no athlete of the game has the name exactly, it also matches when the two differ only by a generational suffix (Jr., Sr., II, III, IV or V) written on one side, or when one first name is a short form of the other (Greg and Gregory, Nic and Nicolas, Irv and Irvin), as long as exactly one athlete of the game fits. A few athletes ESPN lists by a nickname or initials also match the legal name a venue writes for them, through an alias reviewed for that athlete (Kevin Concepcion is ESPN's KC Concepcion, and Zonovan Knight is Bam Knight). Two different suffixes (Jr. and Sr.), two spellings of one name (Brian and Bryan), other nicknames that aren't a short form of the name (Hollywood and Marquise), initials and surnames alone don't match, and a name two athletes of the game share is refused. For integer statistics, **250+ means Over 249.5**, not Over 250. A contract requiring **more than 10 points** is not the same as **10+ points**. Only verified nonnegative half-point thresholds are admitted in this release; whole-number push contracts, exact-value/range bets, fractional statistics, weekly accumulation, season props, and D/ST units are not player-prop matches. Passing touchdowns and touchdowns scored are separate statistics. Roster checks are performed during sports ingestion, with a five-minute cache and bounded requests. A missing or stale roster, a team conflict, or an ambiguous athlete removes that prop, not ordinary game lines. Current rosters cannot certify historical membership: ingestion does not newly admit props more than 48 hours past their scheduled start. Previously verified archived props remain eligible under `include_settled=true`; older snapshots without identity verification do not acquire it retroactively. ## Read the rule matrix [#read-the-rule-matrix] Every returned player prop has `settlement_equivalence` and `rule_comparisons`. | Equivalence | Meaning | | --- | --- | | `equivalent` | Every source has a completely reviewed, equivalent settlement profile | | `different` | At least one known difference exists, even if other rules remain unknown | | `unverified` | No difference has been established, but equivalence has not been proved | Each `rule_comparisons` row has a machine-readable `rule`, readable `label`, `comparison`, and `source_values`. Each source value names its exact `provider` and `market_id`, a machine-readable `value`, a plain-language `description`, and an `evidence_url` when verified. The matrix always covers: | Rule | What to check | | --- | --- | | `non_participation` | Inactive, withdrawn, or no-play settlement; minimum participation | | `overtime` | Whether overtime statistics count | | `stat_definition` | Which statistic and attribution rules govern | | `threshold` | Comparison operator, equality, and push behavior | | `stat_corrections` | Whether later official corrections can change settlement | | `postponement` | How long a delayed game remains eligible | | `cancellation` | Fair-price settlement, split payout, or refund conditions | | `interruption` | Abandonment, minimum play, and restart conditions | | `resolution_source` | Official source, fallbacks, and missing-data handling | Filter rows with `comparison=different` to find known differences. Filter `unverified` rows to find evidence gaps. Values are extensible strings; display the description rather than guessing an unfamiliar value's meaning. A row can have a known difference and still contain an `unknown` source value. Agreement on observed clauses is not a complete contract review, and unknown values never mean equivalent or unrestricted. Rule evidence is attached to individual source contracts, not assumed from the provider's name. Market clauses are observed at ingestion. Kalshi product terms require the current series to link to the reviewed document; ProphetX requires its filings index to retain the reviewed NFL filing. Both require the document's SHA-256 to match the reviewed version; these checks are cached for at most five minutes. Changed or unavailable documents leave affected dimensions unknown. Known unresolved wording is not assigned an invented precedence. Read the evidence link for additional applicable terms. ## Example: a no-play difference [#example-a-no-play-difference] The September 2026 audit found Josh Allen passing-yard props with matching game/player/249.5 identities, but different non-participation treatment: | Source | Active player takes no snap | | --- | --- | | Polymarket | Under wins; Over loses | | Kalshi | Settles at a pregame fair price, not necessarily zero or one | | ProphetX | Filed rules require active status and at least one snap for validity; no automatic Under win | A fair-price settlement, a 50-50 split, and a purchase-price refund are not interchangeable. A same-prop match is useful for discovery and comparison; it does not establish a risk-free arbitrage or a perfect hedge. For a comparison UI, show the prop's `display_name`, an overall `settlement_equivalence` badge, and the descriptions from each rule row. Keep unknown rows visible. A simplified excerpt (the actual response contains all nine rows and exact source market references) looks like: ```json { "display_name": "Josh Allen Passing yards O/U 249.5", "settlement_equivalence": "different", "rule_comparisons": [ { "rule": "non_participation", "label": "Player does not participate", "comparison": "different", "source_values": [ { "provider": "kalshi", "market_id": "KXNFLPASSYDS-26SEP13BUFHOU-BUFJALLEN17-250", "value": "no_participation_fair_price", "description": "Inactive/withdrawn players settle at a fair price; active players taking no snap settle at the pregame fair price. A snap nullified by penalty counts as participation.", "evidence_url": "https://assets.kalshi.com/contract_terms/FOOTBALLENTITYSTAT.pdf" }, { "provider": "polymarket", "market_id": "4080510", "value": "under_wins", "description": "If the player does not participate or is inactive, Under/No wins and Over/Yes loses.", "evidence_url": "https://gamma-api.polymarket.com/markets/4080510" } ] } ] } ``` ## Coverage and limitations [#coverage-and-limitations] | Provider | Player-prop admission in this release | | --- | --- | | Kalshi | Thirteen NFL families listed below, and the NBA and WNBA statistics in the basketball table below. Each is an "N+" market, matched as over N − 0.5, when its title and rules text name the statistic in the series' own words | | Polymarket | The NFL families below it lists (its touchdowns-scored props now count fewer touchdowns, see below), and the NBA and WNBA statistics in the basketball table below, when the question and both sides of the rules text name the statistic in Polymarket's own words | | Predict | No new admission: weekly NFL contracts are not single-game props; a bridge alone does not certify prop rules or selections | | ProphetX | Eleven NFL integer-stat families below, each half-point line of a prop's ladder matched on its own; whole-number lines and contradictory selections are refused. Its NFL touchdown scorers (To Score a Touchdown, 2+ and 3+) are matched as touchdowns scored over 0.5, 1.5 and 2.5 | | Pred | NBA full-game player points (` Points Over N`, a half-point line, `yes` over and `no` the line or fewer) when its rules text names the same game, start, threshold and full game including overtime; its other families and leagues are not admitted | | Polymarket US | NFL families below, and NBA and WNBA points, rebounds, assists, threes, steals, blocks and points + rebounds + assists. Each market is "N or more" (`yes`) against fewer (`no`), matched as over N − 0.5, when its rules text names the same player, game, threshold and full game including overtime | | SX Bet, AlphaArcade, Hyperliquid | No verified game player-prop pairing in the audited NFL inventories | | NFL statistic | Kalshi | Polymarket | ProphetX | Polymarket US | | --- | --- | --- | --- | --- | | Passing yards | Yes | Yes | Yes | Yes | | Rushing yards | Yes | Yes | Yes | Yes | | Receiving yards | Yes | Yes | Yes | Yes | | Receptions | Yes | Yes | Yes | Yes | | Passing completions | Yes | Yes | Yes | Yes | | Passing touchdowns | Yes | Yes | Excluded: filing assigns the scorer to the receiver | Yes | | Touchdowns scored (anytime / 2+ / 3+) | Yes | No: rushing and receiving touchdowns only | Yes (To Score a Touchdown, 2+, 3+) | Yes (passing touchdowns excluded) | | Passing attempts | Yes | Yes | Yes | Yes | | Passing interceptions | Yes | No observed family | Yes | Yes | | Rushing attempts | Yes | No observed family | Yes | Yes | | Rushing + receiving yards | Yes | No observed family | Yes | Yes | | Longest reception | Yes | Yes | Yes | Yes | | Longest rush | Yes | No observed family | Yes | Yes | | NBA and WNBA statistic (`metric`) | Kalshi | Polymarket | Polymarket US | Pred | | --- | --- | --- | --- | --- | | Points (`points`) | Yes | Yes | Yes | NBA | | Rebounds (`rebounds`) | Yes | Yes | Yes | No | | Assists (`assists`) | Yes | Yes | Yes | No | | Three-pointers made (`threes`) | Yes | Yes | Yes | No | | Steals (`steals`) | NBA | Yes | Yes | No | | Blocks (`blocks`) | NBA | Yes | Yes | No | | Points + rebounds + assists (`points_rebounds_assists`) | NBA | No observed family | Yes | No | These are the statistics that can match, not a promise that every venue lists a line for each one. Each venue words a statistic its own way, and the check reads exactly that wording: Kalshi's threes titles say "3+ threes" and its rules "3+ made three-pointers", Polymarket's question says "3-Pointers Made", and Polymarket's rebounds rules count "more than 7.5 total rebounds" against "7.5 rebounds or fewer". A market in any other wording isn't matched. Polymarket's touchdowns-scored props count rushing and receiving touchdowns only ("Defensive and special teams touchdowns do not count"), while Kalshi and Polymarket US count every touchdown a player scores except a passing one, so a kick-return touchdown settles them differently and they are not matched. ProphetX lists each prop as a ladder of lines, and every half-point line is matched as its own market, named `::`; a whole-number line is left out. Each line's labels and value must agree on every side of that line. ProphetX's touchdown scorers are `YES`/`NO` markets with no ladder: "To Score a Touchdown", "To Score 2+ Touchdowns" and "To Score 3+ Touchdowns". `YES` is the over side of 0.5, 1.5 or 2.5 touchdowns scored (`side` `yes`) and `NO` the under (`side` `no`), and each market is named by its own `:`. ProphetX's NFL terms, as amended in August 2026, settle the official NFL total touchdowns and credit a passing touchdown to the receiver, which is Kalshi's and Polymarket US's statistic. Its first and last touchdown scorers are other contracts and aren't matched. Predict's player props are weekly contracts rather than single games, so they aren't matched. SX Bet, AlphaArcade and Hyperliquid list no player props that pair with another venue's. A venue's sport tag alone never makes a match: a prop has to name a verified player, game, statistic and line. Venues and ESPN don't always write a suffix the same way. Polymarket, Polymarket US and the Chiefs' published roster name Kenneth Walker, while ESPN calls athlete `4567048` Kenneth Walker III, and Kalshi, Polymarket and Polymarket US list Joe Milton III, whom ESPN lists as Joe Milton. Each of them matches, and the prop is published under ESPN's name and athlete ID. First names differ too. Kalshi, Polymarket and Polymarket US list Gregory Desrosiers, whom ESPN lists as Greg Desrosiers Jr., and Polymarket and Polymarket US list Nicolas Claxton, whom ESPN lists as Nic Claxton. These match the same way. What's listed changes from week to week. Kalshi, Polymarket and Pred list NBA points props for upcoming games. Pred writes its rules into each market, so its rule values are read from that text, as Polymarket's are: a player who doesn't play resolves `No`, overtime counts, a postponed game stays open, and a cancelled one resolves 50-50. It differs from Kalshi and Polymarket on one point: a correction to the official stats made after the game, but before the market resolves, counts on Pred. Polymarket US also writes its rules into each market, one template per sport. Its values differ from the other venues' on three points. A player who doesn't take part (a snap in football, playing time in basketball) settles the market at its last fair market price (`last_fair_market_price`) rather than as a loss for `yes`. A stat correction counts until the market settles (`excluded_after_settlement`). A game rescheduled to within two days of its original time keeps the market open, and one rescheduled later settles it at the last fair market price (`last_fair_market_price_unless_within_two_days`). Overtime counts. Its props join Kalshi's, Polymarket's and Pred's under `same_prop`, and each venue's side of the difference is in the rule matrix. No venue pair has a fully reviewed settlement profile yet, so the default strict mode can return no player props at all. Use `same_prop` to see matched props with their rule differences. Canonical player keys use `espn__`. Same-prop keys identify the base prop; strict keys additionally identify a reviewed settlement group. One base prop can contain several equivalent subsets: strict mode emits each qualifying subset separately and never pulls in an incompatible third venue. Join native market/outcome IDs to [market detail](https://docs.predictorsdk.com/api-reference/getMarket) for current data; this endpoint adds no prices, liquidity, or execution advice. ProphetX market detail converts its Trading API's American-odds offers into probabilities: the cheapest available back offer is the named selection's `ask`, and the opposite selection's ask supplies the complementary `bid`. `price` is the midpoint when both are present, not a last trade or a guaranteed fill. A one-sided book remains one-sided, and an empty book has null quotes. These quote conventions do not establish settlement equivalence or make one line of a ProphetX ladder interchangeable with another. # Game-line rules (https://docs.predictorsdk.com/guides/game-line-rules) How each venue settles a tied game, overtime and a line that lands exactly, summarised on every moneyline, spread and total. Two venues can list the same moneyline and still pay differently. The clearest case is an NFL game that ends level: Kalshi pays each side half, ProphetX voids the contract and returns the stakes. The matched row looks identical; the payout is not. Every moneyline, spread and total on [the sports matching endpoint](https://docs.predictorsdk.com/api-reference/getSportsMatchingMarkets) carries a one-word verdict on that, `settlement_equivalence`, and a small rule matrix behind it that you ask for with `include_rules=true`, so the difference is visible before you trade. Matching itself is unchanged: venues are still paired exactly as before, and a venue that settles a tie differently stays in the row. The matrix is the evidence you use to decide whether a pairing is a hedge. ## The verdict is always there; the rows are opt-in [#the-verdict-is-always-there-the-rows-are-opt-in] | Request | A moneyline, spread or total carries | | --- | --- | | default | `settlement_equivalence` | | `include_rules=true` | `settlement_equivalence` and `rule_comparisons` | The rows are the evidence: each one names every source market, describes the rule in words and links the clause. That makes them about 60% of the bytes of a busy football event, and a page of events with every submarket was about 11 MB with them, large enough to run into the request deadline. So a response leaves them out unless you ask. The usual pattern is to read the verdicts on a page and, for a game whose verdict is `different` or `unverified`, look it up with the rows: ``` GET /v1/matching-markets/sports/lookup?event_id=nfl-pit-no-2026-10-25&include_rules=true ``` `include_rules` reads the same on the list and the lookup. It changes what each event lists and never which events come back, so a `cursor` from one request continues with or without it. It takes one value, an empty value means `false`, and anything that is not a boolean is a `400`. A player prop is not affected: it carries its nine rows whatever `include_rules` says. The SDK parameter is `includeRules` in TypeScript, `include_rules` in Python and `IncludeRules` in Go. ## The three rules [#the-three-rules] With `include_rules=true`, each game line has three rows in `rule_comparisons`, one value per source market (`source_markets[]`). Its summary, `settlement_equivalence`, is there either way. | Rule | What it says | Values | | --- | --- | --- | | `tie` | What the venue does when the game or period ends level | `half_payout` (each side is paid half), `void` (stakes returned), `loses` (the named result loses), `separate_outcome` (the venue lists a tie contract of its own), `not_possible`, `unknown` | | `overtime` | Whether overtime, extra innings or a shootout counts toward the contract | `included`, `excluded`, `not_applicable`, `unknown` | | `push` | What happens when the result lands exactly on a whole-number line | `void`, `loses`, `not_applicable`, `unknown` | `not_possible` means the contract cannot end level: a league that plays on until one side wins (the NBA, WNBA, MLB and NHL) cannot end a full game tied, and a spread or total has no tie result of its own because its line decides it. Only the NFL can end a game level, so that is where `tie` differs in practice. For `push`, `not_applicable` means there is nothing to land on: a moneyline has no line, and a half-point line, which is every line matched today, cannot be landed on exactly. For `overtime`, it means overtime cannot change the result: an NHL game tied after regulation is decided by exactly one goal (sudden-death overtime, or a shootout that adds one goal to the winner's score), so a puck line of more than one goal, such as -1.5, settles the same whether a venue counts overtime or not. Each value comes with a `description` in plain words and, for every known value, an `evidence_url`: the venue's published rules (a Kalshi contract-terms PDF, SX Bet's help center, a ProphetX CFTC filing) or the record that holds the market's own rules text. Where a venue writes no rule but has settled games it decided, the value comes from those settlements and the evidence is the venue's own record of one of them: Predict paid the extra-innings winner of every MLB game that went past nine innings, AlphaArcade paid the full-game winner of every game that went past regulation and paid each side half when an NFL game ended tied, SX Bet voided the moneyline of an NFL game that ended tied, and Pred paid every NFL spread, total and moneyline, and every NBA spread, that overtime decided on the final score. An `unknown` value has a description that says why and no evidence, because there is no clause to point at. ## Reading `settlement_equivalence` [#reading-settlement_equivalence] | Value | Meaning | | --- | --- | | `equivalent` | Every rule is known for every venue and agrees | | `different` | At least one rule is known to differ, even if another rule is unknown | | `unverified` | No difference was found, but a rule is `unknown` for at least one venue | `unknown` never means "no restriction", and an unknown value never makes a row `equivalent`. A venue whose rules say nothing about overtime, for example, leaves the row `unverified` however many other venues agree. A known difference always wins over an unknown, so `different` is never hidden by a venue that is silent. ## An excerpt [#an-excerpt] An NFL moneyline where two venues void a tie and one pays half, as `include_rules=true` returns it (abridged to the `tie` row and three venues): ```json { "settlement_equivalence": "different", "rule_comparisons": [ { "rule": "tie", "label": "Tied game or period", "comparison": "different", "source_values": [ { "provider": "kalshi", "market_id": "...", "value": "half_payout", "description": "The market's rules, or its game's rules, resolve a tied game 50-50.", "evidence_url": "https://api.elections.kalshi.com/trade-api/v2/markets/KXNFLGAME-..." }, { "provider": "prophetx", "market_id": "...", "value": "void", "description": "ProphetX: \"If, after the completion of overtime, the result remains tied, all orders on the outright event winner contract shall be void and collateral shall be returned.\"", "evidence_url": "https://framerusercontent.com/assets/3xBUPoodNIUMWAauxaaccjNRSo.pdf" }, { "provider": "sxbet", "market_id": "...", "value": "void", "description": "SX Bet's help center does not say what a tied NFL game pays, but SX Bet voided the moneyline of the 2026-10-11 Giants at Commanders tie (27-27 after overtime, reported outcome 0).", "evidence_url": "https://api.sx.bet/markets/find?marketHashes=0x..." } ] } ] } ``` Filter rows with `comparison == "different"` for known differences and `comparison == "unverified"` for gaps. A consumer that hedges across venues usually wants `equivalent`, or a `different` whose rows it has read and accepted. ## What it does not do [#what-it-does-not-do] - It never changes which venues are paired, the submarket's `key`, or any identifier. It is published beside the match. (The one overtime rule that does decide a pairing is a second half's or fourth quarter's own, which is in its `key`; the matrix reports the same rule beside it.) - It carries no prices and no payout estimate. A `half_payout` is a rule, not a number. - Agreement is not a complete contract review. Evidence quotes the clauses that were read; a venue can have further terms. - The player-prop matrix is separate: props always carry nine rows, with or without `include_rules`, and the policies on [player-prop matching](https://docs.predictorsdk.com/guides/player-prop-matching). A total's `rules.settlement` still says whether the line was keyed with overtime (so does a second half's or fourth quarter's spread or total that counts it), and the `overtime` row of its matrix never contradicts it. ## Where the rules come from [#where-the-rules-come-from] Kalshi, SX Bet and ProphetX publish rules by product family, so their values are read from those documents. Hyperliquid's NFL game winners all use one published template, which pays 0.5 to each side on a tie, and each market (a game winner, spread or total) states whether overtime counts in its own `countedPlay`, which is read like a market's text. Polymarket, Predict, Pred, Limitless, AlphaArcade and Polymarket US publish their rules in each market's own text, so their values are read from the market's text when it states them (for example "Overtime is included if played" or "If the game ends in a tie, this market will resolve 50-50"). A market whose text is silent is `unknown` for that rule. A full-game line also reads the text of its game beside the market's own: Polymarket's event, and for an NBA spread or total Predict's game description, which says once for every market of the game that the final score includes overtime (Predict's spreads and totals say nothing about it themselves). A period market states its own rule and reads nothing else. The `description` on each value says which it is. # Pagination (https://docs.predictorsdk.com/guides/pagination) Walk long lists page by page with cursors, by hand or with the SDKs. Endpoints that can return long lists answer one page at a time. Each page ends with a `next_cursor`; send it back as `cursor` to get the next page. The cursor is opaque, so don't try to read or build one. ## Endpoints that paginate [#endpoints-that-paginate] | Endpoint | Default `limit` | Max `limit` | |---|---:|---:| | `GET /v1/matching-markets/sports` | 25 | 100 | | `GET /v1/markets` | 25 | 100 | | `GET /v1/polymarket/wallet/positions` | 50 | 100 | | `GET /v1/crypto-prices/binance` | 100 | 100 | A few details: - Wallet positions keep the page size of the first page on every later page, because it travels in the cursor. - Crypto prices are per second, newest first. With no `start_time`, `end_time` or `cursor`, the route answers the single latest price and no next page. Its old `pagination_key` parameter is a `400` that names `cursor`. - `GET /v1/matching-markets/sports/lookup` doesn't paginate. It answers at most 100 IDs in one response, with no `pagination` block, `limit` or `cursor`. ## Response shape [#response-shape] Every paginated response carries its items in `data`, in page order, and a `pagination` block that is always the same: ```json { "pagination": { "limit": 25, "total": 143, "has_more": true, "next_cursor": "eyJzIjoiYWJjMTIzZWYi..." } } ``` | Field | Description | |---|---| | `limit` | Page size used for this response. Wallet positions cursors preserve the first page's size; other endpoints echo the `limit` query param (or the default). Crypto prices report `1` when you send no time range. | | `total` | Total matching items across all pages, or `null` when the route cannot count them: wallet positions and crypto prices, whose upstreams give no total. `0` only ever means an empty result. Use `has_more` and `next_cursor` whatever `total` says. | | `has_more` | `true` when more pages exist beyond this one. | | `next_cursor` | Pass back via the `cursor` query param for the next page. Absent when `has_more` is `false`. | ## Walking every page [#walking-every-page] The SDKs walk the cursor for you. A call to one of the four paginated operations returns a page (TypeScript and Go) or a pager (Python); iterating it visits every item on every page, sends each next `cursor`, and repeats the filters that issued it. With cURL you follow `next_cursor` yourself. **cURL** ```bash # Page 1 curl -H "Authorization: Bearer $API_KEY" \ "https://api.predictorsdk.com/v1/matching-markets/sports?limit=25" # Page 2 (use next_cursor from page 1's response) curl -H "Authorization: Bearer $API_KEY" \ "https://api.predictorsdk.com/v1/matching-markets/sports?limit=25&cursor=eyJzIjoi..." ``` **TypeScript** ```ts import { PredictorSDK } from "@predictorsdk/client"; const allEvents: PredictorSDK.CanonicalSportsEvent[] = []; // Iterating the page walks every page. for await (const event of await client.getSportsMatchingMarkets({ limit: 50 })) { allEvents.push(event); } // Or step through pages yourself: page.data is the current page, // page.response.pagination its pagination block. const page = await client.getSportsMatchingMarkets({ limit: 50 }); while (true) { console.log(page.data.length, page.response.pagination.total); if (!page.hasNextPage()) break; await page.getNextPage(); // moves `page` onto the next page } ``` **Python** ```python # Iterating the pager walks every page. all_events = list(client.get_sports_matching_markets(limit=50)) # Or step through pages yourself: page.items is the current page, # page.response.pagination its pagination block. pager = client.get_sports_matching_markets(limit=50) for page in pager.iter_pages(): print(len(page.items), page.response.pagination.total) ``` **Go** ```go var allEvents []*predictorsdk.CanonicalSportsEvent page, err := client.GetSportsMatchingMarkets(ctx, &predictorsdk.GetSportsMatchingMarketsRequest{ Limit: predictorsdk.Int(50), }) if err != nil { return err } // The iterator walks every page, starting with this one. iterator := page.Iterator() for iterator.Next(ctx) { allEvents = append(allEvents, iterator.Current()) } if err := iterator.Err(); err != nil { return err } // Or step through pages yourself: page.Results is the current page, // page.Response.Pagination its pagination block. GetNextPage returns // core.ErrNoPages after the last page, which is not a failure. ``` Iterating walks every page, so to read only the first, use `page.data` (TypeScript), `pager.items` (Python) or `page.Results` (Go). A manual `cursor` is still accepted, to resume a walk you saved; send it with the same filters. ## Important rules [#important-rules] ### Keep request shape constant across pages [#keep-request-shape-constant-across-pages] The cursor is scoped to the request shape it was issued with. If you change `include_settled`, `provider`, `category`, or any other supported filter mid-traversal, you'll get a `400`: ```json { "code": "invalid_cursor", "message": "pagination cursor does not match the current filters; a cursor continues the provider and category values that issued it, on /v1/markets only", "status_code": 400, "param": "cursor" } ``` On matching-markets the message also quotes the cursor and names the parameters it binds (`include_settled`, `include_submarkets`, `player_prop_match`, `league`, `scheduled_date` and `participant`). Drop the cursor and start fresh from page 1 whenever filters change. ### Wallet positions cursors preserve the page size [#wallet-positions-cursors-preserve-the-page-size] For `GET /v1/polymarket/wallet/positions`, choose `limit` on the first page. When following `next_cursor`, omit `limit` or keep it the same: a different valid `limit` does not change the cursor's page size, and `pagination.limit` reports the size actually used. Keep the same resolved wallet address. If a saved positions cursor returns `400`, start again from the first page: cursors issued before the move to Polymarket's Data API v2 can't be continued. ### Crypto price cursors carry their range [#crypto-price-cursors-carry-their-range] For `GET /v1/crypto-prices/binance`, `next_cursor` carries the `start_time` of the request that issued it, so you can follow it with only `currency`, `limit` and `cursor`: the next page stays inside the range. Sending a different `start_time` with a cursor is a `400`, and `end_time` is ignored when a cursor is sent. Pages run newest first, each the `limit` newest seconds at or before the end of the last one, and walking every page returns every second of the range exactly once. ```bash curl -H "Authorization: Bearer $API_KEY" \ "https://api.predictorsdk.com/v1/crypto-prices/binance?currency=btcusdt&start_time=1775680500000&end_time=1775680559999&limit=30" # next page: cursor only, from the previous pagination.next_cursor curl -H "Authorization: Bearer $API_KEY" \ "https://api.predictorsdk.com/v1/crypto-prices/binance?currency=btcusdt&limit=30&cursor=eyJpZCI6..." ``` ### Market cursors bind to an immutable snapshot [#market-cursors-bind-to-an-immutable-snapshot] `GET /v1/markets` ties a traversal to the catalog as it was on its first page. Venues refreshing in the meantime don't change what the cursor sees, so the remaining pages come from the same catalog and nothing is skipped. An older catalog normally stays available for up to 8 hours, though it can go sooner when storage runs short. After that, an unfinished cursor gets: ```json { "code": "invalid_cursor", "message": "pagination cursor is stale; restart from the first page", "status_code": 400, "param": "cursor" } ``` Restart from page 1 whenever a retained cursor goes stale. ### `snapshot.observed_at` tells you how old the page is [#snapshotobserved_at-tells-you-how-old-the-page-is] The catalog is read from a stored copy, not from the venues, so its rows are as old as the last crawl of each venue, not as old as your request. Every `GET /v1/markets` response says how old: ```json { "data": [ ], "snapshot": { "observed_at": "2026-08-25T13:41:22.108Z" }, "pagination": { "limit": 25, "total": 1393200, "has_more": true, "next_cursor": "..." } } ``` Three things to know: - **It is the oldest time.** Each venue is crawled on its own schedule, so the catalog mixes crawls of different ages, and `observed_at` is when the oldest of them began. Every row is at least that fresh, and most are fresher. - **`?provider=` makes it exact.** With a provider filter, it is that venue's own crawl time, the cheapest way to get a precise age for the rows you care about. - **It doesn't change during a traversal.** Every page of one traversal reports the same value, even while newer crawls land. Start from the first page again to see a newer catalog. `null` means the bound snapshot carries no read time; treat it as unknown age rather than as fresh. ### Cursors are ephemeral [#cursors-are-ephemeral] Treat cursors as short-lived: finish a traversal promptly, don't count on the full 8 hours, and don't share them between clients. Start a new first page when you want the latest data. ## Default behavior [#default-behavior] - **No `limit`** → `limit=25` for matching-markets and markets; wallet positions use `50` on the first page and the cursor's page size on later pages; crypto prices use `100`. - **No `cursor`** → first page. - **`limit > 100`** → `400` with `code: "invalid_parameter"` and `param: "limit"`. - **Malformed `cursor`** → `400` with `code: "invalid_cursor"`. - **Cursor with stale scope** → `400` with `code: "invalid_cursor"`; the message says the cursor does not match the current filters. - **A `/v1/markets` cursor whose catalog is gone** → `400` with `code: "invalid_cursor"` and the message `pagination cursor is stale; restart from the first page`. # Trading fees (https://docs.predictorsdk.com/guides/trading-fees) Work out what a trade really costs on any venue, and compare venues that quote the same price. `GET /v1/markets/{market_id}` returns a `trading_fees` object: what the **venue** charges to trade that market, in one format across all nine venues. It is the prediction market's own fee and has nothing to do with your PredictorSDK plan. ## Why normalized price is not enough [#why-normalized-price-is-not-enough] No venue charges a flat percentage: every fee changes with the price. Two venues can quote the same ask for the same bet and still differ by more than 1% in what the trade costs, and which one is cheaper can flip during the day. A real example from August 2026: an MLB total, Angels at Rangers, over 8.5. Both venues quoted `0.41 / 0.42`: | Market | Fee parameters | Fee on a $100 taker buy | Effective | |---|---|---|---| | `kalshi:KXMLBTOTAL-26AUG212015LAATEX-9` | `quadratic`, rate `0.035` | $2.03 | 203 bps | | same market, after first pitch | `quadratic`, rate `0.07` | $4.06 | 406 bps | | `polymarket:3753849` | `quadratic`, rate `0.05`, exponent `1` | $2.90 | 290 bps | Kalshi was 0.87% cheaper before the game started and 1.16% more expensive after. Both were known in advance: the second from `scheduled_change`. ## The model [#the-model] Every venue's published fee is a **fee per share times the number of shares**. Only the per-share part differs, so one description covers them all. The one exception is Limitless, which publishes its taker fee as a table with no formula: it reports `partial` with no taker leg rather than an invented rate (and a Limitless market with fees turned off reports `published` with both legs at zero). ``` fee = shares × f(price) then apply `rounding` ``` | `model` | `f(price)` | Used by | |---|---|---| | `quadratic` | `rate × (price × (1 − price)) ^ exponent` | Kalshi, Polymarket, AlphaArcade, Pred, Polymarket US | | `min_price` | `rate × min(price, 1 − price)` | Predict | | `notional` | `rate × price` | Hyperliquid | | `none` | `0` | fee-free markets, and most maker legs | `rate` is a decimal fraction, never basis points: `0.07` means 7% of the price term. To compare venues, use the **effective rate on what you spend**, `f(price) / price`. For `quadratic` with `exponent: 1` that is `rate × (1 − price)`, so any single percentage is right at one price and wrong at every other. At `rate: 0.07` it runs from 6.93% at a price of 0.01 down to 0.07% at 0.99. `min_price` is shaped like a **tent, not a curve**: its effective rate stays at `rate` for every price up to 0.5 and only falls above it. Don't treat it as `quadratic`. ```ts import type { PredictorSDK } from "@predictorsdk/client"; // The effective rate on notional, or null when the magnitude is unknown: a // null leg (SX Bet, ProphetX), or a null rate or exponent (Hyperliquid, a // Limitless taker). Never treat null as zero. function effectiveRate( leg: PredictorSDK.MarketDetailFeeLeg | null | undefined, price: number, ): number | null { // A price of 0 or 1 has no notional to divide by. if (leg == null || !(price > 0 && price < 1)) return null; switch (leg.model) { case "none": return 0; case "quadratic": if (leg.rate == null || leg.exponent == null) return null; return (leg.rate * Math.pow(price * (1 - price), leg.exponent)) / price; case "min_price": if (leg.rate == null) return null; return (leg.rate * Math.min(price, 1 - price)) / price; case "notional": return leg.rate ?? null; default: return null; } } ``` Both the `taker` and the `maker` legs are always returned, and you pick one. PredictorSDK can't know which side you will be on, because that depends on an order it hasn't seen. ## Read `availability` before you read the rate [#read-availability-before-you-read-the-rate] `availability` says what is **known**; the legs say what is **charged**. Keeping them apart lets you tell these cases apart: | `availability` | Meaning | Where you'll see it | |---|---|---| | `published` | The full parameter set for this market is known. | Kalshi, Polymarket, Predict, AlphaArcade, Pred, Polymarket US, and any Limitless market whose fees are disabled (`metadata.fee: false`) | | `partial` | Fees may be charged, but something upstream was unreadable. Nothing is guessed. | a Polymarket market with fees on and no readable schedule; a Kalshi market whose pending-change list could not be read; every fee-enabled Limitless market (the taker curve has no closed form, so the taker leg stays null while the explicitly-free maker leg is asserted); a Pred market whose record omits `fee_rate_bps` (absent fee configuration is unconfirmed, not zero) | | `account_specific` | Rates exist but are set per trading account and need your own venue credentials. | SX Bet, Hyperliquid | | `unpublished` | The venue publishes no fee model for this market at all. | reserved | | `unavailable` | Our own bounded parameter fetch failed or timed out, or the venue exposes no per-market fee parameters at all. Identity and pricing are still served. | a degraded Kalshi lookup; every ProphetX market (the Market Maker API publishes no fee fields on the market record) | A **fee-free market is not missing data**: it reports `availability: "published"` with `model: "none"` and `rate: 0`, a stated zero. Polymarket's geopolitics and world-events markets are fee-free, and so are some Kalshi series. For `account_specific` venues, read your own rates from the venue: SX Bet's `GET /user/fees-v3` (signed in), or Hyperliquid's `POST /info {"type":"userFees"}` (public for any address). A `model` with a `null` rate, as Hyperliquid reports, means the shape of the fee is known and its size isn't. ## Two fields that change the arithmetic [#two-fields-that-change-the-arithmetic] **`charge_basis`** says when and on what the fee is taken: - `fill`: when the order fills, on the shares traded at the fill price. - `settlement_profit`: at settlement, on the profit, and only if the position **won**. SX Bet works this way. It trims your expected winnings rather than costing anything up front. - `close_or_settlement`: when a position is closed or settles, never when it is opened. Hyperliquid's outcome markets work this way, so a buy that opens a position costs nothing. **`scheduled_change`** is the next fee change the venue has announced, with the time it takes effect, and is left out when there is none. Kalshi uses these: its MLB games, for example, trade at half the fee rate until first pitch, and the full rate applies from then on, so the fee doubles on a game already trading. Once the change takes effect it becomes the rate in `taker` and `maker`: the same market reports `rate: 0.035` with a pending change before first pitch, and `rate: 0.07` with none after. If `availability` is `partial`, a missing `scheduled_change` means the list of pending changes couldn't be read, not that nothing is coming. ```json "scheduled_change": { "effective_at": "2026-08-22T00:15:00Z", "taker": { "model": "quadratic", "rate": 0.07, "exponent": 1, "rounding": { "direction": "up", "increment": 0.0001 } }, "maker": { "model": "none", "rate": 0, "exponent": null, "rounding": null } } ``` ## Rounding, and where the number will still be slightly off [#rounding-and-where-the-number-will-still-be-slightly-off] `rounding` is the venue's published rule, `{ "direction": "up" | "nearest" | "down", "increment": }`, or `null` where the venue publishes none (Predict). Treat `null` as unknown, not as "no rounding", which would understate small trades. Pred rounds `down`: fees are worked out to six decimal places and rounded down, so a fee smaller than 0.000001 is zero. Kalshi also charges a small rounding fee on each fill, refunded once it adds up to more than $0.01. It depends on how your order splits across fills, so it can't be known before the trade and isn't modelled here. Expect the fee Kalshi charges to be slightly higher than the one you compute when an order fills in many pieces. ## What is deliberately not here [#what-is-deliberately-not-here] These all change what you pay, but they depend on your account or your route rather than on the market, so they are not fields: - **Rebates**, such as Polymarket's maker and taker rebate programs. - **Account discounts**, such as Predict's 10% invite discount. `rate` is the published base rate; a referred account pays less. - **Volume and staking tiers.** Hyperliquid's fee tier depends on your last 14 days of volume and your staked HYPE. - **A market creator's fee.** Each Hyperliquid outcome carries its creator's `deployerFeeScale` in `outcomeMeta`: `1.0` on outcomes from the `out` and `skew` creators, and `0` (no extra fee) on trade.xyz's own. - **Fees added by a third party**, such as a Kalshi broker's fee or a Polymarket front end's builder fee. - **Whether you are maker or taker.** Both legs are returned; which applies depends on your order. ## Cost of the lookup [#cost-of-the-lookup] Polymarket, Predict, AlphaArcade, Pred and Polymarket US carry their fees on the market record the lookup already reads, so `trading_fees` costs nothing extra. SX Bet, Hyperliquid, ProphetX and Limitless need no read at all. Only Kalshi needs extra reads, because its fees live on the market's series and on any scheduled change; those reads are limited and cached. `source` says which case you are in: `market_record`, `series_record` or `venue_schedule`. `observed_at` is when PredictorSDK read the fee. It is `null` for `venue_schedule` (nothing is read at request time) and for `unavailable`. `pricing.observed_at` means the same for the quotes. `pricing.as_of` is the venue's own timestamp, and `pricing.as_of_kind` says whether it tracks the quote or only the market record. Even a quote's own timestamp can be hours old on a quiet market, so judge freshness venue by venue. # Error Handling (https://docs.predictorsdk.com/guides/error-handling) What every error looks like, what each status code means, and when to retry. When a request fails, the API answers with an HTTP status code and a JSON body that says what went wrong. ## Error response format [#error-response-format] Every error, on every endpoint, has the same body: ```json { "code": "invalid_parameter", "message": "invalid provider \"sx_bet\": must be one of kalshi, polymarket, predict, sxbet, hyperliquid, alpha-arcade, prophetx, limitless, pred, polymarket-us", "status_code": 400, "param": "provider" } ``` - **`code`** is a stable machine-readable reason. Branch on it: a code is never renamed or reused, and new ones may be added. - **`message`** says what went wrong and how to fix it, for people. It quotes the value you sent where there is one. Show it or log it; do not parse it. - **`status_code`** repeats the HTTP status, for logs that keep only the body. - **`param`** names the query or path parameter the error concerns, when there is one. - **`errors`** lists every problem when a request has more than one, such as a lookup batch with several bad identifiers. `message` describes the first: ```json { "code": "invalid_parameter", "message": "invalid source_id \"kalshi:yes\": \"yes\" names a side within one kalshi market, not a market; look the market up by its market_id (and 1 more problem; see errors)", "status_code": 400, "param": "source_id", "errors": [ { "param": "source_id", "value": "kalshi:yes", "message": "invalid source_id \"kalshi:yes\": …" }, { "param": "source_id", "value": "bogus:1", "message": "invalid source_id \"bogus:1\": must be {provider}:{id}, …" } ] } ``` A `409` adds `candidates` and a `402` adds `action`, `required_tier` and `current_tier` (see below). ## Request ids [#request-ids] Every response, a success or any error, carries an `X-Request-Id` header: a short opaque string that names that one request. When a call fails or surprises you, quote the id when you contact support and we can find the request from it. Log it beside the status code of any request you may need to ask about. - The API generates it for every request, so a retry of a failed request gets a new one. - It is opaque. Do not parse it or rely on its length or prefix. - The API ignores an `X-Request-Id` you send and does not echo it back, so it is not a way to tag your own requests. Every SDK error carries the response headers; see [Reading the request id](https://docs.predictorsdk.com/guides/error-handling#reading-the-request-id). ## Status codes [#status-codes] | Status | `code` | Meaning | |---|---|---| | `400` | `unknown_parameter` | The endpoint does not read that query parameter. `message` lists the ones it accepts | | `400` | `invalid_parameter` | A value is malformed, empty, out of range, sent more than once, or contradicts another parameter (e.g. a `source_id` without its `{provider}:` prefix) | | `400` | `missing_parameter` | A required parameter is absent | | `400` | `invalid_cursor` | A `cursor` that is malformed, stale, or from another endpoint or filter set. Start again without it | | `400` | `invalid_identifier` | A `market_id` or `event_id` that cannot exist on the provider it resolves to, or whose `{provider}:` prefix names no provider | | `400` | `upstream_rejected` | The venue rejected the request | | `401` | `missing_api_key` | No `Authorization: Bearer ` header. `message` says what was sent instead, if anything | | `401` | `invalid_api_key` | The key is not valid, including any key longer than 256 characters | | `402` | `payment_required` | The free monthly allowance is used up, or a paid subscription has a payment problem. See [Plans & Limits](https://docs.predictorsdk.com/guides/plans) | | `403` | `forbidden` | The key lacks the permission this endpoint requires | | `404` | `route_not_found` | No route matches the path. Check the path before you check the ID | | `404` | `market_not_found` | The market does not exist on the selected or inferred provider | | `404` | `event_not_found` | The event does not exist on the selected or inferred provider | | `404` | `profile_not_found` | No Polymarket profile matches the address or username | | `405` | `method_not_allowed` | The path exists, but not with the HTTP method you sent. The `Allow` header lists the right ones | | `409` | `ambiguous_identifier` | A bare `market_id` or `event_id` exists on more than one venue, so the API won't guess which you meant. See [Always send the provider](https://docs.predictorsdk.com/concepts/events-and-markets#always-send-the-provider) | | `429` | `rate_limited` | The key exceeded its per-minute limit. Honour `Retry-After` | | `429` | `usage_limit_exceeded` | The key used up an allowance that does not refill within the minute | | `429` | `upstream_rate_limited` | The venue rate-limited the request | | `502` | `upstream_unavailable` | PredictorSDK could not get a valid response from a venue or from API-key verification | | `503` | `service_unavailable` | A reader, service dependency, or endpoint configuration is temporarily unavailable | ### Routing errors [#routing-errors] These come from the router rather than from an endpoint. They can arrive on any path, and none needs a valid API key: the router answers before it reads the key. - A path matching **no route** returns `404` with code `route_not_found`. An endpoint's own `404` (`market_not_found`, `event_not_found`) means the identifier was looked up and missed. - A path that exists but **not under the method you sent** returns `405` with code `method_not_allowed`, an `Allow` header naming the methods that path does accept, and the same list in `message`. Every endpoint in these docs is a `GET`. - A request carrying a **query parameter the endpoint does not read** returns `400` with code `unknown_parameter`. One that sends a parameter twice (other than the repeatable `event_id` and `source_id` of the matching lookup), or a filter or identifier with an empty value, returns `400` with code `invalid_parameter`. - A **query string that is not `&`-separated `key=value` pairs** returns `400` with code `invalid_parameter`, quoting the pair at fault: a `;` used as a separator, or a `%` not followed by two hex digits. Percent-encode a literal `;` as `%3B` and `%` as `%25`. A generated SDK method sends its own declared path and method, so it never meets the `404` or `405`. Every operation declares `400`, so the parameter rejections arrive as that operation's typed bad-request error. #### Unknown, repeated and empty parameters are rejected, not ignored [#unknown-repeated-and-empty-parameters-are-rejected-not-ignored] Every parameter you send has to be one the endpoint reads, sent once (the lookup's `event_id` and `source_id` can repeat), and a filter or ID needs a value. This is on purpose and holds on every route: a silently dropped parameter returns a full, unfiltered response that *looks* filtered, which is much harder to spot than an error. For example, `?platform=` on [`GET /v1/markets`](https://docs.predictorsdk.com/api-reference/getMarkets), a natural guess for a venue filter, or `?provider=` left empty by a template: ``` GET /v1/markets?platform=sxbet 400 {"code": "unknown_parameter", "message": "This endpoint does not read the query parameter \"platform\". It accepts: category, cursor, limit, provider.", "status_code": 400, "param": "platform", "errors": [...]} ``` The parameter to use there is `provider`; see [Filtering](https://docs.predictorsdk.com/guides/filtering). The SDKs only send the parameters each method declares, unless you add others through their raw request options. A parameter the API renamed answers the same `400` and names its replacement, so an old request learns the new spelling from the error. `platform` became `provider` on market detail and events, and the crypto-prices `pagination_key` became `cursor`: ``` GET /v1/events/predict:1607914?platform=predict 400 {"code": "unknown_parameter", "message": "This endpoint does not read the query parameter \"platform\". It accepts: provider. \"platform\" was replaced by ?provider={provider}, which takes the same values.", "status_code": 400, "param": "platform", "errors": [...]} ``` ## Rate-limit headers [#rate-limit-headers] Authenticated responses include the current key's rate-limit state: | Header | Unit | Meaning | |---|---|---| | `X-RateLimit-Limit` | requests | Requests allowed in a 60-second window. Equals your plan's `rate_limit_per_min` from `GET /v1/plans` | | `X-RateLimit-Remaining` | requests | **A rough estimate,** not a countdown. See below | | `X-RateLimit-Reset` | Unix seconds | End of the current window. A step function: the same value on every response inside one window | | `Retry-After` | seconds | Whole seconds to wait; included on API-key `429` responses and optional on upstream `429` responses | Responses that need no key (`GET /v1/plans`, and the router's `404` and `405` above) carry none of them, because the limiter only runs once a key is read. `X-RateLimit-Reset` is a Unix epoch in **seconds**, not milliseconds. The generated SDK retry layers accept both the documented seconds form and the legacy millisecond epoch that older deployments emitted. They cap retry delays at 60 seconds and retry `408`, `429`, and `5xx` responses (never a `409`, which answers the same way every time). ### Building a local limiter [#building-a-local-limiter] **Don't pace from `X-RateLimit-Remaining`.** The budget refills gradually as older requests age out, so the value can repeat, skip, or even go up between two requests in a row. It also tends to run ahead of what you have actually spent, most of all during a fast burst, which is exactly when you would look at it. Treat a low value as a reason to slow down, never a high one as permission to speed up. Two things follow that surprise people used to fixed windows: - `X-RateLimit-Reset` is **not a refill moment**. Nothing jumps back to `X-RateLimit-Limit` when it passes. Use it as the longest a `429` can last. - Spending `X-RateLimit-Limit` requests at once and then waiting for `X-RateLimit-Reset` doesn't work. Spread the same budget over a rolling 60 seconds. What works is a sliding window in your own client, which needs nothing from `X-RateLimit-Remaining`: 1. Read `rate_limit_per_min` for your plan from `GET /v1/plans`, or take `X-RateLimit-Limit` from any authenticated response. They are the same number. 2. Keep the times of your last 60 seconds of requests, and hold off when that count reaches the limit. Or space requests `60 / limit` seconds apart, which comes to the same thing without the bookkeeping. 3. When a `429` arrives, back off for `Retry-After` seconds. The `429` and `Retry-After` are the final word, and they always agree with `X-RateLimit-Reset`. ### `402 Payment Required` response [#402-payment-required-response] The response body includes an `action` field so clients can render the right follow-up: | `action` | Meaning | Recommended UX | |---|---|---| | `upgrade_plan` | The caller is on a lower tier than the endpoint requires, or a Free caller exhausted the monthly request allowance. | Route them to `/pricing` or a plan-upgrade CTA. | | `resolve_payment` | The caller had a paid subscription that now has a payment problem (`past_due`, `unpaid`, `paused` or `incomplete`), so the account is back on Free. | Send them to the billing page in the dashboard to fix the payment. | Both variants return the same `402` status and include `required_tier` / `current_tier` so clients can keep a single handler with an `action` switch inside. When a Free caller exhausts the monthly allowance, the response also includes `included_requests_per_month` and `current_period_requests`. ## Handling errors in the SDK [#handling-errors-in-the-sdk] Every SDK throws a typed error for each documented status code. `PaymentRequiredError` (the `402`) carries `action`, `required_tier` and `current_tier` on its body, and `included_requests_per_month` and `current_period_requests` when the free allowance ran out. **TypeScript** ```ts import { PredictorSDK, PredictorSDKClient } from "@predictorsdk/client"; const client = new PredictorSDKClient({ token: "YOUR_API_KEY", }); try { // A venue ID without its provider prefix is a 400. await client.lookupSportsMatchingMarkets({ sourceId: "KXNBAGAME-26OCT20OKCSAS" }); } catch (error) { if (error instanceof PredictorSDK.BadRequestError) { console.log("Bad request:", error.body.code, error.body.message); } else if (error instanceof PredictorSDK.PaymentRequiredError) { if (error.body.action === "resolve_payment") { // The subscription has a payment problem: send them to billing } else { // Over the plan or allowance: send them to /pricing } } else if (error instanceof PredictorSDK.TooManyRequestsError) { // Rate limited: back off, then retry } else if (error instanceof PredictorSDK.UnauthorizedError) { // Invalid API key } } ``` **Python** ```python from predictorsdk import PredictorSDK, BadRequestError, PaymentRequiredError client = PredictorSDK(token="YOUR_API_KEY") try: # A venue ID without its provider prefix is a 400. client.lookup_sports_matching_markets(source_id="KXNBAGAME-26OCT20OKCSAS") except BadRequestError as e: print(f"Bad request: {e.body.code}: {e.body.message}") except PaymentRequiredError as e: if e.body.action == "resolve_payment": # The subscription has a payment problem: send them to billing ... else: # Over the plan or allowance: send them to /pricing ... ``` **Go** ```go import ( "context" "errors" "fmt" predictorclient "github.com/PredictorSDK/sdk-go/client" predictorsdk "github.com/PredictorSDK/sdk-go" "github.com/PredictorSDK/sdk-go/option" ) func main() { client := predictorclient.New(option.WithToken("YOUR_API_KEY")) // A venue ID without its provider prefix is a 400. _, err := client.LookupSportsMatchingMarkets(context.TODO(), &predictorsdk.LookupSportsMatchingMarketsRequest{ SourceID: []*string{predictorsdk.String("KXNBAGAME-26OCT20OKCSAS")}, }) var badReq *predictorsdk.BadRequestError var payReq *predictorsdk.PaymentRequiredError switch { case errors.As(err, &badReq): fmt.Println("Bad request:", badReq.Body.Code, badReq.Body.Message) case errors.As(err, &payReq): if payReq.Body.Action == predictorsdk.PaymentRequiredErrorActionResolvePayment { // The subscription has a payment problem: send them to billing } else { // Over the plan or allowance: send them to /pricing } } } ``` ### Reading the request id [#reading-the-request-id] Each SDK exposes the response headers on its errors, so the id is one lookup away. It is missing only when no response arrived at all (a timeout, or a connection that failed), because then there is no request on our side to name. **TypeScript** ```ts import { PredictorSDKError } from "@predictorsdk/client"; try { await client.getCategories(); } catch (error) { if (error instanceof PredictorSDKError) { // The `x-request-id` response header; undefined when no response arrived. console.log(error.statusCode, error.requestId); } } ``` **Python** ```python from predictorsdk.core.api_error import ApiError try: client.get_categories() except ApiError as e: # `headers` holds the response headers with lower-case names. print(e.status_code, (e.headers or {}).get("x-request-id")) ``` **Go** ```go import ( "errors" "github.com/PredictorSDK/sdk-go/core" ) _, err := client.GetCategories(ctx) var apiErr *core.APIError if errors.As(err, &apiErr) { // Every typed error (BadRequestError, NotFoundError, ...) wraps *core.APIError. fmt.Println(apiErr.StatusCode, apiErr.Header.Get("X-Request-Id")) } ``` ## Retry guidance [#retry-guidance] - **429**: wait for `Retry-After`, or if it is missing, until `X-RateLimit-Reset` (in seconds). Add jitter only when many clients share a key. Don't decide when to send from `X-RateLimit-Remaining`; see [Building a local limiter](https://docs.predictorsdk.com/guides/error-handling#building-a-local-limiter). - **502/503**: a venue or a dependency failed for a moment. Retry with exponential backoff, up to what your application can wait. - **404**: don't retry as is. Check the ID, and pass `provider` when the ID could belong to more than one venue. `route_not_found` means the path itself is wrong; `market_not_found` and `event_not_found` mean the ID wasn't found. - **405**: don't retry as is. Send it again with a method from the `Allow` header. - **409**: don't retry as is; the same request conflicts again. Send it with `?provider=` set to one of the `candidates` in the body, or use the composite `{provider}:{id}` form. - **400/401/402/403**: don't retry. Fix the request, the plan, the permission or the key. # Plans & Limits (https://docs.predictorsdk.com/guides/plans) Request allowances, rate limits and keys for each plan, and how to read the plans from the API. Prices are on [predictorsdk.com/pricing](https://predictorsdk.com/pricing). This page covers what a developer needs: the limits, how they count, and how to read the plans from the API. ## Plans at a glance [#plans-at-a-glance] | Plan | Monthly allowance | Rate limit | API keys | Overage | |---|---:|---:|---:|---:| | Free | 1,000 / mo | 10 / min | 1 | None | | Starter | 100,000 / mo | 60 / min | 3 | $0.25 / 1K | | Pro | 500,000 / mo | 300 / min | 10 | $0.12 / 1K | | Business | 2,000,000 / mo | 1,000 / min | 25 | $0.06 / 1K | | Enterprise | Custom | Custom | Custom | Custom | Every plan can call every endpoint. Plans differ only in how many requests you can make, how fast, and how many keys you can create. - **Monthly allowance** resets each UTC calendar month. - **Rate limit** is per key, over any rolling 60 seconds. Pace from `Retry-After` and `X-RateLimit-Reset`; see [Building a local limiter](https://docs.predictorsdk.com/guides/error-handling#building-a-local-limiter). - **Overage** is billed on paid plans for requests beyond the allowance. Free has no overage: it stops at its cap. Each request counts once against the allowance, including a lookup of many IDs or a list with `include_settled=true`. ## Free plan cap [#free-plan-cap] Free allows **1,000 requests per UTC calendar month**. A request counts when it arrives, before it is handled, so failed and malformed requests count too. Once the cap is reached, every request that needs a key answers `402 Payment Required` with `action: upgrade_plan` until the month ends. The `402` body includes `included_requests_per_month` and `current_period_requests`, so you can show what is left without another call. [Error handling](https://docs.predictorsdk.com/guides/error-handling) has the full `402` shape. ## Reading plans programmatically [#reading-plans-programmatically] `GET /v1/plans` returns every plan, with its price, allowance and features, as JSON. It needs no API key, and the pricing page is built from the same data. ```bash curl https://api.predictorsdk.com/v1/plans ``` The response shape: ```json { "data": [ { "key": "free", "name": "Free", "billing_tier": "free", "trial_days": 0, "tagline": "Every endpoint, to build and try things. No card.", "monthly_price_cents": 0, "included_requests_per_month": 1000, "overage_cents_per_1k": 0, "rate_limit_per_min": 10, "max_keys": 1, "features": ["Every endpoint, on every venue", "..."], "cta_label": "Start free", "highlighted": false, "contact_sales": false } ] } ``` The SDKs call it the same way, with no key needed: ```ts const catalog = await client.getPlans(); ``` Python uses `client.get_plans()` and Go uses `client.GetPlans(ctx)`. ## When you hit 402 [#when-you-hit-402] A `402` body says what to do next in `action`: `upgrade_plan` when the plan or its allowance is too small, `resolve_payment` when an existing subscription has a payment problem. Send the user to the pricing page or the dashboard accordingly. [Error handling](https://docs.predictorsdk.com/guides/error-handling) has example code for each SDK. # Installation (https://docs.predictorsdk.com/sdk/installation) Install the TypeScript, Python or Go client and make your first call. The TypeScript, Python and Go clients are generated from the same [OpenAPI spec](https://docs.predictorsdk.com/openapi.yaml) as these docs, so they cover the same endpoints, each with its own language's naming and types. ## Install [#install] **TypeScript** ```bash npm install @predictorsdk/client ``` **Python** ```bash pip install predictorsdk ``` **Go** ```bash go get github.com/PredictorSDK/sdk-go ``` ## Initialize the client [#initialize-the-client] **TypeScript** ```ts import { PredictorSDKClient } from "@predictorsdk/client"; const client = new PredictorSDKClient({ token: "YOUR_API_KEY", }); ``` **Python** ```python from predictorsdk import PredictorSDK client = PredictorSDK(token="YOUR_API_KEY") ``` **Go** ```go import predictorclient "github.com/PredictorSDK/sdk-go/client" import "github.com/PredictorSDK/sdk-go/option" client := predictorclient.New(option.WithToken("YOUR_API_KEY")) ``` Pass `token`, your API key: every call needs it except `getPlans`, and a call without it answers `401`. Each SDK page lists the other options, such as timeouts and retries. ## Packages [#packages] | Language | Package | Needs | |---|---|---| | TypeScript | [`@predictorsdk/client`](https://www.npmjs.com/package/@predictorsdk/client) | Node.js 18 or later | | Python | [`predictorsdk`](https://pypi.org/project/predictorsdk/) | Python 3.8 or later | | Go | [`github.com/PredictorSDK/sdk-go`](https://github.com/PredictorSDK/sdk-go) | Go 1.21 or later | Next, the [Quickstart](https://docs.predictorsdk.com/quickstart) makes your first calls, and the [TypeScript](https://docs.predictorsdk.com/sdk/typescript), [Python](https://docs.predictorsdk.com/sdk/python) and [Go](https://docs.predictorsdk.com/sdk/go) pages list every method and type. # TypeScript SDK (https://docs.predictorsdk.com/sdk/typescript) Every method, type and option in the PredictorSDK TypeScript client. The TypeScript client is auto-generated from the OpenAPI spec and published as [`@predictorsdk/client`](https://www.npmjs.com/package/@predictorsdk/client) on npm. It needs Node 18 or later and works with both `import` and `require`: the package ships an ES module build and a CommonJS build, each with its own types. ```js // CommonJS const { PredictorSDKClient } = require("@predictorsdk/client"); ``` An app that loads the package both ways gets two copies of it, so an error thrown by one is not an `instanceof` the other's `PredictorSDKError`; use one style. ## Client surfaces [#client-surfaces] | Surface | Endpoint | |---|---| | `client.getPlans()` | `GET /v1/plans` (no auth required) | | `client.getSportsMatchingMarkets(request)` | `GET /v1/matching-markets/sports` | | `client.lookupSportsMatchingMarkets(request)` | `GET /v1/matching-markets/sports/lookup` | | `client.getMarkets(request)` | `GET /v1/markets` | | `client.getCategories()` | `GET /v1/categories` | | `client.getMarket(request)` | `GET /v1/markets/{market_id}` | | `client.getEvent(request)` | `GET /v1/events/{event_id}` | | `client.getBinanceCryptoPrices(request)` | `GET /v1/crypto-prices/binance` | | `client.getPolymarketWallet(request)` | `GET /v1/polymarket/wallet` | | `client.listPolymarketWalletPositions(request)` | `GET /v1/polymarket/wallet/positions` | When you `await` a call to one of the other surfaces, it resolves to the parsed response body. Use `.withRawResponse()` if you also need headers or status metadata. Four surfaces are paginated with a cursor: `getSportsMatchingMarkets`, `getMarkets`, `getBinanceCryptoPrices` and `listPolymarketWalletPositions`. Each resolves to a `Page` that walks the cursor for you; see [Pagination](https://docs.predictorsdk.com/sdk/typescript#pagination). ## Usage [#usage] The examples on this page are ES modules that use top-level `await`: run them in a project whose `package.json` has `"type": "module"`, or from a `.mts` or `.mjs` file. In a CommonJS project, put the calls inside an `async` function. ```ts import { PredictorSDKClient } from "@predictorsdk/client"; const client = new PredictorSDKClient({ token: "YOUR_API_KEY", }); // A paginated call answers a page: page.data holds this page's events. const page = await client.getSportsMatchingMarkets({ league: "nfl" }); for (const event of page.data) { console.log(event.eventId, event.scheduledDate, event.scheduledStart, event.title); } // A lookup finds events by identifier and answers one unpaginated response. const found = await client.lookupSportsMatchingMarkets({ sourceId: "kalshi:KXNBAGAME-26OCT20OKCSAS", }); const categories = await client.getCategories(); const plans = await client.getPlans(); // Public; no API key is sent. ``` ## Pagination [#pagination] A call to `getSportsMatchingMarkets`, `getMarkets`, `getBinanceCryptoPrices` or `listPolymarketWalletPositions` resolves to a `Page`. Iterate it with `for await` to visit every item on every page; the client sends each next `cursor` and repeats the filters that issued it. ```ts // Every event on every page. const page = await client.getSportsMatchingMarkets({ league: "nfl", limit: 50 }); for await (const event of page) { console.log(event.eventId, event.title); } // One provider's markets, a page at a time. The whole catalog is more than half // a million markets, thousands of pages, so filter by provider or category first. const markets = await client.getMarkets({ provider: "prophetx", limit: 100 }); while (true) { console.log(markets.data.length, markets.response.pagination.total); if (!markets.hasNextPage()) break; await markets.getNextPage(); // advances `markets` in place } ``` | Member | Description | |---|---| | `page.data` | The items on the current page | | `page.response` | The whole response body of the current page, such as `snapshot` and `pagination` | | `page.rawResponse` | The current page's HTTP metadata: `status` and `headers` | | `page.hasNextPage()` | `true` while `pagination.nextCursor` is set | | `page.getNextPage()` | Fetches the next page, moves `page` onto it and returns it. On the last page it throws instead, so check `hasNextPage()` first | | `for await (const item of page)` | Visits `page.data`, then every later page | Iterating or calling `getNextPage()` moves the same `Page` forward, so read `page.response` first if you need the first page's `pagination` or `snapshot`. `pagination.total` is a number on `getMarkets` and `getSportsMatchingMarkets`, and `null` on `getBinanceCryptoPrices` and `listPolymarketWalletPositions`, whose upstreams cannot count; follow `hasNextPage()` rather than `total`. See the [Pagination guide](https://docs.predictorsdk.com/guides/pagination) for the cursor rules. ## Configuration [#configuration] | Option | Type | Description | |---|---|---| | `token` | `string` | Your API key (Bearer token) | | `baseUrl` | `string` | Override the base URL | | `environment` | `PredictorSDKEnvironment` | API environment (defaults to `Production`) | | `timeoutInSeconds` | `number` | Request timeout in seconds (default: 60) | | `maxRetries` | `number` | Retries after a `408`, `429` or `5xx` response, or a connection that failed before any response (default: 2) | | `fetch` | `typeof fetch` | Custom fetch implementation | ## Key types [#key-types] ### SportsMatchingListResponse [#sportsmatchinglistresponse] The `page.response` of `getSportsMatchingMarkets`. Contains the matched events in `data`, the `pagination` block, and a `snapshot` freshness block. | Field | Type | Description | |---|---|---| | `data` | `CanonicalSportsEvent[]` | Matched events, soonest scheduled start first, each once. Each carries its full-game moneyline, or every matched submarket with `includeSubmarkets: true` | | `pagination` | `PaginationBlock` | Pagination metadata | | `snapshot` | `SportsMatchingSnapshot` | Matching freshness. `observedAt` is when the oldest venue read behind the snapshot began, or `null` when unknown; check it before treating a missing event as unmatched | ### SportsMatchingLookupResponse [#sportsmatchinglookupresponse] The response from `lookupSportsMatchingMarkets`: one unpaginated response, with no `pagination` block. | Field | Type | Description | |---|---|---| | `data` | `CanonicalSportsEvent[]` | The events the identifiers found, soonest scheduled start first, each once, with every matched submarket unless `includeSubmarkets: false` | | `lookups` | `Record` | Every `eventId` and `sourceId` you sent, as sent, with the events it found | | `snapshot` | `SportsMatchingSnapshot` | Matching freshness, as above | ### SportsMatchingLookupResult [#sportsmatchinglookupresult] | Field | Type | Description | |---|---|---| | `eventIds` | `string[]` | The `eventId`s of the events in `data` that hold the identifier; empty when it found none | ### CanonicalSportsEvent [#canonicalsportsevent] One matched game, as the list and the lookup both return it. | Field | Type | Description | |---|---|---| | `eventId` | `string` | The canonical event key, such as `nba-okc-sas-2026-10-20` | | `sport` | `string` | The sport, such as `basketball` | | `league` | `string` | The league: `nba`, `wnba`, `nfl`, `mlb` or `nhl` | | `title` | `string` | The event title, such as `Oklahoma City Thunder vs. San Antonio Spurs` | | `scheduledStart` | `Date \| null` | When the game starts, when a venue published an exact start time; `null` when venues publish only a date. Millisecond precision, in UTC | | `scheduledDate` | `string` | The game's calendar day in America/New_York, as `YYYY-MM-DD`. Always present, even when `scheduledStart` is `null` | | `participants` | `CanonicalSportsParticipant[]` | The two sides, each with a `key`, a `name` and a `role` (`away` or `home`) | | `submarkets` | `CanonicalSportsSubmarket[]` | The matched submarkets in reading order: the full game, then each half and quarter, and within each the moneyline, spreads, totals, team totals and props | ### PaginationBlock [#paginationblock] | Field | Type | Description | |---|---|---| | `limit` | `number` | Echoes the `limit` request param (default 25, max 100) | | `total` | `number \| null` | Total matching items across all pages; `null` on the routes that cannot count (wallet positions, crypto prices) | | `hasMore` | `boolean` | `true` when more pages exist | | `nextCursor` | `string \| undefined` | The cursor for the next page. A `Page` sends it for you; pass it back as `cursor` only to resume a walk by hand | ### CanonicalSportsSourceMarket [#canonicalsportssourcemarket] One venue market matched to a canonical submarket, with the same fields on every venue. `eventId` is the venue's parent event, for `getEvent`; `marketId` is the market itself, for `getMarket`. Pass `provider` to either call as its `provider`, or use the composite `provider + ":" + id`. Any of `eventId`, `marketId` or `marketSlug`, prefixed with `provider`, finds the event again as `sourceId`. See [Which identifier goes where](https://docs.predictorsdk.com/concepts/events-and-markets#which-identifier-goes-where). | Field | Type | Description | |---|---|---| | `provider` | `CanonicalSportsSourceMarketProvider` | `kalshi`, `polymarket`, `predict`, `sxbet`, `alpha-arcade`, `prophetx`, `pred`, `limitless`, `hyperliquid`, or `polymarket-us` | | `eventId` | `string` | The venue's parent event, for `getEvent`. Not a market ID | | `marketId` | `string` | The market, for `getMarket`. Kalshi lists a game winner as one market per team, so it appears once per team | | `marketName` | `string` | The market's name: the venue's own title, or on SX Bet its two outcome labels, as `getMarket` titles it | | `marketSlug` | `string \| undefined` | The venue's slug, where it has one (Polymarket, AlphaArcade). `sourceId` accepts it; for `getMarket` send `marketId` | | `outcomes` | `CanonicalSportsSourceOutcome[]` | Each side's `outcomeId` and `label`, mapped to a canonical outcome; `getMarket` returns the same IDs. Kalshi and Pred sides are `yes`/`no`, labelled `Yes`/`No` | ### GetSportsMatchingMarketsRequest [#getsportsmatchingmarketsrequest] Pass an empty object `{}` (or nothing) to list every matched event. The filters narrow the list, and `total`, `hasMore` and the cursors describe the filtered set. | Field | Type | Description | |---|---|---| | `limit` | `number` | Events per page (1–100, default 25) | | `cursor` | `string` | Resumes a walk by hand; a `Page` sends it for you. Valid only with the filters that issued it | | `league` | `GetSportsMatchingMarketsRequestLeague` | Only this league: `nba`, `wnba`, `nfl`, `mlb` or `nhl` | | `scheduledDate` | `string` | Only the games on this day, as `YYYY-MM-DD` in America/New_York: the event's `scheduledDate` | | `participant` | `string` | Only events with a participant whose `key` is this (such as `okc`), case-insensitive. Keys are unique only within a league (`la` is the Rams in the NFL and the Sparks in the WNBA), so pair it with `league` | | `includeSettled` | `boolean` | Also read the settled archive: games whose date has passed, and cancelled games (default `false`) | | `includeSubmarkets` | `boolean` | Every matched submarket, or only the full-game moneyline (default `false`) | | `playerPropMatch` | `strict \| same_prop` | Player-prop policy; requires `includeSubmarkets: true` (default `strict`) | ```ts // Today's NBA games: filters compose, and every page keeps them. A game's // scheduled date is its day in America/New_York ("en-CA" formats YYYY-MM-DD). const today = new Intl.DateTimeFormat("en-CA", { timeZone: "America/New_York" }).format(new Date()); const page = await client.getSportsMatchingMarkets({ league: "nba", scheduledDate: today, }); for await (const event of page) { console.log(event.eventId, event.scheduledStart); } ``` ### LookupSportsMatchingMarketsRequest [#lookupsportsmatchingmarketsrequest] Send at least one identifier; with both parameters, at most 100 unique values in all. | Field | Type | Description | |---|---|---| | `eventId` | `string \| string[]` | Canonical event key(s) | | `sourceId` | `string \| string[]` | Venue ID(s) as `{provider}:{id}`: any `marketId`, `marketSlug` or `eventId` a source market publishes, a Polymarket, Predict, AlphaArcade or Hyperliquid outcome token, or a Polymarket condition ID. Case-insensitive | | `includeSettled` | `boolean` | Also search the settled archive: games whose date has passed, and cancelled games (default `false`) | | `includeSubmarkets` | `boolean` | Every matched submarket (default `true` for a lookup), or only the full-game moneyline | | `playerPropMatch` | `strict \| same_prop` | Player-prop policy; requires `includeSubmarkets: true`, the default for a lookup (default `strict`) | ```ts // `lookups` reports what each identifier found; there is no pagination block. const response = await client.lookupSportsMatchingMarkets({ sourceId: ["kalshi:KXNBAGAME-26OCT20OKCSAS", "sxbet:L19766755"], }); for (const [id, found] of Object.entries(response.lookups)) { console.log(id, found.eventIds); } ``` ### MarketsListResponse [#marketslistresponse] The `page.response` of `getMarkets`. Contains `data`, catalog `snapshot` freshness, and `pagination`. | Field | Type | Description | |---|---|---| | `data` | `UnifiedMarket[]` | Array of markets for the current page | | `snapshot` | `MarketsSnapshot` | Catalog freshness; `observedAt` is when the crawl behind the oldest provider snapshot in the bound page scope began | | `pagination` | `PaginationBlock` | Pagination metadata | ### UnifiedMarket [#unifiedmarket] A market from any supported prediction market provider. | Field | Type | Description | |---|---|---| | `id` | `string` | Composite ID in the format `{provider}:{provider_id}` | | `provider` | `UnifiedMarketProvider` | `kalshi`, `polymarket`, `predict`, `sxbet`, `hyperliquid`, `alpha-arcade`, `prophetx`, `limitless`, `pred`, or `polymarket-us` | | `title` | `string` | Human-readable market title/question | | `category` | `MarketCategory` | Canonical top-level category, such as `sports`, `politics`, or `crypto` | ### GetMarketsRequest [#getmarketsrequest] | Field | Type | Description | |---|---|---| | `limit` | `number` | Results per page (1–100, default 25) | | `cursor` | `string` | Resumes a walk by hand; a `Page` sends it for you | | `category` | `MarketCategory` | Optional canonical category filter | | `provider` | `GetMarketsRequestProvider` | Optional canonical provider filter; replay cursors with the same value | ### GetMarketRequest and GetEventRequest [#getmarketrequest-and-geteventrequest] `getMarket` takes a `marketId` and `getEvent` an `eventId`, either as a platform-native ID or the composite `{provider}:{id}`. Both take an optional `provider` (`GetMarketRequestProvider` and `GetEventRequestProvider`) to say which venue an ID belongs to. A bare ID that more than one venue holds answers `409` with the candidates; retry with `provider` set to one of them, or with the composite form. The retired `platform` is not accepted. ```ts const market = await client.getMarket({ marketId: "KXNBAGAME-26OCT20OKCSAS-OKC", provider: "kalshi", }); const event = await client.getEvent({ eventId: "KXNBAGAME-26OCT20OKCSAS", provider: "kalshi" }); console.log(event.provider); // "kalshi": pass it back as `provider` for the nested markets ``` ### EventResponse [#eventresponse] The response from `getEvent`. | Field | Type | Description | |---|---|---| | `eventId` | `string` | Echo of the event ID you sent | | `provider` | `EventResponseProvider` | The venue the ID resolved against, the value to pass as `provider` to `getMarket` for its nested markets | | `title` | `string` | The event title | | `markets` | `EventMarket[]` | The markets nested under the event, each with a platform-native `marketId` and a `title` | | `fanout` | `EventFanout \| undefined` | Present when Kalshi sibling events were merged in; lists which siblings were attempted and which returned nothing | ### GetBinanceCryptoPricesRequest [#getbinancecryptopricesrequest] | Field | Type | Description | |---|---|---| | `currency` | `string` | Binance trading pair, such as `btcusdt` | | `startTime` | `number` | Start of the range, a Unix timestamp in milliseconds (inclusive) | | `endTime` | `number` | End of the range, a Unix timestamp in milliseconds (inclusive) | | `limit` | `number` | Prices per page, 1–100 (default 100 with a time range); more than 100 is a `400` | | `cursor` | `string` | Resumes a walk by hand; a `Page` sends it for you. The retired `paginationKey` is not accepted | ### CryptoPricesResponse [#cryptopricesresponse] The `page.response` of `getBinanceCryptoPrices`: newest prices first, one per second. | Field | Type | Description | |---|---|---| | `data` | `CryptoPriceItem[]` | The prices on this page | | `pagination` | `PaginationBlock` | Pagination metadata; `total` is `null` | ## Raw responses [#raw-responses] Use `.withRawResponse()` on a surface that is not paginated to access HTTP metadata alongside the parsed body: ```ts const raw = await client .lookupSportsMatchingMarkets({ sourceId: "kalshi:KXNBAGAME-26OCT20OKCSAS" }) .withRawResponse(); console.log(raw.rawResponse.status); console.log(raw.rawResponse.headers.get("X-RateLimit-Reset")); // Unix seconds console.log(raw.data.data.length); ``` A paginated surface keeps the metadata on its page: ```ts const page = await client.getSportsMatchingMarkets(); console.log(page.rawResponse.status); console.log(page.rawResponse.headers.get("X-RateLimit-Reset")); // Unix seconds ``` ## Error handling [#error-handling] The SDK throws typed errors for known HTTP error codes: | Error class | Status code | Description | |---|---|---| | `BadRequestError` | 400 | Invalid query parameters | | `UnauthorizedError` | 401 | Missing or invalid API key | | `PaymentRequiredError` | 402 | Monthly allowance exhausted or subscription payment recovery required | | `ForbiddenError` | 403 | Insufficient permissions | | `NotFoundError` | 404 | Market or event not found | | `ConflictError` | 409 | Bare identifier resolves on multiple providers; retry with `provider` or a composite ID | | `TooManyRequestsError` | 429 | Rate limit exceeded | | `BadGatewayError` | 502 | Upstream provider or API-key authorization dependency failure | | `ServiceUnavailableError` | 503 | Service temporarily unavailable | The client retries a `408`, `429` or `5xx` response twice by default (`maxRetries`, on the client or per request). A `429` waits for `Retry-After`, or else until the second-based `X-RateLimit-Reset`. Any other retried status honours `Retry-After` and otherwise backs off exponentially from one second. No wait exceeds 60 seconds, and an `abortSignal` ends a wait as soon as it aborts; `timeoutInSeconds` limits each attempt. A `409` is never retried: send the request again with a `provider` from its `candidates`. A request that gets no response because the connection was refused, reset or closed by the server (Node reports `ECONNREFUSED`, `ECONNRESET` or `UND_ERR_SOCKET` on the error's `cause`) is retried the same way, with the same backoff and the same limit. A timeout and an abort are never retried. Every call is a read, so repeating one is safe. The Go and Python SDKs follow the same policy, and `error.requestId` is the response's [request id](https://docs.predictorsdk.com/guides/error-handling#request-ids). ```ts import { PredictorSDK, PredictorSDKClient } from "@predictorsdk/client"; const client = new PredictorSDKClient({ token: "YOUR_API_KEY", }); try { // A venue ID needs its provider prefix: "kalshi:KXNBAGAME-26OCT20OKCSAS". await client.lookupSportsMatchingMarkets({ sourceId: "KXNBAGAME-26OCT20OKCSAS" }); } catch (error) { if (error instanceof PredictorSDK.BadRequestError) { console.log("Bad request:", error.body.code, error.body.message); } } ``` # Python SDK (https://docs.predictorsdk.com/sdk/python) Every method, type and option in the PredictorSDK Python client. The Python client is auto-generated from the OpenAPI spec and published as [`predictorsdk`](https://pypi.org/project/predictorsdk/) on PyPI. ## Client surfaces [#client-surfaces] | Surface | Endpoint | |---|---| | `client.get_plans()` | `GET /v1/plans` (no auth required) | | `client.get_sports_matching_markets(...)` | `GET /v1/matching-markets/sports` | | `client.lookup_sports_matching_markets(...)` | `GET /v1/matching-markets/sports/lookup` | | `client.get_markets(...)` | `GET /v1/markets` | | `client.get_categories()` | `GET /v1/categories` | | `client.get_market(market_id, ...)` | `GET /v1/markets/{market_id}` | | `client.get_event(event_id, ...)` | `GET /v1/events/{event_id}` | | `client.get_binance_crypto_prices(...)` | `GET /v1/crypto-prices/binance` | | `client.get_polymarket_wallet(...)` | `GET /v1/polymarket/wallet` | | `client.list_polymarket_wallet_positions(...)` | `GET /v1/polymarket/wallet/positions` | The SDK provides both synchronous (`PredictorSDK`) and asynchronous (`AsyncPredictorSDK`) clients. Four surfaces are paginated with a cursor: `get_sports_matching_markets`, `get_markets`, `get_binance_crypto_prices` and `list_polymarket_wallet_positions`. Each returns a pager that walks the cursor for you; see [Pagination](https://docs.predictorsdk.com/sdk/python#pagination). The other surfaces return the parsed response. ## Sync client [#sync-client] ```python from predictorsdk import PredictorSDK client = PredictorSDK(token="YOUR_API_KEY") # A paginated call returns a pager: pager.items holds this page's events. pager = client.get_sports_matching_markets(league="nfl") for event in pager.items: print(event.event_id, event.scheduled_date, event.scheduled_start, event.title) # A lookup finds events by identifier and answers one unpaginated response. found = client.lookup_sports_matching_markets(source_id="kalshi:KXNBAGAME-26OCT20OKCSAS") categories = client.get_categories() plans = client.get_plans() # Public: works without an API key. ``` ## Async client [#async-client] ```python import asyncio from predictorsdk import AsyncPredictorSDK client = AsyncPredictorSDK(token="YOUR_API_KEY") async def main(): pager = await client.get_sports_matching_markets(league="nfl") async for event in pager: # every event on every page print(event.event_id, event.title) asyncio.run(main()) ``` ## Pagination [#pagination] A call to `get_sports_matching_markets`, `get_markets`, `get_binance_crypto_prices` or `list_polymarket_wallet_positions` returns a pager. Iterate it to visit every item on every page; the client sends each next `cursor` and repeats the filters that issued it. On the async client, `await` the call, then use `async for`. ```python # Every event on every page. for event in client.get_sports_matching_markets(league="nfl", limit=50): print(event.event_id, event.title) # One provider's markets, a page at a time. The whole catalog is more than half # a million markets, thousands of pages, so filter by provider or category first. pager = client.get_markets(provider="prophetx", limit=100) for page in pager.iter_pages(): print(len(page.items), page.response.pagination.total) ``` | Member | Description | |---|---| | `pager.items` | The items on this page, as a list | | `pager.response` | This page's whole parsed response, such as `snapshot` and `pagination` | | `pager.has_next` | `True` while `pagination.next_cursor` is set | | `pager.next_page()` | The next page's pager, or `None` after the last page | | `pager.iter_pages()` | The pager of every page in turn, starting with this one | | `for item in pager` | Every item on every page (`async for` on the async client) | A pager is immutable: `next_page()` and `iter_pages()` return new pagers. Iterating the pager itself walks every page, so use `pager.items` when you want only the first. `pagination.total` is an integer on `get_markets` and `get_sports_matching_markets`, and `None` on `get_binance_crypto_prices` and `list_polymarket_wallet_positions`, whose upstreams cannot count; follow `has_next` rather than `total`. See the [Pagination guide](https://docs.predictorsdk.com/guides/pagination) for the cursor rules. ## Configuration [#configuration] | Parameter | Type | Description | |---|---|---| | `token` | `str` | Your API key (Bearer token) | | `base_url` | `str \| None` | Override the base URL | | `environment` | `PredictorSDKEnvironment` | API environment (defaults to `PRODUCTION`) | | `timeout` | `float \| None` | Request timeout in seconds (default: 60) | | `max_retries` | `int \| None` | Retries after a `408`, `429` or `5xx` response, or a connection that failed before any response (default: 2) | | `httpx_client` | `httpx.Client \| None` | Custom httpx client instance | ## Key types [#key-types] These tables describe what the API promises. A response that leaves a field out still parses, and the field reads `None`; see [Responses that leave a field out](https://docs.predictorsdk.com/sdk/python#responses-that-leave-a-field-out). ### SportsMatchingListResponse [#sportsmatchinglistresponse] The `pager.response` of `get_sports_matching_markets`. Contains the matched events in `data`, the `pagination` block, and a `snapshot` freshness block. | Field | Type | Description | |---|---|---| | `data` | `List[CanonicalSportsEvent]` | Matched events, soonest scheduled start first, each once. Each carries its full-game moneyline, or every matched submarket with `include_submarkets=True` | | `pagination` | `PaginationBlock` | Pagination metadata | | `snapshot` | `SportsMatchingSnapshot` | Matching freshness. `observed_at` is when the oldest venue read behind the snapshot began, or `None` when unknown; check it before treating a missing event as unmatched | ### SportsMatchingLookupResponse [#sportsmatchinglookupresponse] The response from `lookup_sports_matching_markets`: one unpaginated response, with no `pagination` block. | Field | Type | Description | |---|---|---| | `data` | `List[CanonicalSportsEvent]` | The events the identifiers found, soonest scheduled start first, each once, with every matched submarket unless `include_submarkets=False` | | `lookups` | `Dict[str, SportsMatchingLookupResult]` | Every `event_id` and `source_id` you sent, as sent, with the events it found | | `snapshot` | `SportsMatchingSnapshot` | Matching freshness, as above | ### SportsMatchingLookupResult [#sportsmatchinglookupresult] | Field | Type | Description | |---|---|---| | `event_ids` | `List[str]` | The `event_id`s of the events in `data` that hold the identifier; empty when it found none | ### CanonicalSportsEvent [#canonicalsportsevent] One matched game, as the list and the lookup both return it. | Field | Type | Description | |---|---|---| | `event_id` | `str` | The canonical event key, such as `nba-okc-sas-2026-10-20` | | `sport` | `str` | The sport, such as `basketball` | | `league` | `str` | The league: `nba`, `wnba`, `nfl`, `mlb` or `nhl` | | `title` | `str` | The event title, such as `Oklahoma City Thunder vs. San Antonio Spurs` | | `scheduled_start` | `datetime \| None` | When the game starts, when a venue published an exact start time; `None` when venues publish only a date. Millisecond precision, in UTC | | `scheduled_date` | `date` | The game's calendar day in America/New_York. Always present, even when `scheduled_start` is `None` | | `participants` | `List[CanonicalSportsParticipant]` | The two sides, each with a `key`, a `name` and a `role` (`away` or `home`) | | `submarkets` | `List[CanonicalSportsSubmarket]` | The matched submarkets in reading order: the full game, then each half and quarter, and within each the moneyline, spreads, totals, team totals and props | ### PaginationBlock [#paginationblock] | Field | Type | Description | |---|---|---| | `limit` | `int` | Echoes the `limit` request param (default 25, max 100) | | `total` | `int \| None` | Total matching items across all pages; `None` on the routes that cannot count (wallet positions, crypto prices) | | `has_more` | `bool` | `True` when more pages exist | | `next_cursor` | `str \| None` | The cursor for the next page. A pager sends it for you; pass it back as `cursor` only to resume a walk by hand | ### CanonicalSportsSourceMarket [#canonicalsportssourcemarket] One venue market matched to a canonical submarket, with the same fields on every venue. `event_id` is the venue's parent event, for `get_event`; `market_id` is the market itself, for `get_market`. Pass `provider` to either call as its `provider`, or use the composite `f"{provider}:{id}"`. Any of `event_id`, `market_id` or `market_slug`, prefixed with `provider`, finds the event again as `source_id`. See [Which identifier goes where](https://docs.predictorsdk.com/concepts/events-and-markets#which-identifier-goes-where). | Field | Type | Description | |---|---|---| | `provider` | `CanonicalSportsSourceMarketProvider` | `kalshi`, `polymarket`, `predict`, `sxbet`, `alpha-arcade`, `prophetx`, `pred`, `limitless`, `hyperliquid`, or `polymarket-us` | | `event_id` | `str` | The venue's parent event, for `get_event`. Not a market ID | | `market_id` | `str` | The market, for `get_market`. Kalshi lists a game winner as one market per team, so it appears once per team | | `market_name` | `str` | The market's name: the venue's own title, or on SX Bet its two outcome labels, as `get_market` titles it | | `market_slug` | `str \| None` | The venue's slug, where it has one (Polymarket, AlphaArcade). `source_id` accepts it; for `get_market` send `market_id` | | `outcomes` | `List[CanonicalSportsSourceOutcome]` | Each side's `outcome_id` and `label`, mapped to a canonical outcome; `get_market` returns the same IDs. Kalshi and Pred sides are `yes`/`no`, labelled `Yes`/`No` | ### get_sports_matching_markets parameters [#get_sports_matching_markets-parameters] All keyword arguments, all optional. The filters narrow the list, and `total`, `has_more` and the cursors describe the filtered set. | Parameter | Type | Description | |---|---|---| | `limit` | `int \| None` | Events per page (1–100, default 25) | | `cursor` | `str \| None` | Resumes a walk by hand; a pager sends it for you. Valid only with the filters that issued it | | `league` | `GetSportsMatchingMarketsRequestLeague \| None` | Only this league: `"nba"`, `"wnba"`, `"nfl"`, `"mlb"` or `"nhl"` | | `scheduled_date` | `datetime.date \| None` | Only the games on this day in America/New_York: the event's `scheduled_date` | | `participant` | `str \| None` | Only events with a participant whose `key` is this (such as `"okc"`), case-insensitive. Keys are unique only within a league (`la` is the Rams in the NFL and the Sparks in the WNBA), so pair it with `league` | | `include_settled` | `bool \| None` | Also read the settled archive: games whose date has passed, and cancelled games (default `False`) | | `include_submarkets` | `bool \| None` | Every matched submarket, or only the full-game moneyline (default `False`) | | `player_prop_match` | `str \| None` | Player-prop policy (`strict` or `same_prop`); requires `include_submarkets=True` | ```python from datetime import datetime from zoneinfo import ZoneInfo # Today's NBA games: filters compose, and every page keeps them. A game's # scheduled date is its day in America/New_York. today = datetime.now(ZoneInfo("America/New_York")).date() for event in client.get_sports_matching_markets(league="nba", scheduled_date=today): print(event.event_id, event.scheduled_start) ``` ### lookup_sports_matching_markets parameters [#lookup_sports_matching_markets-parameters] Send at least one identifier; with both, at most 100 unique values in all. | Parameter | Type | Description | |---|---|---| | `event_id` | `str \| Sequence[str] \| None` | Canonical event key(s) | | `source_id` | `str \| Sequence[str] \| None` | Venue ID(s) as `{provider}:{id}`: any `market_id`, `market_slug` or `event_id` a source market publishes, a Polymarket, Predict, AlphaArcade or Hyperliquid outcome token, or a Polymarket condition ID. Case-insensitive | | `include_settled` | `bool \| None` | Also search the settled archive: games whose date has passed, and cancelled games (default `False`) | | `include_submarkets` | `bool \| None` | Every matched submarket (default `True` for a lookup), or only the full-game moneyline | | `player_prop_match` | `str \| None` | Player-prop policy (`strict` or `same_prop`); requires `include_submarkets=True`, the default for a lookup | ```python # `lookups` reports what each identifier found; there is no pagination block. response = client.lookup_sports_matching_markets( source_id=["kalshi:KXNBAGAME-26OCT20OKCSAS", "sxbet:L19766755"] ) for identifier, found in response.lookups.items(): print(identifier, found.event_ids) ``` ### MarketsListResponse [#marketslistresponse] The `pager.response` of `get_markets`. Contains `data`, catalog `snapshot` freshness, and `pagination`. | Field | Type | Description | |---|---|---| | `data` | `List[UnifiedMarket]` | Array of markets for the current page | | `snapshot` | `MarketsSnapshot` | Catalog freshness; `observed_at` is when the crawl behind the oldest provider snapshot in the bound page scope began | | `pagination` | `PaginationBlock` | Pagination metadata | ### UnifiedMarket [#unifiedmarket] A market from any supported prediction market provider. | Field | Type | Description | |---|---|---| | `id` | `str` | Composite ID in the format `{provider}:{provider_id}` | | `provider` | `UnifiedMarketProvider` | `kalshi`, `polymarket`, `predict`, `sxbet`, `hyperliquid`, `alpha-arcade`, `prophetx`, `limitless`, `pred`, or `polymarket-us` | | `title` | `str` | Human-readable market title/question | | `category` | `MarketCategory` | Canonical top-level category, such as `sports`, `politics`, or `crypto` | ### get_markets parameters [#get_markets-parameters] | Parameter | Type | Description | |---|---|---| | `limit` | `int \| None` | Results per page (1–100, default 25) | | `cursor` | `str \| None` | Resumes a walk by hand; a pager sends it for you | | `category` | `MarketCategory \| None` | Optional canonical category filter | | `provider` | `GetMarketsRequestProvider \| None` | Optional canonical provider filter; replay cursors with the same value | ### get_market and get_event parameters [#get_market-and-get_event-parameters] `get_market(market_id, ...)` and `get_event(event_id, ...)` take the ID as their first argument, either platform-native or the composite `{provider}:{id}`. Both take an optional `provider` keyword (`GetMarketRequestProvider` and `GetEventRequestProvider`) to say which venue an ID belongs to. A bare ID that more than one venue holds raises `ConflictError` with the candidates; retry with `provider` set to one of them, or with the composite form. The retired `platform` is not accepted. ```python market = client.get_market("KXNBAGAME-26OCT20OKCSAS-OKC", provider="kalshi") event = client.get_event("KXNBAGAME-26OCT20OKCSAS", provider="kalshi") print(event.provider) # "kalshi": pass it back as `provider` for the nested markets ``` ### EventResponse [#eventresponse] The response from `get_event`. | Field | Type | Description | |---|---|---| | `event_id` | `str` | Echo of the event ID you sent | | `provider` | `EventResponseProvider` | The venue the ID resolved against, the value to pass as `provider` to `get_market` for its nested markets | | `title` | `str` | The event title | | `markets` | `List[EventMarket]` | The markets nested under the event, each with a platform-native `market_id` and a `title` | | `fanout` | `EventFanout \| None` | Present when Kalshi sibling events were merged in; lists which siblings were attempted and which returned nothing | ### get_binance_crypto_prices parameters [#get_binance_crypto_prices-parameters] | Parameter | Type | Description | |---|---|---| | `currency` | `str` | Binance trading pair, such as `btcusdt` | | `start_time` | `int \| None` | Start of the range, a Unix timestamp in milliseconds (inclusive) | | `end_time` | `int \| None` | End of the range, a Unix timestamp in milliseconds (inclusive) | | `limit` | `int \| None` | Prices per page, 1–100 (default 100 with a time range); more than 100 is a `400` | | `cursor` | `str \| None` | Resumes a walk by hand; a pager sends it for you. The retired `pagination_key` is not accepted | ### CryptoPricesResponse [#cryptopricesresponse] The `pager.response` of `get_binance_crypto_prices`: newest prices first, one per second. | Field | Type | Description | |---|---|---| | `data` | `List[CryptoPriceItem]` | The prices on this page | | `pagination` | `PaginationBlock` | Pagination metadata; `total` is `None` | ## Raw responses [#raw-responses] Use `with_raw_response` on a surface that is not paginated to access HTTP metadata alongside the parsed body: ```python raw = client.with_raw_response.lookup_sports_matching_markets( source_id="kalshi:KXNBAGAME-26OCT20OKCSAS" ) print(raw.status_code) print(raw.headers) print(len(raw.data.data)) ``` A paginated surface returns its pager from `with_raw_response` too, and a pager carries no status or headers; for those, send the request through your own `httpx_client` and read its responses there. ## Responses that leave a field out [#responses-that-leave-a-field-out] The client reads a response without validating it against the spec, as the TypeScript and Go clients do. A field the spec marks required that a response does not carry reads `None` instead of raising an error, so a call against an API that is a release ahead of or behind your SDK still returns everything the response did carry. Older SDK releases raised a `ParsingError` in this case. - A value of an unexpected type is passed through as the API sent it. - A field the SDK does not know is kept as an attribute on its model. - Dates and datetimes are still parsed to `date` and `datetime`, and nested objects are still the generated models, so `isinstance` checks and attribute access work as before. Because the types above describe what the API promises, check the fields you depend on. `pager.response.snapshot` can be `None`, and so can `pager.items` when a page carries no `data`: ```python pager = client.get_sports_matching_markets() snapshot = pager.response.snapshot if snapshot is not None and snapshot.observed_at is not None: print(snapshot.observed_at) for event in pager.items or []: print(event.event_id) ``` An error response whose body does not match `ErrorResponse` still raises the typed error for its status, with `e.body.code` and `e.body.message` reading `None` for whatever the body did not carry. ## Error handling [#error-handling] The SDK raises typed exceptions for known HTTP error codes: | Error class | Status code | Description | |---|---|---| | `BadRequestError` | 400 | Invalid query parameters | | `UnauthorizedError` | 401 | Missing or invalid API key | | `PaymentRequiredError` | 402 | Monthly allowance exhausted or subscription payment recovery required | | `ForbiddenError` | 403 | Insufficient permissions | | `NotFoundError` | 404 | Market or event not found | | `ConflictError` | 409 | Bare identifier resolves on multiple providers; retry with `provider` or a composite ID | | `TooManyRequestsError` | 429 | Rate limit exceeded | | `BadGatewayError` | 502 | Upstream provider or API-key authorization dependency failure | | `ServiceUnavailableError` | 503 | Service temporarily unavailable | The client retries a `408`, `429` or `5xx` response twice by default (`max_retries`, on the client or in `request_options`). A `429` waits for `Retry-After`, or else until the second-based `X-RateLimit-Reset`. Any other retried status honours `Retry-After` and otherwise backs off exponentially from one second. No wait exceeds 60 seconds. A `409` is never retried: send the request again with a `provider` from its `candidates`. A request that gets no response because the connection was refused, reset or closed by the server is retried the same way, with the same backoff and the same limit. A timeout is never retried, and cancelling an async call ends a wait at once. Every call is a read, so repeating one is safe. The Go and TypeScript SDKs follow the same policy, and every response and error carries the same [request id](https://docs.predictorsdk.com/guides/error-handling#request-ids). ```python from predictorsdk import PredictorSDK, BadRequestError client = PredictorSDK(token="YOUR_API_KEY") try: # A venue ID needs its provider prefix: "kalshi:KXNBAGAME-26OCT20OKCSAS". client.lookup_sports_matching_markets(source_id="KXNBAGAME-26OCT20OKCSAS") except BadRequestError as e: print(f"Bad request: {e.body.code}: {e.body.message}") ``` # Go SDK (https://docs.predictorsdk.com/sdk/go) Every method, type and option in the PredictorSDK Go client. The Go client is auto-generated from the OpenAPI spec and published as [`github.com/PredictorSDK/sdk-go`](https://github.com/PredictorSDK/sdk-go). ## Client surfaces [#client-surfaces] | Surface | Endpoint | |---|---| | `client.GetPlans(ctx)` | `GET /v1/plans` (no auth required) | | `client.GetSportsMatchingMarkets(ctx, request)` | `GET /v1/matching-markets/sports` | | `client.LookupSportsMatchingMarkets(ctx, request)` | `GET /v1/matching-markets/sports/lookup` | | `client.GetMarkets(ctx, request)` | `GET /v1/markets` | | `client.GetCategories(ctx)` | `GET /v1/categories` | | `client.GetMarket(ctx, request)` | `GET /v1/markets/{market_id}` | | `client.GetEvent(ctx, request)` | `GET /v1/events/{event_id}` | | `client.GetBinanceCryptoPrices(ctx, request)` | `GET /v1/crypto-prices/binance` | | `client.GetPolymarketWallet(ctx, request)` | `GET /v1/polymarket/wallet` | | `client.ListPolymarketWalletPositions(ctx, request)` | `GET /v1/polymarket/wallet/positions` | Four surfaces are paginated with a cursor: `GetSportsMatchingMarkets`, `GetMarkets`, `GetBinanceCryptoPrices` and `ListPolymarketWalletPositions`. Each returns a `*core.Page` that walks the cursor for you; see [Pagination](https://docs.predictorsdk.com/sdk/go#pagination). The other surfaces return the parsed response. ## Usage [#usage] ```go import ( "context" "fmt" predictorsdk "github.com/PredictorSDK/sdk-go" predictorclient "github.com/PredictorSDK/sdk-go/client" "github.com/PredictorSDK/sdk-go/option" ) func main() { client := predictorclient.New(option.WithToken("YOUR_API_KEY")) // A paginated call returns a page: page.Results holds this page's events. page, err := client.GetSportsMatchingMarkets(context.TODO(), &predictorsdk.GetSportsMatchingMarketsRequest{ League: predictorsdk.GetSportsMatchingMarketsRequestLeagueNfl.Ptr(), }) if err != nil { panic(err) } for _, event := range page.Results { fmt.Println(event.EventID, event.ScheduledDate.Format("2006-01-02"), event.Title) } // A lookup finds events by identifier and answers one unpaginated response. found, err := client.LookupSportsMatchingMarkets(context.TODO(), &predictorsdk.LookupSportsMatchingMarketsRequest{ SourceID: []*string{predictorsdk.String("kalshi:KXNBAGAME-26OCT20OKCSAS")}, }) if err != nil { panic(err) } fmt.Println(found.Lookups) categories, _ := client.GetCategories(context.TODO()) plans, _ := client.GetPlans(context.TODO()) // Public: works without an API key. fmt.Println(categories, plans) } ``` ## Pagination [#pagination] A call to `GetSportsMatchingMarkets`, `GetMarkets`, `GetBinanceCryptoPrices` or `ListPolymarketWalletPositions` returns a `*core.Page`. Its iterator visits every item on every page; the client sends each next cursor and repeats the filters that issued it. Pass `nil` as the request to use every default. ```go import ( "errors" "github.com/PredictorSDK/sdk-go/core" ) // Every event on every page. page, err := client.GetSportsMatchingMarkets(ctx, &predictorsdk.GetSportsMatchingMarketsRequest{ League: predictorsdk.GetSportsMatchingMarketsRequestLeagueNfl.Ptr(), Limit: predictorsdk.Int(50), }) if err != nil { return err } iterator := page.Iterator() for iterator.Next(ctx) { event := iterator.Current() fmt.Println(event.EventID, event.Title) } if err := iterator.Err(); err != nil { return err } // One provider's markets, a page at a time. The whole catalog is more than half // a million markets, thousands of pages, so filter by provider or category first. markets, err := client.GetMarkets(ctx, &predictorsdk.GetMarketsRequest{ Provider: predictorsdk.GetMarketsRequestProviderProphetx.Ptr(), Limit: predictorsdk.Int(100), }) for err == nil { fmt.Println(len(markets.Results), *markets.Response.Pagination.Total) markets, err = markets.GetNextPage(ctx) } if !errors.Is(err, core.ErrNoPages) { // ErrNoPages marks the end, not a failure return err } ``` | Member | Description | |---|---| | `page.Results` | The items on the current page | | `page.Response` | The whole response of the current page, such as `Snapshot` and `Pagination` | | `page.StatusCode`, `page.Header` | The current page's HTTP metadata | | `page.GetNextPage(ctx)` | The next page, or `core.ErrNoPages` after the last one | | `page.Iterator()` | An iterator from this page on: `Next(ctx)`, `Current()` and `Err()` | `Pagination.Total` is a `*int`: set on `GetMarkets` and `GetSportsMatchingMarkets`, and `nil` on `GetBinanceCryptoPrices` and `ListPolymarketWalletPositions`, whose upstreams cannot count. Follow `GetNextPage` rather than `Total`. See the [Pagination guide](https://docs.predictorsdk.com/guides/pagination) for the cursor rules. ## Configuration [#configuration] Options are passed to `predictorclient.New()`: | Option | Description | |---|---| | `option.WithToken(token)` | Your API key (Bearer token) | | `option.WithBaseURL(url)` | Override the base URL | | `option.WithHTTPClient(client)` | Custom `*http.Client`. The default client sets no timeout, so set one here or give each request a `context` deadline. | | `option.WithHTTPHeader(header)` | Additional HTTP headers | | `option.WithMaxAttempts(n)` | Attempts for a `408`, `429` or `5xx` response or a connection that failed before any response, the first included (default: 3) | | `option.WithoutRetries()` | Send each request once | ## Key types [#key-types] All types live in the root `predictorsdk` package: ```go import predictorsdk "github.com/PredictorSDK/sdk-go" ``` ### SportsMatchingListResponse [#sportsmatchinglistresponse] The `Response` of the page `GetSportsMatchingMarkets` returns. | Field | Type | Description | |---|---|---| | `Data` | `[]*CanonicalSportsEvent` | Matched events, soonest scheduled start first, each once. Each carries its full-game moneyline, or every matched submarket with `IncludeSubmarkets` set to `true` | | `Pagination` | `*PaginationBlock` | Pagination metadata | | `Snapshot` | `*SportsMatchingSnapshot` | Matching freshness. `ObservedAt` is when the oldest venue read behind the snapshot began, or `nil` when unknown; check it before treating a missing event as unmatched | ### SportsMatchingLookupResponse [#sportsmatchinglookupresponse] The response from `LookupSportsMatchingMarkets`: one unpaginated response, with no `Pagination` block. | Field | Type | Description | |---|---|---| | `Data` | `[]*CanonicalSportsEvent` | The events the identifiers found, soonest scheduled start first, each once, with every matched submarket unless `IncludeSubmarkets` is `false` | | `Lookups` | `map[string]*SportsMatchingLookupResult` | Every `EventID` and `SourceID` you sent, as sent, with the events it found | | `Snapshot` | `*SportsMatchingSnapshot` | Matching freshness, as above | ### SportsMatchingLookupResult [#sportsmatchinglookupresult] | Field | Type | Description | |---|---|---| | `EventIDs` | `[]string` | The `EventID`s of the events in `Data` that hold the identifier; empty when it found none | ### CanonicalSportsEvent [#canonicalsportsevent] One matched game, as the list and the lookup both return it. | Field | Type | Description | |---|---|---| | `EventID` | `string` | The canonical event key, such as `nba-okc-sas-2026-10-20` | | `Sport` | `string` | The sport, such as `basketball` | | `League` | `string` | The league: `nba`, `wnba`, `nfl`, `mlb` or `nhl` | | `Title` | `string` | The event title, such as `Oklahoma City Thunder vs. San Antonio Spurs` | | `ScheduledStart` | `*time.Time` | When the game starts, when a venue published an exact start time; `nil` when venues publish only a date. Millisecond precision, in UTC | | `ScheduledDate` | `time.Time` | The game's calendar day in America/New_York, as a date at midnight UTC: format it with `Format("2006-01-02")`. Always set, even when `ScheduledStart` is `nil` | | `Participants` | `[]*CanonicalSportsParticipant` | The two sides, each with a `Key`, a `Name` and a `Role` (`away` or `home`) | | `Submarkets` | `[]*CanonicalSportsSubmarket` | The matched submarkets in reading order: the full game, then each half and quarter, and within each the moneyline, spreads, totals, team totals and props | ### PaginationBlock [#paginationblock] | Field | Type | Description | |---|---|---| | `Limit` | `int` | Echoes the `limit` request param (default 25, max 100) | | `Total` | `*int` | Total matching items across all pages; `nil` on the routes that cannot count (wallet positions, crypto prices) | | `HasMore` | `bool` | `true` when more pages exist | | `NextCursor` | `*string` | The cursor for the next page. A page sends it for you; pass it back as `Cursor` only to resume a walk by hand | ### CanonicalSportsSourceMarket [#canonicalsportssourcemarket] One venue market matched to a canonical submarket, with the same fields on every venue. `EventID` is the venue's parent event, for `GetEvent`; `MarketID` is the market itself, for `GetMarket`. Pass `Provider` to either call as its `Provider` by converting it, `predictorsdk.GetMarketRequestProvider(m.Provider).Ptr()` (or `GetEventRequestProvider` for `GetEvent`), or use the composite `string(m.Provider) + ":" + m.MarketID`. Any of `EventID`, `MarketID` or `MarketSlug`, prefixed with `Provider`, finds the event again as `SourceID`; so does a Polymarket, Predict, AlphaArcade or Hyperliquid `OutcomeID`. See [Which identifier goes where](https://docs.predictorsdk.com/concepts/events-and-markets#which-identifier-goes-where). | Field | Type | Description | |---|---|---| | `Provider` | `CanonicalSportsSourceMarketProvider` | `kalshi`, `polymarket`, `predict`, `sxbet`, `alpha-arcade`, `prophetx`, `pred`, `limitless`, `hyperliquid`, or `polymarket-us` | | `EventID` | `string` | The venue's parent event, for `GetEvent`. Not a market ID | | `MarketID` | `string` | The market, for `GetMarket`. Kalshi lists a game winner as one market per team, so it appears once per team | | `MarketName` | `string` | The market's name: the venue's own title, or on SX Bet its two outcome labels, as `GetMarket` titles it | | `MarketSlug` | `*string` | The venue's slug, where it has one (Polymarket, AlphaArcade). `SourceID` accepts it; for `GetMarket` send `MarketID` | | `Outcomes` | `[]*CanonicalSportsSourceOutcome` | Each side's `OutcomeID` and `Label`, mapped to a canonical outcome; `GetMarket` returns the same IDs. Kalshi and Pred sides are `yes`/`no`, labelled `Yes`/`No` | ### GetSportsMatchingMarketsRequest [#getsportsmatchingmarketsrequest] Pass `nil` to list every matched event with defaults. The filters narrow the list, and `Total`, `HasMore` and the cursors describe the filtered set. | Field | Type | Description | |---|---|---| | `Limit` | `*int` | Events per page (1–100, default 25) | | `Cursor` | `*string` | Resumes a walk by hand; a page sends it for you. Valid only with the filters that issued it | | `League` | `*GetSportsMatchingMarketsRequestLeague` | Only this league: `GetSportsMatchingMarketsRequestLeagueNba`, `...Wnba`, `...Nfl`, `...Mlb` or `...Nhl`, each with a `Ptr()` | | `ScheduledDate` | `*time.Time` | Only the games on this day in America/New_York, sent as `YYYY-MM-DD`: the event's `ScheduledDate`. Build one with `predictorsdk.Time(predictorsdk.MustParseDate("2026-10-15"))` | | `Participant` | `*string` | Only events with a participant whose `Key` is this (such as `okc`), case-insensitive. Keys are unique only within a league (`la` is the Rams in the NFL and the Sparks in the WNBA), so pair it with `League` | | `IncludeSettled` | `*bool` | Also read the settled archive: games whose date has passed, and cancelled games (default `false`) | | `IncludeSubmarkets` | `*bool` | Every matched submarket, or only the full-game moneyline (default `false`) | | `PlayerPropMatch` | `*GetSportsMatchingMarketsRequestPlayerPropMatch` | Player-prop policy, e.g. `predictorsdk.GetSportsMatchingMarketsRequestPlayerPropMatchSameProp.Ptr()`; requires `IncludeSubmarkets` | ### LookupSportsMatchingMarketsRequest [#lookupsportsmatchingmarketsrequest] Send at least one identifier; with both, at most 100 unique values in all. `EventID` and `SourceID` take one `*string` per identifier, so a lookup is `SourceID: []*string{predictorsdk.String("kalshi:KXNBAGAME-26OCT20OKCSAS")}`. | Field | Type | Description | |---|---|---| | `EventID` | `[]*string` | Canonical event key(s) | | `SourceID` | `[]*string` | Venue ID(s) as `{provider}:{id}`: any `MarketID`, `MarketSlug` or `EventID` a source market publishes, a Polymarket, Predict, AlphaArcade or Hyperliquid outcome token, or a Polymarket condition ID. Case-insensitive | | `IncludeSettled` | `*bool` | Also search the settled archive: games whose date has passed, and cancelled games (default `false`) | | `IncludeSubmarkets` | `*bool` | Every matched submarket (default `true` for a lookup), or only the full-game moneyline | | `PlayerPropMatch` | `*LookupSportsMatchingMarketsRequestPlayerPropMatch` | Player-prop policy; requires `IncludeSubmarkets`, the default for a lookup | `Lookups` then reports what each identifier found: ```go for identifier, found := range response.Lookups { fmt.Println(identifier, found.EventIDs) } ``` ### MarketsListResponse [#marketslistresponse] The `Response` of the page `GetMarkets` returns. Contains `Data`, catalog `Snapshot` freshness, and `Pagination`. | Field | Type | Description | |---|---|---| | `Data` | `[]*UnifiedMarket` | Array of markets for the current page | | `Snapshot` | `*MarketsSnapshot` | Catalog freshness; `ObservedAt` is when the crawl behind the oldest provider snapshot in the bound page scope began | | `Pagination` | `*PaginationBlock` | Pagination metadata | ### UnifiedMarket [#unifiedmarket] A market from any supported prediction market provider. | Field | Type | Description | |---|---|---| | `ID` | `string` | Composite ID in the format `{provider}:{provider_id}` | | `Provider` | `UnifiedMarketProvider` | `kalshi`, `polymarket`, `predict`, `sxbet`, `hyperliquid`, `alpha-arcade`, `prophetx`, `limitless`, `pred`, or `polymarket-us` | | `Title` | `string` | Human-readable market title/question | | `Category` | `MarketCategory` | Canonical top-level category, such as `sports`, `politics`, or `crypto` | ### GetMarketsRequest [#getmarketsrequest] Pass `nil` to fetch all markets with defaults, or provide pagination fields. | Field | Type | Description | |---|---|---| | `Limit` | `*int` | Results per page (1–100, default 25) | | `Cursor` | `*string` | Resumes a walk by hand; a page sends it for you | | `Category` | `*MarketCategory` | Optional canonical category filter | | `Provider` | `*GetMarketsRequestProvider` | Optional canonical provider filter; replay cursors with the same value | ### GetMarketRequest and GetEventRequest [#getmarketrequest-and-geteventrequest] `GetMarketRequest.MarketID` and `GetEventRequest.EventID` take an ID that is either platform-native or the composite `{provider}:{id}`. Both requests take an optional `Provider` (`*GetMarketRequestProvider` and `*GetEventRequestProvider`, such as `predictorsdk.GetMarketRequestProviderKalshi.Ptr()`) to say which venue an ID belongs to. A bare ID that more than one venue holds answers `409` as a `*ConflictError` listing the candidates; retry with `Provider` set to one of them, or with the composite form. The retired `Platform` is not accepted. ```go market, err := client.GetMarket(ctx, &predictorsdk.GetMarketRequest{ MarketID: "KXNBAGAME-26OCT20OKCSAS-OKC", Provider: predictorsdk.GetMarketRequestProviderKalshi.Ptr(), }) if err != nil { return err } event, err := client.GetEvent(ctx, &predictorsdk.GetEventRequest{ EventID: "KXNBAGAME-26OCT20OKCSAS", Provider: predictorsdk.GetEventRequestProviderKalshi.Ptr(), }) if err != nil { return err } // event.Provider is "kalshi": pass it back as Provider for the nested markets. fmt.Println(market.ID, event.Provider) ``` ### EventResponse [#eventresponse] The response from `GetEvent`. | Field | Type | Description | |---|---|---| | `EventID` | `string` | Echo of the event ID you sent | | `Provider` | `EventResponseProvider` | The venue the ID resolved against, the value to pass as `Provider` to `GetMarket` for its nested markets | | `Title` | `string` | The event title | | `Markets` | `[]*EventMarket` | The markets nested under the event, each with a platform-native `MarketID` and a `Title` | | `Fanout` | `*EventFanout` | Present when Kalshi sibling events were merged in; lists which siblings were attempted and which returned nothing | ### GetBinanceCryptoPricesRequest [#getbinancecryptopricesrequest] | Field | Type | Description | |---|---|---| | `Currency` | `string` | Binance trading pair, such as `btcusdt` | | `StartTime` | `*int64` | Start of the range, a Unix timestamp in milliseconds (inclusive) | | `EndTime` | `*int64` | End of the range, a Unix timestamp in milliseconds (inclusive) | | `Limit` | `*int` | Prices per page, 1–100 (default 100 with a time range); more than 100 is a `400` | | `Cursor` | `*string` | Resumes a walk by hand; a page sends it for you. The retired `PaginationKey` is not accepted | ### CryptoPricesResponse [#cryptopricesresponse] The `Response` of the page `GetBinanceCryptoPrices` returns: newest prices first, one per second. | Field | Type | Description | |---|---|---| | `Data` | `[]*CryptoPriceItem` | The prices on this page | | `Pagination` | `*PaginationBlock` | Pagination metadata; `Total` is `nil` | ### Pointer helpers [#pointer-helpers] The `predictorsdk` package provides pointer helpers for building requests: ```go import predictorsdk "github.com/PredictorSDK/sdk-go" request := &predictorsdk.LookupSportsMatchingMarketsRequest{ SourceID: []*string{predictorsdk.String("kalshi:KXNBAGAME-26OCT20OKCSAS")}, } ``` Available helpers: `String`, `Bool`, `Int`, `Int64`, `Float64`, `Time`, `UUID`, and `MustParseDate` and `MustParseDateTime` to build a `time.Time` from a date or a timestamp string. ## Raw responses [#raw-responses] Use `WithRawResponse` on a surface that is not paginated to access HTTP metadata: ```go import ( "context" "fmt" predictorsdk "github.com/PredictorSDK/sdk-go" predictorclient "github.com/PredictorSDK/sdk-go/client" "github.com/PredictorSDK/sdk-go/option" ) func main() { client := predictorclient.New(option.WithToken("YOUR_API_KEY")) raw, err := client.WithRawResponse.LookupSportsMatchingMarkets(context.TODO(), &predictorsdk.LookupSportsMatchingMarketsRequest{ SourceID: []*string{predictorsdk.String("kalshi:KXNBAGAME-26OCT20OKCSAS")}, }) if err != nil { panic(err) } fmt.Println(raw.StatusCode) fmt.Println(len(raw.Body.Data)) } ``` A paginated surface keeps the metadata on its page: `page.StatusCode` and `page.Header`. ## Error handling [#error-handling] The SDK returns typed errors for known HTTP error codes: | Error type | Status code | Description | |---|---|---| | `*BadRequestError` | 400 | Invalid query parameters | | `*UnauthorizedError` | 401 | Missing or invalid API key | | `*PaymentRequiredError` | 402 | Monthly allowance exhausted or subscription payment recovery required | | `*ForbiddenError` | 403 | Insufficient permissions | | `*NotFoundError` | 404 | Market or event not found | | `*ConflictError` | 409 | Bare identifier resolves on multiple providers; retry with `provider` or a composite ID | | `*TooManyRequestsError` | 429 | Rate limit exceeded | | `*BadGatewayError` | 502 | Upstream provider or API-key authorization dependency failure | | `*ServiceUnavailableError` | 503 | Service temporarily unavailable | The client makes up to three attempts, the request and two retries, for a `408`, `429` or `5xx` response by default (`option.WithMaxAttempts`, which counts the first attempt, or `option.WithoutRetries`). A `429` waits for `Retry-After`, or else until the second-based `X-RateLimit-Reset`. Any other retried status honours `Retry-After` and otherwise backs off exponentially from one second. No wait exceeds 60 seconds, and the request's `context` ends a wait as soon as it is done. A `409` is never retried: send the request again with a `Provider` from its `Candidates`. A request that gets no response because the connection was refused, reset or closed by the server is retried the same way, with the same backoff and the same limit. A timeout and a cancelled `context` are never retried. Every call is a read, so repeating one is safe. The TypeScript and Python SDKs follow the same policy, and `core.APIError.Header` carries the response's [request id](https://docs.predictorsdk.com/guides/error-handling#request-ids). ```go import ( "context" "errors" "fmt" predictorclient "github.com/PredictorSDK/sdk-go/client" predictorsdk "github.com/PredictorSDK/sdk-go" "github.com/PredictorSDK/sdk-go/option" ) func main() { client := predictorclient.New(option.WithToken("YOUR_API_KEY")) // A venue ID needs its provider prefix: "kalshi:KXNBAGAME-26OCT20OKCSAS". _, err := client.LookupSportsMatchingMarkets(context.TODO(), &predictorsdk.LookupSportsMatchingMarketsRequest{ SourceID: []*string{predictorsdk.String("KXNBAGAME-26OCT20OKCSAS")}, }) var badReq *predictorsdk.BadRequestError if errors.As(err, &badReq) { fmt.Println("Bad request:", badReq.Body.Code, badReq.Body.Message) } } ``` # List public API plans (https://docs.predictorsdk.com/api-reference/getPlans) Returns the machine-readable public billing catalog used by API consumers and pricing surfaces. This endpoint is intentionally unauthenticated. Stripe price IDs and all other provisioning secrets are excluded from the response. Parameters, response schemas and examples: https://docs.predictorsdk.com/openapi.yaml # List matched sports events (https://docs.predictorsdk.com/api-reference/getSportsMatchingMarkets) Lists the sports events that more than one venue has matched, soonest scheduled start first, with cursor-based pagination (default `limit=25`, max `100`). A game stays listed through the day after its scheduled date (America/New_York), so the first events can be games that have already been played; `include_settled=true` adds older ones. Coverage is NBA, WNBA, NHL, MLB, and NFL; `data[].league` names the league and is the first segment of the canonical `event_id`. Every event has one shape for every venue: it lists its participants and submarkets, and each submarket lists the venue markets matched to it in `source_markets[]`. Every one of those carries the same references: `provider`, the provider's own parent `event_id` for `GET /v1/events/{event_id}`, its `market_id` for `GET /v1/markets/{market_id}`, and outcome IDs mapped to canonical outcomes. A page covers events whose full-game moneyline is matched, and each carries only that submarket; `include_submarkets=true` adds every other matched submarket, and events matched only on spreads, totals, team totals or props. Each event says when it is scheduled. `scheduled_date` is the game's calendar day in America/New_York and is always present; `scheduled_start` is its start time in UTC when a venue published one, and `null` when the venues published only a date. Games whose date has passed are excluded unless you ask for them with `include_settled=true`. Narrow the list with `league`, `scheduled_date` and `participant`: each is a membership filter on the same matched set, they compose, and `pagination.total` counts the filtered set rather than every event. To look events up by an identifier you already hold, a canonical `event_id` or a venue's own market, slug, event, outcome token or `conditionId`, use `GET /v1/matching-markets/sports/lookup`: it answers in one call, in full, and says what each identifier found, which a page cannot. Player props use strict settlement-equivalent matching by default. Set `include_submarkets=true&player_prop_match=same_prop` to compare roster-verified props with the same player, game, statistic, full-game period, and threshold even when settlement rules differ or remain unverified. Each player prop includes a nine-dimension rule matrix. This policy applies only to player props, not game lines; a same-prop match is not a guarantee of identical payouts or a perfect hedge. Every moneyline, spread, total and team total carries `settlement_equivalence`: whether the venues in the submarket settle a tied game, overtime and extra innings, and a line that lands exactly the same way. Send `include_rules=true` to also get the rows behind it, `rule_comparisons`: three rows, `tie`, `overtime` and `push`, with each venue's value, a description and a link to the evidence. They are left out by default because they are most of an event's size. The matrix is published beside the match and never changes which venues are paired: a venue that settles an NFL tie differently from another is still in the submarket, and the matrix says so. A rule nobody has written down is `unknown`, and unknown never means equivalent. A team total is a team's own total (`market_type=team_total`, "the Eagles over 24.5 points"), not the game's: its `subject` is the team, its `metric` is `points`, and two venues' lines are one submarket only for the same team, period and line. Today it is matched for the NFL, on Kalshi and Polymarket. Matching runs continuously in the background and this endpoint reads the stored result, so every response carries `snapshot.observed_at`: how old the venue data behind it is. Check it before treating an event a response does not contain as unmatched — an empty page from a snapshot that stopped updating looks exactly like one from a current snapshot. Parameters: - `limit` (query, optional): integer, 1–100, default 25. Maximum number of matched events to return per page. - `cursor` (query, optional): string. Opaque cursor from a previous response's `pagination.next_cursor` (`nextCursor` in TypeScript, `NextCursor` in Go). - `league` (query, optional): one of nba, wnba, nfl, mlb, nhl. Restrict the list to one league, matched against each event's own `league` value. - `scheduled_date` (query, optional): string (date). Restrict the list to the games on one calendar day, as `YYYY-MM-DD` in America/New_York: the `scheduled_date` each event publishes. - `participant` (query, optional): string. Restrict the list to events that have a participant with this `key` (`participants[].key`, such as `okc`), matched case-insensitively. - `include_settled` (query, optional): boolean, default false. Selects which events this request draws from. - `player_prop_match` (query, optional): one of strict, same_prop. Player-prop admission policy. - `include_submarkets` (query, optional): boolean. When `true`, each event lists every matched submarket (spreads, totals, period lines and player props) instead of only its full-game moneyline, and events matched only on those su… - `include_rules` (query, optional): boolean, default false. When `true`, every moneyline, spread and total also lists `rule_comparisons`: the three rows (`tie`, `overtime` and `push`), each with every source market's value, a description a… Response schemas and examples: https://docs.predictorsdk.com/openapi.yaml # Look up matched sports events by identifier (https://docs.predictorsdk.com/api-reference/lookupSportsMatchingMarkets) Finds the matched sports events that hold identifiers you already have, in one unpaginated call: a canonical event key as `event_id`, and any identifier a venue publishes (a market's `market_id`, `market_slug` or `event_id`; on Polymarket, Predict, AlphaArcade and Hyperliquid an outcome token; on Polymarket also a `conditionId`) as `source_id={provider}:{id}`. Send at least one, and up to 100 unique identifiers across both parameters. Each event found is in `data` once, in the shape `GET /v1/matching-markets/sports` lists (with its `scheduled_start` and `scheduled_date`), however many identifiers found it. `lookups` lists every identifier you sent under its spelling as sent, with the `event_id`s it found, or none: that is how a miss is told from a hit without comparing your inputs to the response. An identifier that finds nothing is a `200`, not a `404`. A lookup returns each event in full: every matched submarket, so a spread ticker's answer contains the spread it names. Send `include_submarkets=false` for only each event's full-game moneyline. It reads the same population as the list, so a game whose date has passed, or that a venue cancelled, is not found unless `include_settled=true`. Player props use strict settlement-equivalent matching by default; `player_prop_match=same_prop` compares roster-verified props with the same player, game, statistic, full-game period, and threshold even when settlement rules differ or remain unverified. A prop's own identifier finds its game under either policy when the game has another matched submarket, while the prop itself appears only when the policy admits it. Every moneyline, spread, total and team total carries `settlement_equivalence`, as on the list route, so a lookup by a Kalshi spread ticker answers whether that spread settles like the same line on another venue. Send `include_rules=true` to also get the `rule_comparisons` rows behind it (`tie`, `overtime` and `push`, with each venue's value and evidence). Matching runs continuously in the background and this endpoint reads the stored result, so every response carries `snapshot.observed_at`: how old the venue data behind it is. Check it before treating an identifier that found nothing as unmatched — a lookup that finds nothing in a snapshot that stopped updating looks exactly like one that finds nothing in a current one. Parameters: - `event_id` (query, optional): array of string, at most 100. Canonical event key(s) to look up (for example, `nba-okc-sas-2026-10-20`), matched case-insensitively. - `source_id` (query, optional): array of string, at most 100. Venue identifier(s) to look up, as `{provider}:{id}`: any `market_id`, `market_slug` or `event_id` that a `data[].submarkets[].source_markets[]` entry publishes, prefixed with tha… - `include_settled` (query, optional): boolean, default false. Selects which events the lookup searches. - `player_prop_match` (query, optional): one of strict, same_prop. Player-prop admission policy. - `include_submarkets` (query, optional): boolean, default true. When `true`, each event lists every matched submarket (spreads, totals, period lines and player props); when `false`, only its full-game moneyline, and an event appears only when… - `include_rules` (query, optional): boolean, default false. When `true`, every moneyline, spread and total also lists `rule_comparisons`: the three rows (`tie`, `overtime` and `push`), each with every source market's value, a description a… Response schemas and examples: https://docs.predictorsdk.com/openapi.yaml # List markets (https://docs.predictorsdk.com/api-reference/getMarkets) Returns a paginated list of unified markets from all supported prediction market providers. Uses cursor-based pagination with default `limit=25`, max `100`. Providers are walked in a fixed sequence, so without a filter the first pages are all Kalshi. Narrow the traversal with `provider` and/or `category`; both are membership filters on the same immutable catalog snapshot, both compose, and `pagination.total` always counts the filtered set rather than the whole catalog. This endpoint reads a stored snapshot rather than calling the venues, so the rows are as old as the last ingestion crawl, not as old as the request. `snapshot.observed_at` reports that age and is stable across a cursor traversal. The catalog lists markets that were open when their venue was last crawled; closed and settled markets are not in it, and rows carry no `status`. A listed market may have closed since that crawl, so read its current `status` from `GET /v1/markets/{market_id}`, which asks the venue at request time. Kalshi's multivariate-event markets (user-built parlays under `KXMVECROSSCATEGORY…` tickers) are excluded from the catalog and from `pagination.total`; every leg they combine is listed individually. A parlay ticker still resolves on `GET /v1/markets/{market_id}`. Parameters: - `limit` (query, optional): integer, 1–100, default 25. Maximum number of markets to return per page. - `cursor` (query, optional): string. Opaque cursor from a previous response's `pagination.nextCursor` in the SDKs (raw JSON: `pagination.next_cursor`). - `category` (query, optional): one of sports, politics, crypto, finance, economics, weather, culture, technology, entertainment, other, unknown. Canonical top-level category filter. - `provider` (query, optional): one of kalshi, polymarket, predict, sxbet, hyperliquid, alpha-arcade, prophetx, limitless, pred, polymarket-us. Restrict the page to one provider, matched against each row's own `provider` value. Response schemas and examples: https://docs.predictorsdk.com/openapi.yaml # List categories (https://docs.predictorsdk.com/api-reference/getCategories) Returns the canonical top-level categories that can be used to filter unified market discovery with `GET /v1/markets?category=...`. Categories are PredictorSDK-normalized buckets, not provider-native tags. Sports is one category among many; sport/league facets may be added later as deeper filters without changing this top-level list. Parameters, response schemas and examples: https://docs.predictorsdk.com/openapi.yaml # Get market detail (https://docs.predictorsdk.com/api-reference/getMarket) Returns one market from any of the ten supported providers (Kalshi, Polymarket, Predict, SX Bet, Hyperliquid, AlphaArcade, ProphetX, Limitless, Pred, Polymarket US). The `market_id` is either the composite form returned by `GET /v1/markets` (`{provider}:{native_id}`, e.g. `kalshi:KXNBA-27-SAS`) or the provider-native identifier. Composite IDs dispatch unambiguously by prefix. Native IDs are routed by format inference: Kalshi tickers match the all-caps-with-hyphens shape (`KX…-…`); SX Bet hashes match `0x` + 64 hex characters. **A bare numeric id or kebab-case slug does not name its provider.** Polymarket and Predict share both shapes, so when `?provider=` is omitted the service probes every candidate and answers only if exactly one of them holds that identifier. If two do, the identifier names two different real markets and the request fails with `409` listing both — it does not pick one. Retry with `?provider=` or the composite form. Polymarket also resolves a market by its `conditionId`, the id Polymarket wallet positions carry (`polymarket:0x…`, or `?provider=polymarket`); a bare `0x` + 64 hex id is read as an SX Bet hash. Hyperliquid integer outcome ids collide with Polymarket/Predict numeric ids and are deliberately not inferred — route them via the composite form (`hyperliquid:`) or `?provider=hyperliquid` (alias `hl`). AlphaArcade market ids are ULIDs (26-char Crockford base32, e.g. `01K0HQE3CEM2T2RDRWSCJ3V647`); like Hyperliquid they are not inferred in v1 — route them via the composite form (`alpha-arcade:`) or `?provider=alpha-arcade` (alias `aa`). ProphetX market ids are `:` pairs (e.g. `1700008812:219` — the market id is a per-sport TYPE id repeated on every event of that sport, 219 being Moneyline on every NFL game, so the event half is the identity); like Hyperliquid they are not inferred in v1 — route them via the composite form (`prophetx:1700008812:219`) or `?provider=prophetx` (aliases `prophet-x`, `px`). That pair resolves whichever line the venue currently flags favourite, which moves; a third part names one line, favourite or not (`::`, e.g. `1700008812:1700009030:69.5`), and a line the venue no longer lists answers `404`. Matched ProphetX player props, spreads and totals use that form. For spreads, the native line is the home handicap; its sign can differ from the canonical line. Limitless market ids are kebab-case slugs (e.g. `england-vs-sri-lanka-1789383376774`); like Hyperliquid they are not inferred in v1 — the shape collides with Polymarket/Predict slugs — route them via the composite form (`limitless:`) or `?provider=limitless`. Polymarket US market ids are its market slugs (e.g. `aec-nfl-ind-jax-2026-11-01`), the venue's trading symbol, or its numeric market ids; like Limitless slugs they are not inferred — route them via the composite form (`polymarket-us:`, what `GET /v1/markets` returns) or `?provider=polymarket-us`. Polymarket US is a venue of its own (gateway.polymarket.us, a CFTC-regulated US exchange), not a view of Polymarket: its ids, books, fees and rules are its own. Pred market ids are `:` pairs of `0x` + 64-hex ids (e.g. `pred:0xaa7f…3bf5:0xaa7f…3bf5`); like Hyperliquid they are not inferred in v1 — the halves collide textually with SX Bet market hashes — route them via the composite form or `?provider=pred`. A bare `pred:` addresses the parent as a group (one outcome per child selection, marked from each child's record: its declared result once settled, otherwise no price, since no book is read); the pair addresses one binary child market, quoted from its order book while it trades and marked with its declared result once settled. **If you already know the provider, always say so.** Every listing that hands you an identifier also hands you its provider, so the composite form — which `GET /v1/markets` returns natively in `data[].id` — or `?provider={row.provider}` costs nothing, skips the probe, and cannot 409. It is also strictly more available: the probe has to reach both candidates to prove there is no collision, so it fails when either is having an outage, while a named provider only depends on that one. Identity fields (`id`, `provider`, `provider_id`, `title`, `status` and `outcomes[].name`) are strict-universal: every platform's single-market endpoint exposes them natively without a second fetch. Close timestamps and parent event ids remain omitted (not nullable) — Predict's close time lives on the parent category and Polymarket's market record carries no event id. **What the pricing tier is for, and what it is not.** It reports the top of each venue's book, once, at the moment of your request. That is enough to see where a market is quoted, to compare venues, and to decide where to go and look harder. It is NOT an execution feed: there is no depth beyond the best level, no streaming, no per-outcome book on the platforms that publish only a market-wide mark, and nothing here is reserved for you — by the time you act, the level may be gone. Two limits are worth knowing before you write a strategy against it. First, `price` is a derived display number and a non-null `price` does not imply a tradeable one; read `pricing.availability` and prefer `bid`/`ask` for anything you intend to act on. Second, quote freshness is a property of the venue, not of this API — see *Bounding quote freshness* below. Route the actual order through the venue's own book. The pricing tier adds per-outcome quotes (`price`, `bid`, `ask` and `last`, as 0–1 probability numbers — price IS the implied probability), a `pricing` envelope (`availability`, `scale`, `source`, `as_of`, `as_of_kind`, `observed_at` and `neg_risk`), and market-level aggregates (`liquidity_usd`, `volume_24h_usd`, `volume_total_usd`, plus Kalshi contract-count mirrors and `open_interest`). **Where the quotes come from (`pricing.source`).** Kalshi and Predict quote from the same record the identity fetch returns (`pricing.source=market_record`), and so do the group views of Limitless (a group's slug) and Pred (a bare `pred:`), which read no order book and mark each option from its own record. Every other market is priced from the venue's order book (`pricing.source=orderbook`). ProphetX publishes its resting offers on the market record itself, so it costs no extra request. SX Bet, Hyperliquid, AlphaArcade, an open Polymarket market, a single Limitless market, a Pred child market and a Polymarket US market are priced from their book in one bounded second fetch — SX Bet's `/orderbook-v3/snapshot`, Hyperliquid's merged `l2Book`, AlphaArcade's `get-full-orderbook`, the Polymarket CLOB's `/books`, Limitless's `/markets/{slug}/orderbook`, Pred's order book for that child, or Polymarket US's `/v1/markets/{slug}/book`. Polymarket keeps a separate book for each outcome token, and one `/books` request returns all of a market's books, so every Polymarket outcome is quoted from its own book, sizes included, and nothing is derived from another outcome. A Polymarket market that is not open is priced from its market record (`pricing.source=market_record`): its orders are gone, so its record's last quote and its resolution marks are what it publishes. That record quotes the first outcome only, and the other outcomes carry their mark (`outcomePrices`) with `bid` and `ask` null. A Polymarket US market is one instrument, bought for YES and sold for NO: its book is the YES side's, and the NO side's quotes are its complement, the venue's own arithmetic (its BBO quotes NO as `shortQuote` = 1 − best bid). AlphaArcade's is a 4-sided YES/NO book: the second side's quotes are derived from the first by the cross-side complement, and the catalog midpoint serves as the price mark when the book is empty — reported as `pricing.availability=indicative`, since a mark that outlives its book is not a quote. Limitless and Pred publish the YES side only, and the NO side is its complement. Pricing failures never fail the lookup: if the book read fails, identity stays intact, SX Bet and Hyperliquid (whose only prices are in the book) degrade to `pricing.availability=unavailable`, and AlphaArcade, Limitless and Pred keep the record's marks, which `pricing.availability` then reflects. Polymarket and Polymarket US fall back to the quotes their market record carries (`pricing.source=market_record`): on Polymarket that is the first outcome's best bid and ask and every outcome's mark. A settled Polymarket US market reads no book: its outcomes carry the result, 1 or 0. Predict publishes a per-market `spreadThreshold` — the widest bid/ask spread it counts as liquidity — and this route honours it, so a Predict book outside its own market's threshold reports `indicative` rather than lending its midpoint the authority of `live`. Aggregates a platform doesn't natively expose are explicit `null` (e.g. Kalshi reports volume in contracts, so `volume_*_usd` stays null rather than fabricating a USD figure; its upstream `liquidity_dollars` field is deprecated and always zero, so `liquidity_usd` is null too). **Bounding quote freshness.** `pricing.as_of` is the provider's own timestamp and does not mean the same thing on every platform — on Hyperliquid it moves with the order book, while on Kalshi it is a record write measured anywhere from 15 hours to 137 days old on markets reporting `status: open` with a live two-sided book. `pricing.as_of_kind` names which one you received (`quote` / `record_refresh` / `record_static` / `unknown`), so read it before applying an age bound to `as_of`; only `quote` tracks the quote closely enough to bound at all. `pricing.observed_at` is when this server read the quotes, means the same thing on every provider, and is therefore the field to bound when you need one threshold that behaves identically across platforms. It bounds the age of the read, not of the quote: this route reads the venue live per request and caches nothing, so on a `record_static` provider a fresh `observed_at` beside a day-old `as_of` is the honest description of what the venue served, and the executable price should come from that venue's own book. The `trading_fees` tier reports what the VENUE charges to trade this market — its own published fee parameters, normalized to one shape across all ten platforms, so cross-venue cost comparison stops requiring ten private formulas. Nothing here relates to PredictorSDK's subscription pricing. It is always present, and `trading_fees.availability` distinguishes published parameters from per-account rates that need your own venue credentials (SX Bet, Hyperliquid), from a venue that publishes nothing, and from a fee of genuinely zero. Only Kalshi costs extra upstream hops for it (its parameters live on the parent series plus any scheduled per-event override, all TTL-cached and bounded); those degrade to `availability: "unavailable"` rather than failing the lookup, exactly like the pricing tier. See the `MarketDetailTradingFees` schema for the formulas and for what is deliberately out of scope. Parameters: - `market_id` (path, required): string. Composite (`{provider}:{native_id}`) or provider-native market identifier. - `provider` (query, optional): one of kalshi, polymarket, predict, sxbet, hyperliquid, alpha-arcade, prophetx, limitless, pred, polymarket-us. Optional provider override, spelled like the `provider` field on `GET /v1/markets` rows and every other response (it was `platform` until 2026-10-09; `?platform=` now answers `400… Response schemas and examples: https://docs.predictorsdk.com/openapi.yaml # Get event with nested markets (https://docs.predictorsdk.com/api-reference/getEvent) Returns a single event and the markets nested under it on the identified provider. The `event_id` is the provider's native identifier — a Kalshi `event_ticker`, a Polymarket event slug, an SX Bet `eventId`, a Predict market identifier, a Hyperliquid question/outcome integer id, an AlphaArcade market ULID, or a Pred parent market id. The `provider` is inferred from the ID format when unambiguous (`KX…` → Kalshi, `L\d+` → SX Bet). The composite form returned by `GET /v1/markets` (`{provider}:{native_id}`, e.g. `predict:1607914`) also dispatches unambiguously by prefix. **A bare numeric id or kebab-case slug does not name its provider.** Polymarket and Predict share both shapes, so when `?provider=` is omitted the service probes every candidate and answers only if exactly one of them holds that identifier. If two do, the identifier names two different real events and the request fails with `409` listing both — it does not pick one. Retry with `?provider=` or the composite form. Hyperliquid integer ids also collide with those numerics and require `?provider=hyperliquid` (alias `hl`). AlphaArcade ULIDs are not inferred in v1 either — require `?provider=alpha-arcade` (alias `aa`). ProphetX event ids are bare positive integers that collide with Polymarket/Predict numerics — require `?provider=prophetx` (aliases `prophet-x`, `px`) or the composite form (`prophetx:1700008812`). Limitless event ids are kebab-case slugs that collide with Polymarket/Predict slugs — require `?provider=limitless` or the composite form (`limitless:england-vs-sri-lanka-1789383376774`). Pred event ids are parent market ids (`0x` + 64 hex) that collide textually with SX Bet market hashes — require `?provider=pred` or the composite form (`pred:0x…`). Polymarket US event ids are event slugs (`nfl-ind-jax-2026-11-01`, what a matched source market publishes as its `event_id`) or numeric event ids, kebab-case like Polymarket's — require `?provider=polymarket-us` or the composite form (`polymarket-us:nfl-ind-jax-2026-11-01`). A Polymarket US game event lists every market of the game (hundreds on an NFL game: moneyline, spreads, totals, team totals, period winners and player props), each nested `market_id` its slug. An AlphaArcade multi-choice market resolves to an event whose nested markets are its options; a binary market (or a single option id) resolves to a single-market event. **If you already know the provider, always say so.** Every listing that hands you an identifier also hands you its provider, so `?provider={row.provider}` (or the composite form) costs nothing, skips the probe, and cannot 409. It is also strictly more available: the probe has to reach both candidates to prove there is no collision, so it fails when either is having an outage, while a named provider only depends on that one. The response is deliberately minimal: each market is returned with its provider-native `market_id` and a human-readable `title`. Send it to `GET /v1/markets/{market_id}` with this response's `provider` as `?provider=` (or as the composite `{provider}:{market_id}`). Pricing, volume, status, and timestamps are not in this response yet — they will be added as additive fields to `EventMarket`. The endpoint mirrors the `/v1/markets` rollout pattern (titles first, fields later). **Kalshi sibling fanout.** A single Kalshi sports game lives across multiple event tickers that share a game suffix — e.g. `KXMLBGAME-26OCT152000MILLAD` holds the moneyline, `KXMLBF5TOTAL-26OCT152000MILLAD` holds the first-five-innings totals, and so on. When the supplied event_ticker belongs to a sport in the sibling registry (MLB, NBA, NFL, NHL, WNBA today), this endpoint fans out across known sibling series in parallel and merges their markets into one response. Siblings that don't exist for a particular game silently drop. Siblings that error are reported under `fanout.siblings_missing`; the primary event still returns 200 in that case. Only the primary fetch failing produces a 4xx/5xx — partial fanouts never fail the request. **Polymarket** events already nest the moneyline plus all spread/totals/game-level prop markets under a single event slug, so no fanout is performed. **SX Bet** fixtures similarly bundle game lines per `eventId`, but only while the fixture trades: SX Bet lists a fixture's markets through its active-markets route, which drops the fixture once it stops trading, and has no keyless route that lists them by fixture id afterwards. The `L…` id of a game that has ended answers `404`, although a matching row keeps carrying it through the day after the game; the same row's `market_id` still resolves on `GET /v1/markets/{market_id}` (status `settled`). **Predict** currently treats `event_id` as a market identifier and wraps the single market as a 1-element event response, since the upstream `event` concept on Predict is closer to a category than to a multi-market container. **Hyperliquid** maps a question id to its named outcome markets, or wraps a standalone outcome id as a single-market event. Parameters: - `event_id` (path, required): string. Provider-native event identifier. - `provider` (query, optional): one of kalshi, polymarket, predict, sxbet, hyperliquid, alpha-arcade, prophetx, limitless, pred, polymarket-us. Optional provider override, spelled like the `provider` field of this response and every other one (it was `platform` until 2026-10-09; `?platform=` now answers `400` naming this… Response schemas and examples: https://docs.predictorsdk.com/openapi.yaml # Get Binance crypto prices (https://docs.predictorsdk.com/api-reference/getBinanceCryptoPrices) Returns per-second price data for a Binance trading pair in the paginated envelope every list route uses: `data` holds the prices and `pagination` the page. When called without a time range, returns the latest price (one item, `has_more: false`). With `start_time` and/or `end_time`, returns historical per-second prices newest first: each page is the `limit` newest seconds at or before `end_time` (or the current second), never older than `start_time`. A range longer than `limit` continues through `pagination.next_cursor`, which you send back as `cursor`, and walking every page returns every second of the range exactly once. `pagination.total` is always `null`: Binance does not count a range and this route does not walk one to find out. Unknown or invalid symbols return `200` with an empty `data` array and `has_more: false`. The envelope replaced `{prices, pagination_key, total}` on 2026-10-09; the old request parameter `pagination_key` now answers `400` naming `cursor`. Parameters: - `currency` (query, required): string. Binance trading pair (e.g. `btcusdt`, `ethusdt`, `solusdt`). - `start_time` (query, optional): integer (int64). Start of the time range as a Unix timestamp in milliseconds (inclusive). - `end_time` (query, optional): integer (int64). End of the time range as a Unix timestamp in milliseconds (inclusive). - `limit` (query, optional): integer, 1–100. Maximum number of prices per page, 1 to 100; a larger value is a `400` (it was silently clamped to 100 until 2026-10-09). - `cursor` (query, optional): string. The `pagination.next_cursor` of a previous response, sent unchanged, to fetch the next (older) page of results. Response schemas and examples: https://docs.predictorsdk.com/openapi.yaml # Get Polymarket wallet profile (https://docs.predictorsdk.com/api-reference/getPolymarketWallet) Returns the public profile (image and display name) for a Polymarket wallet. Accepts either a wallet `address` (proxy or signer EOA) or a Polymarket `username`. Exactly one of the two must be supplied — passing both returns `400`. When `address` is the underlying signer EOA, the endpoint resolves it to the deterministic proxy address and returns the proxy's profile, with `signer` echoing the input. When `username` is supplied, the endpoint resolves it to the wallet via Polymarket's profile search. Match is case-insensitive and exact: a query of `Theo` resolves the user literally named `theo` but does not resolve `theo46` or `Theo47`. A leading `@` is accepted (and stripped) as a convenience for callers used to Twitter-style handles. `signer` is always `null` on the username path. Profiles that don't exist (or only match fuzzily) return `404`. Parameters: - `address` (query, optional): string. Wallet address to look up. - `username` (query, optional): string. Polymarket display name to look up. Response schemas and examples: https://docs.predictorsdk.com/openapi.yaml # List Polymarket wallet positions (https://docs.predictorsdk.com/api-reference/listPolymarketWalletPositions) Returns the current Polymarket positions for a wallet. The upstream source is Polymarket Data API v2; this public route keeps its existing response shape. Accepts either a wallet `address` (proxy address only — see note below) or a Polymarket `username`. Exactly one of the two must be supplied — passing both returns `400`. v1 surfaces a minimal field set so the endpoint scaffolding can be verified end-to-end: `condition_id` (which market), `outcome` (which side), and `shares` (how much). Title/slug, avg/current price, PnL (`cash_pnl`, `realized_pnl`), `redeemable`/`mergeable` flags, and event metadata will be added in follow-ups. `pagination.total` is always `null` because the upstream Data API does not return a total count and this route does not walk the pages to compute one (it published `0` until 2026-10-09, which read as an empty wallet beside a page of positions); `0` only ever means an empty result on the routes that count. Rely on `has_more` + `next_cursor` to paginate. **EOA inputs are not auto-resolved on this endpoint.** Unlike `/v1/polymarket/wallet`, this endpoint does not perform the EOA→proxy CREATE2 resolution. Callers with a signer EOA should call `/v1/polymarket/wallet` first to resolve the proxy, then pass the returned `address`. Passing an EOA directly will return an empty `data` array. Parameters: - `address` (query, optional): string. Polymarket proxy wallet address. - `username` (query, optional): string. Polymarket display name to resolve to a proxy wallet. - `limit` (query, optional): integer, 1–100, default 50. Number of items requested for the first page. - `cursor` (query, optional): string. Opaque cursor from a previous response's `pagination.next_cursor`. Response schemas and examples: https://docs.predictorsdk.com/openapi.yaml # Changelog ## More short forms of a first name match a prop's player (2026-11-16, https://docs.predictorsdk.com/changelog/2026-11-16-prop-player-short-forms) A player prop is no longer left unmatched because a venue writes a short form of a first name that ESPN spells out, such as Mitch Tinsley for Mitchell Tinsley. Matching names each prop's player by finding the athlete on the two teams' ESPN rosters, and a first name and its short form name the same player. On November 15, Polymarket US listed props for Mitch Tinsley in Pittsburgh at Cincinnati, whom ESPN lists as Mitchell Tinsley, and none of them was matched: Mitch was not among the short forms read. It is now. Checking the names the NFL itself uses for its players against ESPN's found seven more short forms of the same kind, which now match too: Chig (Chigoziem) Okonkwo, Kam (Kamren) Curl, Ogbo (Ogbonnia) Okoronkwo, Olu (Olusegun) Oluwatimi, Riq (Tariq) Woolen, Trent (Trenton) Brown and Trent Scott, and Ugo (Ugochukwu) Amadi. As before, a short form matches only when no athlete of the game has the venue's name exactly and exactly one athlete fits, and a venue that gives the player's team must agree with ESPN's. A matched prop is published under ESPN's name and athlete ID. Games that had already finished keep the props they were matched with. No field or parameter changed. ## A venue read whose connection drops is sent once more (2026-11-16, https://docs.predictorsdk.com/changelog/2026-11-16-venue-read-sent-again) Market detail, events and the other routes that read a venue when you call them no longer answer 502 when the connection to the venue ends before it answers; the read is sent again. `GET /v1/markets/{market_id}`, `GET /v1/events/{event_id}`, crypto prices and the Polymarket wallet routes read the venue when you call them. A read whose connection to the venue ended before any answer failed the request with `502 upstream_unavailable`, even with the venue up: on November 11 a market detail lookup of a Predict market failed this way 14 milliseconds in. Now such a read is sent once more, on a fresh connection, and the request answers as usual. A read is sent at most twice and only when nothing came back: an answer from the venue, an error status included, is never sent again, and neither is a read that ran out of time. A `502` still means the venue did not answer, and retrying later is still right. No field or parameter changed. ## The market catalog lists only open markets (2026-11-12, https://docs.predictorsdk.com/changelog/2026-11-12-catalog-only-open-markets) GET /v1/markets no longer lists Polymarket markets that closed or settled inside events that are still open, or Predict markets that do not trade yet. `GET /v1/markets` promises markets that were open when their venue was last crawled, and it did not keep that promise for every venue. Polymarket groups markets into events, and the catalog read every market of an open event, including the ones Polymarket had already closed or settled: a market whose question was decided stayed in the catalog for as long as another market of its event traded, while market detail called it `settled`. Predict lists its 15-minute up-or-down windows before they trade, and the catalog listed those too, though market detail called them `closed`. Now a market is in the catalog only while its venue reports it open, by the same rule `GET /v1/markets/{market_id}` uses for `status`, on every venue. Polymarket's and Predict's `pagination.total` drop by the markets that were not open, from each venue's first catalog crawl after the change. A Predict question listed as one row stays listed while any of its markets trades. A market can still close between crawls, so read its current `status` from market detail before acting on it. Matching is unchanged, and no field or parameter changed. ## Player props match when a venue writes a legal name ESPN lists by a nickname (2026-11-10, https://docs.predictorsdk.com/changelog/2026-11-10-prop-player-aliases) ProphetX's props for KC Concepcion and Bam Knight, which it lists under their legal names, now match the other venues' props of the same players. Matching names each prop's player by finding the athlete on the two teams' ESPN rosters. ESPN lists a few athletes by a nickname or initials that can't be derived from their legal name, and a venue sometimes writes the legal name. On November 10, ProphetX listed Kevin Concepcion, whom ESPN lists as KC Concepcion, and Zonovan Knight, whom ESPN lists as Bam Knight, so none of their ProphetX props was matched. A venue's spelling of such an athlete now matches through an alias reviewed for that athlete, which is added once a venue is seen writing the name and an independent record of the athlete confirms it. These two are the first. As with every name, the alias applies only when the athlete is on one of the game's two teams and no athlete of the game has the venue's name exactly. A matched prop is published under ESPN's name and athlete ID, as before. No field or parameter changed. ## Player props match when a venue writes a first name another way (2026-11-10, https://docs.predictorsdk.com/changelog/2026-11-10-prop-player-first-names) A player prop is no longer left unmatched because a venue writes a first name in its full form where ESPN uses a short form, or the other way round, as with Gregory and Greg. Matching names each prop's player by finding the athlete on the two teams' ESPN rosters, and a first name written another way made two different people. Every prop of such a player went unmatched, even when several venues listed the same line. On November 8, Kalshi, Polymarket and Polymarket US listed Gregory Desrosiers, whom ESPN lists as Greg Desrosiers Jr., and Polymarket and Polymarket US listed Nicolas Claxton, whom ESPN lists as Nic Claxton, so no Polymarket or Polymarket US prop of either player was matched. Polymarket US also lists Irvin Charles, whom ESPN lists as Irv Charles. Now a first name and its short form (Greg and Gregory, Nic and Nicolas, Irv and Irvin, Matt and Matthew) name the same player, when no athlete of the game has the venue's name exactly and exactly one athlete fits. Two spellings of one name (Brian and Bryan, Jalen and Jaylin) and nicknames that aren't a short form of the name (Hollywood and Marquise) still don't match, and a venue that gives the player's team must still agree with ESPN's. A matched prop is published under ESPN's name and athlete ID, as before. Games that had already finished keep the props they were matched with. No field or parameter changed. ## NBA threes and points + rebounds + assists props are matched (2026-11-10, https://docs.predictorsdk.com/changelog/2026-11-10-nba-threes-pra) NBA three-pointer props now join Kalshi, Polymarket and Polymarket US, Kalshi's points + rebounds + assists props join Polymarket US's, and Polymarket's rebounds lines join the other venues'. No NBA threes prop had ever been matched, and no rebounds line had included Polymarket. The venues write these statistics differently, and the check that a market says what it is read one wording for every venue. Kalshi titles a threes market "3+ threes" but its rules say "3+ made three-pointers". Polymarket's question says "3-Pointers Made". Polymarket's rebounds rules say "more than 7.5 total rebounds" on the Yes side and "7.5 rebounds or fewer" on the No side. Each venue's own wording for each statistic is now read exactly, and any other wording is still refused. Kalshi's points + rebounds + assists series, `KXNBAPRA`, is also read now, as the new `metric` value `points_rebounds_assists`, which joins Polymarket US's markets of the same statistic. Polymarket lists none. On six NBA games of November 10 this took the matched player props from 887 to 1,370: 256 threes lines, 174 points + rebounds + assists lines, and 53 new rebounds lines, with Polymarket added to 253 more. Like other props, they're listed under `player_prop_match=same_prop` with their rule differences. A points + rebounds + assists submarket's `display_name` reads "Joel Embiid Points + rebounds + assists O/U 24.5". No field or parameter changed. ## ProphetX's touchdown scorers are matched (2026-11-09, https://docs.predictorsdk.com/changelog/2026-11-09-prophetx-touchdown-scorers) ProphetX's NFL To Score a Touchdown, 2+ and 3+ markets now join Kalshi's and Polymarket US's touchdown props under player_prop_match=same_prop. ProphetX lists "To Score a Touchdown", "To Score 2+ Touchdowns" and "To Score 3+ Touchdowns" for the players of every NFL game, and none of them was matched: they are `YES`/`NO` markets, and only ProphetX's over/under props were read. Each is now matched as touchdowns scored over 0.5, 1.5 or 2.5, the same submarket as Kalshi's and Polymarket US's 1+, 2+ and 3+ touchdowns. `YES` is the over side (`side` `yes`), `NO` the under (`side` `no`), and the outcome ids are the ones `GET /v1/markets/prophetx:{id}` publishes. A touchdown scorer has no ladder, so its source market is named by the market's own `:`. ProphetX's NFL terms, as amended in August 2026, settle the official NFL total touchdowns and credit a passing touchdown to the player who catches it, which is the statistic Kalshi and Polymarket US count. On Buffalo at Minnesota on November 9 this puts ProphetX on all 39 touchdown props Kalshi and Polymarket US share, and matches six lines that only one of them lists with ProphetX. A player who takes no snap voids ProphetX's contract, where Kalshi and Polymarket US settle at a fair price, so the rule matrix reads `different`, as it already did between those two. ProphetX's first and last touchdown scorers are different contracts and stay unmatched. The rule values of ProphetX's NFL props now cite ProphetX's amended terms, which state the same rules. No field or parameter changed. ## Player props match when a venue and ESPN write a suffix differently (2026-11-09, https://docs.predictorsdk.com/changelog/2026-11-09-prop-player-suffixes) A player prop is no longer left unmatched because a venue writes a Jr., Sr., II, III, IV or V that ESPN leaves out, or leaves out one ESPN writes. Matching names each prop's player by finding the athlete on the two teams' ESPN rosters, and it treated a generational suffix written on one side only as a different name. Every prop of such a player went unmatched, even when several venues listed the same line. On November 8, Kalshi, Polymarket and Polymarket US listed Joe Milton III and KC Concepcion Jr., whom ESPN lists as Joe Milton and KC Concepcion, and no prop of either player was matched. ProphetX writes James Cook, Aaron Jones, Kyle Pitts and Robert Henry, whom ESPN lists as James Cook III, Aaron Jones Sr., Kyle Pitts Sr. and Robert Henry Jr. Now a suffix written on one side only is no difference, as long as no other athlete of the game has the same name. A name ESPN writes exactly still names that athlete first, two different suffixes (Jr. and Sr.) still name two people, and other first names (Greg and Gregory) still don't match. A matched prop is published under ESPN's name and athlete ID, as before. Games that had already finished keep the props they were matched with. No field or parameter changed. ## AlphaArcade's NFL moneylines pay half on a tie (2026-11-03, https://docs.predictorsdk.com/changelog/2026-11-03-rules-alphaarcade-nfl-tie) The rules matrix now shows that AlphaArcade pays each side half when an NFL game ends tied, and Pred's NBA spreads now cite Pred's own NBA overtime settlements. With `include_rules=true`, AlphaArcade's NFL moneylines showed `tie: unknown`, with a description saying the market's text does not say what a tied game pays. It does: AlphaArcade's NFL moneylines say "If the game ends in a tie, this market will resolve 50-50.", and AlphaArcade settled the Giants at Commanders tie on October 11 that way, paying $0.50 for each Yes and each No share. The value is now `half_payout`, and its `evidence_url` is AlphaArcade's record of that game. NFL moneylines that include ProphetX or SX Bet still read `different`, because those two void a tied game; one whose venues all pay half can now read `equivalent`. Pred's NBA spreads never say whether overtime counts. Their `overtime: included` value used to rest on Pred's NFL spreads, which use the same text. Three NBA games that went to overtime have since decided five Pred spreads, and Pred settled all five on the final score including overtime, so the value now cites one of those NBA games. No field or parameter changed. The SDKs need no update. ## Predict markets use Predict's own category (2026-11-03, https://docs.predictorsdk.com/changelog/2026-11-03-predict-categories) GET /v1/markets now takes each Predict market's category from the tags Predict gives it, so about 2,500 Predict markets that were unknown have a category and a few hundred that were guessed wrong are fixed. Predict markets in `GET /v1/markets` now take the category Predict itself tags them with, instead of a guess from their title and identifiers. Before, about 14% of Predict markets were `unknown`, so `?category=` missed them: Predict's stock, ETF, gold and crude-oil up-or-down markets, soccer and esports futures, Treasury yield and press secretary markets. Some guesses were wrong, too: the Micron and Zhipu AI up-or-downs were `technology` because of the companies' names, and the questions about which company has the best AI model were `finance`. On the day's catalog, no Predict market was left `unknown`. Predict's Finance markets are `finance`, Sports and Esports are `sports`, Economy is `economics`, Tech is `technology`, Culture is `culture` (movies and awards are `entertainment`), and Crypto, Politics and Weather keep their names. A market's category changes the next time the Predict catalog refreshes after this release, and no request or response changed. See [filtering](https://docs.predictorsdk.com/guides/filtering) for the category values. ## A game that has started keeps the markets venues close during it (2026-11-03, https://docs.predictorsdk.com/changelog/2026-11-03-started-games-keep-markets) Once a game starts, its matched event keeps every venue market it was matched with, including player props a venue closes as soon as their result is reached, and Polymarket's longest-reception props are now matched. Venues close a player prop the moment its result is reached: Kalshi closes a count prop such as 1+ passing touchdowns, receptions or interceptions as soon as it happens, and Polymarket US its touchdown props. Matching used to drop such a market from its game, and the whole submarket once only one venue still listed it, so a lookup by the closed market's ID found nothing for the rest of the game or after it. On November 1, Patrick Mahomes's 1+ passing touchdowns left its game 25 minutes after kickoff. Now a game that has started keeps every venue market it was matched with, while it is played and after it: in the default list until the game is past-dated, and with `include_settled=true` after that. A market a venue lists during the game, such as a rung Kalshi adds to a ladder, stays too. Nothing changes before kickoff: a prop a venue closes before the game, for example because the player was ruled out, is no longer matched. Games that had already finished keep the markets they were archived with. Polymarket's longest-reception props are now matched with Kalshi's and Polymarket US's at the same line. Its touchdowns-scored props are not: since October they count rushing and receiving touchdowns only, while Kalshi and Polymarket US count every touchdown a player scores except a passing one, so a kick-return touchdown settles them differently. No field or parameter changed. ## ProphetX's exchange-volume markets are in the finance category (2026-11-03, https://docs.predictorsdk.com/changelog/2026-11-03-prophetx-categories) ProphetX's markets on other venues' monthly trading volume now appear under finance instead of unknown, and every sport ProphetX lists now has a category before its tournaments open. ProphetX opened a tournament on 2026-11-02, Exchange Volume, under a sport it calls Business: over/under ladders on the monthly trading volume of eight venues, among them Kalshi and Polymarket US. `GET /v1/markets` listed its 24 markets as `unknown`. They are now `finance`, so `?category=finance` finds them. Like ProphetX's politics markets, they are catalog only and not part of sports matching. A ProphetX market's category now comes from the sport ProphetX files its tournament under, and every sport ProphetX lists has one, including sports with no tournament open today: cricket, cycling, darts, horse racing and lacrosse markets will arrive as `sports`. ProphetX's Novelty tournaments take their category from ProphetX's grouping inside the sport: award shows such as the Oscars are `entertainment`, and pop culture markets such as Love Island are `culture`. No other ProphetX market changed category. ## Kalshi's NFL player props are matched on Jets, Giants, Rams and Chargers games (2026-11-02, https://docs.predictorsdk.com/changelog/2026-11-02-kalshi-props-two-team-cities) GET /v1/matching-markets/sports now matches Kalshi's NFL player props on games of the four teams that share a city, which it had left out since Kalshi props were first matched. Kalshi's rules for a player prop name the game by its two teams' cities, and the four teams that share a city by city and one letter: "New York G", "New York J", "Los Angeles C" and "Los Angeles R". Matching checks that a prop's rules name the same game as its ticker, and it did not know those four names, so it left out every Kalshi player prop of every Jets, Giants, Rams and Chargers game, 24 of the 107 NFL games Kalshi has listed props for since September 14. Those games' Kalshi game lines and the other venues' props were matched as usual. The four names are now read: on the two such games of November 1, Raiders at Jets and Chargers at Rams, 181 and 167 Kalshi props join the same props on Polymarket and Polymarket US, where none did. Games already played keep what was matched while they were listed. No field, parameter or route changed, and the SDKs need no update. ## ProphetX's alternate lines are matched (2026-11-02, https://docs.predictorsdk.com/changelog/2026-11-02-prophetx-alternate-lines) GET /v1/matching-markets/sports now matches every half-point line ProphetX lists for a game's spread and total and for an NFL player prop, not only the line it features, so ProphetX appears beside the other venues on its alternate lines. ProphetX lists each full-game spread and total, and each over/under player prop, as a ladder of lines: on November 2, 33 lines for every NBA and NFL spread and total, half points and whole numbers, up to 16 for an NHL puck line or total, and a median of 11 for an NFL player prop. Matching used to take only the one line ProphetX features, so ProphetX was missing from the other lines of a game even where it listed the same line as other venues. Every half-point line of a ladder is now matched as its own ProphetX source market, under the id that names that line, `::`, which `GET /v1/markets/prophetx:{id}` already resolves whichever line ProphetX features. On that day's games this put ProphetX on 869 more spread and total lines and 312 more NFL player props that other venues list. It also covers markets whose featured line is a whole number, where ProphetX contributed nothing before. For a spread, the line in the id is the home team's handicap, so it can be positive; the canonical subject is always the team giving the points. ProphetX's player props appear under `player_prop_match=same_prop`, as before. Whole-number lines stay unmatched: a game can land on them, and no venue's whole-number line is matched. `GET /v1/markets` keeps one row per ProphetX market, `prophetx::`. That is now also true of the NFL player props ProphetX matches, which the catalog listed under their featured line's id (`prophetx:::`), an id that changed whenever the featured line moved; both forms still resolve on `GET /v1/markets/{market_id}`. No field or route changed. ## Every Polymarket outcome is quoted from its own order book (2026-11-01, https://docs.predictorsdk.com/changelog/2026-11-01-polymarket-second-outcome-quotes) GET /v1/markets/{market_id} now gives the second outcome of an open Polymarket market a bid, an ask and sizes, read from that outcome's own order book, where it used to carry only a mark. `GET /v1/markets/polymarket:{id}` used to fill in `bid` and `ask` for a market's first outcome only. Polymarket's market record quotes the first outcome token alone, so the second outcome, such as the Under of an over/under, came back with `bid: null` and `ask: null` beside a mark in `price`, although Polymarket had a live order book for it. An open Polymarket market is now priced from Polymarket's order books: Polymarket keeps one book per outcome token, all of a market's books are read in one request, and every outcome gets its own best bid and ask with the size at each (`bid_size`, `ask_size`, in shares). Nothing is worked out from another outcome's prices. The first outcome's quotes come straight from its book as well, which the market record's copy of them can lag by a cent or two. For an open market this changes the `pricing` envelope: `source` is `orderbook`, and `as_of` is the time the books last changed, so `as_of_kind` is `quote` (it was `record_refresh`, the market record's rewrite time). `last` stays on the first outcome only, because the books do not say which outcome the last trade was in. A market that is not open is priced from its market record as before (its orders are gone), and so is an open market whose books cannot be read within the lookup's time limit, which answers with `source: market_record` and the second outcome's mark. A failed book read never fails the lookup. No field or route changed. The SDKs' descriptions follow in their next release. ## SDKs 0.27.0 know Polymarket US (2026-10-31, https://docs.predictorsdk.com/changelog/2026-10-31-sdk-0-27-0) The TypeScript, Python and Go SDKs 0.27.0 add polymarket-us to every provider type, so a typed client can name Polymarket US. Nothing else changed shape. The TypeScript (`@predictorsdk/client`), Python (`predictorsdk`), and Go (`github.com/PredictorSDK/sdk-go`) SDKs are released at 0.27.0. They follow [Polymarket US becoming a provider](https://docs.predictorsdk.com/changelog/2026-10-30-polymarket-us). - **`polymarket-us` is in every provider type.** The `provider` filter on `getMarkets`, the `provider` override on `getMarket` and `getEvent`, the `provider` on catalog rows, market detail and events, and `source_markets[].provider` on matched games all list it. In Go it is each enum's `PolymarketUs` constant, such as `GetMarketsRequestProviderPolymarketUs`. - **Descriptions.** The docstrings describe Polymarket US where it differs from the other venues: its slug IDs, its `yes` and `no` sides, its statuses, its order book's timestamp and its taker fee. Nothing in a request or response changed shape, so nothing is breaking. Older SDKs read Polymarket US responses as they are, with the new value as a plain string. We checked each published package against the production API: it listed `provider=polymarket-us`, read `polymarket-us:aec-nfl-ind-jax-2026-11-01` (Colts at Jaguars: `yes` is the Colts, `no` the Jaguars, priced from the live book with the published fee), and looked it up by `source_id`, which found `nfl-ind-jax-2026-11-01` with the market on its full-game moneyline beside the nine other venues. Python 0.26.1 made the same calls and read the same answers. ## Polymarket US is a provider, in the catalog, market detail, events and sports matching (2026-10-30, https://docs.predictorsdk.com/changelog/2026-10-30-polymarket-us) Polymarket US (gateway.polymarket.us) is the tenth venue, with live prices and fees, its game events, and matched NFL, NBA, NHL, WNBA and MLB game lines, team totals and player props. Polymarket US, the CFTC-regulated US exchange at gateway.polymarket.us, is now a provider, `polymarket-us`. It is a venue of its own beside Polymarket: its markets, order books, fees and rules are its own, so its IDs always need `?provider=polymarket-us` or the `polymarket-us:` prefix. - **Catalog:** `GET /v1/markets?provider=polymarket-us` lists every open Polymarket US market (about 90,000 on 2026-10-30), each under the venue's own category. A market's ID is its slug, such as `polymarket-us:aec-nfl-ind-jax-2026-11-01`. Its title is the venue's question, naming the period or the team when the question leaves it out (`… (1st half)`, `… (Dallas Cowboys)`), and it is the same on every endpoint. - **Market detail:** `GET /v1/markets/polymarket-us:{slug}` reads the market and its order book. Each market is one instrument: `yes` is buying it and `no` selling it, and the `no` side's quotes are the complement of the book. Sizes, last trade, open interest and lifetime volume come from the book; `pricing.as_of` is the book's own stamp (`as_of_kind: quote`). Trading fees are published: a taker fee of `0.0695 × contracts × p × (1 − p)` on most markets (0.10 on table tennis), rounded to the nearest cent, and none for makers. - **Events:** `GET /v1/events/{slug}?provider=polymarket-us` lists every market of a game, such as `nfl-ind-jax-2026-11-01`. - **Sports matching:** full-game moneylines, spreads and totals in the NFL, NBA, NHL and WNBA (MLB when the venue lists games), half and quarter spreads and totals in the NFL and NBA, half and quarter winners as −0.5 spreads, NFL team totals for the full game and each half, and NFL, NBA and WNBA player props. On 2026-10-30 it joined every NBA and NHL game it listed and 29 of 30 NFL games, beside Kalshi, Polymarket, SX Bet, Pred and Limitless. A matched market's `market_id` is its slug and its `event_id` the game's event slug, and `source_id=polymarket-us:{slug}` finds the game. ## ProphetX boxing markets are in the sports category (2026-10-28, https://docs.predictorsdk.com/changelog/2026-10-28-prophetx-boxing) ProphetX's boxing markets now appear in the market catalog under the sports category instead of unknown. ProphetX listed a boxing tournament on 2026-10-27, and `GET /v1/markets` listed its two markets, the moneyline and total rounds of Canelo Alvarez at Christian Mbilli, as `unknown`. They are now `sports`, so `?category=sports` finds them. Boxing markets are catalog only, like ProphetX's soccer, tennis and golf: they are not part of sports matching. No other market changed category. ## A Pred start time that contradicts Pred's own record no longer times a game (2026-10-28, https://docs.predictorsdk.com/changelog/2026-10-28-pred-start-times) A matched game no longer takes its scheduled_start from a Pred fixture whose start falls on a different day than the date Pred named the fixture with. `GET /v1/matching-markets/sports` published 7 PM Eastern as the `scheduled_start` of Cleveland at Atlanta on 2026-10-29, from 2026-10-27, while ESPN and Polymarket had 8 PM. Pred listed the game at 7 PM under a name dated for the 8 PM tip, and because the earliest start any venue gives is the one published, Pred's time won. Pred names every fixture with a date, and a Pred start that falls on neither that date in UTC nor in Eastern time now dates the game (`scheduled_date`) without timing it, so the venues whose records agree with themselves time it. Across Pred's whole NBA and NFL history, 247 games, that is this one game, and of the 21 games Pred and Polymarket both listed on 2026-10-27 no other start changed. No field, parameter or route changed, and the SDKs need no update. ## SDKs 0.26.1 stop at the last page (2026-10-20, https://docs.predictorsdk.com/changelog/2026-10-20-sdk-0-26-1) In the Python and TypeScript SDKs, asking for the page after the last one no longer starts over from the first page. Nothing else changed shape. The TypeScript (`@predictorsdk/client`), Python (`predictorsdk`), and Go (`github.com/PredictorSDK/sdk-go`) SDKs are released at 0.26.1. - **Python: `next_page()` returns `None` after the last page.** It used to fetch the first page again, so a loop such as `while page: ...; page = page.next_page()` never ended. Iterating a pager, `iter_pages()` and `has_next` were always right. - **TypeScript: `getNextPage()` throws after the last page** instead of replacing it with the first page. Check `hasNextPage()` first; iterating with `for await` was always right. - **Go** already returned `core.ErrNoPages` after the last page and is unchanged. - **Descriptions.** Docstrings picked up wording from the API reference since 0.26.0 (Polymarket Protocol V2 markets, ProphetX coverage, Hyperliquid lookups). Nothing in a request or response changed shape, so nothing is breaking. We checked each published package against the production API: walking NFL matched games 20 at a time, Python's `next_page()` (sync and async) stopped after the second and last page, TypeScript's `getNextPage()` threw there and kept the last page, and Go's `GetNextPage` ended with `core.ErrNoPages`. ## Limitless markets carry Limitless's own category (2026-10-19, https://docs.predictorsdk.com/changelog/2026-10-19-limitless-categories) Catalog rows from Limitless now take the category Limitless files them under, so 58 that had none are now sports or finance. `GET /v1/markets` now reads the category Limitless files each market under before guessing from its title. Fifty-eight Limitless markets that the catalog listed as `unknown` now have one: 50 soccer props, such as "Napoli and Bodo/Glimt both to score?", are `sports`, and 8 gold, oil and other price markets are `finance`, so `?category=` finds them. A market whose only Limitless label is a schedule, such as the daily stock up-or-downs, stays `unknown` rather than being guessed. No other Limitless market changed category. ## Every code example in the docs, run as written (2026-10-19, https://docs.predictorsdk.com/changelog/2026-10-19-docs-snippets) We ran every snippet on the docs against the live API with the published SDKs, and fixed the ones that failed, printed the wrong thing or had gone stale. We copied every code example in the docs, ran it against the live API with the published SDKs, and fixed what didn't work as written: - **TypeScript examples are ES modules.** They use top-level `await`, which fails in a project made with `npm init` until its `package.json` has `"type": "module"`. The [quickstart](https://docs.predictorsdk.com/quickstart) and the [TypeScript SDK](https://docs.predictorsdk.com/sdk/typescript) page now say so, and how to run them in a CommonJS project. - **The Go quickstart prints prices.** Step 4 printed pointer addresses, because `Bid` and `Ask` are pointers; it now prints the numbers. - **The date examples stay current.** The SDK pages' "tonight's games" examples used a fixed date that has passed; they now ask for today's games. - **Empty `player_prop_match`.** The [player-prop guide](https://docs.predictorsdk.com/guides/player-prop-matching) said an empty value is a `400`. Like an empty value of any other control parameter, it means the default, `strict`. - **Refreshed examples.** The rule-matrix excerpts on the [game-line rules](https://docs.predictorsdk.com/guides/game-line-rules) and player-prop guides show the values the API returns today (SX Bet now reads as voiding a tied NFL game), and the response-size table on [filtering](https://docs.predictorsdk.com/guides/filtering) gives ranges that cover an NFL weekend. - **AlphaArcade in the NBA.** The [Overview](https://docs.predictorsdk.com/) now lists AlphaArcade for NBA moneylines, which it matches when it lists a game. ## A new layout for the API reference, with the playground in a dialog (2026-10-19, https://docs.predictorsdk.com/changelog/2026-10-19-api-reference-pages) Each API reference page opens its playground in a dialog, shows the example request and response in cards, and opens nested response fields as cards with breadcrumbs. The [API reference](https://docs.predictorsdk.com/api-reference/getSportsMatchingMarkets) pages have a new layout. **Try in Playground**, beside each endpoint, opens the request in a dialog: fill in the parameters and your API key, send it with the button or Cmd/Ctrl + Enter, and read the response with its status, time and headers, next to the same request written in any of seven languages. The example request and response sit in titled cards: pick the language of the request, the status of the response and, where an endpoint has several, the example. The **Schema** switch shows the JSON Schema of the example response. Nested fields of a response open as cards with breadcrumbs, and a filter finds a field by name. The pages also load less code: syntax highlighting now fetches only the languages the examples use. No endpoint, parameter or field changed. ## A page for every changelog entry, and the docs in Markdown for AI tools (2026-10-18, https://docs.predictorsdk.com/changelog/2026-10-18-docs-refresh) Each changelog entry opens on its own page, every docs page has a Markdown copy with Copy Markdown and Open buttons, and the Overview, Quickstart and Concepts pages were rewritten. The changelog lists every entry as a card, grouped by month and filterable by type (New, Fix, Breaking and so on), and each entry opens on a page of its own. Follow it in a feed reader at `https://docs.predictorsdk.com/changelog/rss.xml`. Every docs page now has a Markdown copy at its address plus `.md` (for example `https://docs.predictorsdk.com/quickstart.md`). The **Copy Markdown** and **Open** buttons under each title copy the page or send it to ChatGPT, Claude or Cursor. A tool that asks for Markdown with `Accept: text/markdown` gets it instead of an error, and `llms.txt` links to each page's copy. [Use with AI](https://docs.predictorsdk.com/ai-tools) has the details. Each page now shows its own title in browser tabs, search results and link previews, and the site has a sitemap. The Overview, Quickstart, Authentication and Concepts pages were rewritten to be shorter and plainer, and the Quickstart now ends by reading live prices for a matched game. The Filtering guide, the SDK pages and the lookup's API reference now name Hyperliquid wherever they list the IDs a lookup accepts; the SDKs' descriptions follow at their next release. No endpoint, parameter or field changed. ## Pred's NBA lines and points props are matched, and NBA props match on every game (2026-10-17, https://docs.predictorsdk.com/changelog/2026-10-17-pred-nba) Pred's NBA moneylines, spreads, totals and player points props join their games, Pred's spreads and totals read overtime as counted, and NBA player props now match on Knicks, Spurs, Warriors, Pelicans, Jazz and late games. Pred listed the NBA's opening week on 2026-10-16, and all of it is matched: each game's moneyline, spreads and totals join the event the other venues list (16 games, 133 lines, every one shared with another venue on 2026-10-17). Pred's NBA player points props (`Cade Cunningham Points Over 24.5`) are matched too, under the [same-prop policy](https://docs.predictorsdk.com/guides/player-prop-matching): each joins the same player's points line on Kalshi and Polymarket. Pred's rules text says a player who does not play resolves `No`; it differs from Kalshi and Polymarket on one rule, a revision of the official result made after the game but before the market resolves, which counts on Pred, and the rule comparison shows it. Pred's spread rules, and its NFL total and moneyline rules, do not say whether overtime counts. Pred's own settlements do: it paid every NFL spread, total and moneyline that an overtime game decided on the final score. The [game-line rule comparison](https://docs.predictorsdk.com/guides/game-line-rules) now reads Pred's overtime as included, so Pred's NBA and NFL spreads and totals read `equivalent` where its silence was the only gap (about a thousand submarkets on 2026-10-17); its NFL moneylines stay `different`, because Pred pays half on a tied game where ProphetX and SX.Bet void it. Two fixes make NBA player props match on more games, for every venue. Props on games of the Knicks, Spurs, Warriors, Pelicans and Jazz were left out, because those teams are spelled differently by ESPN, whose schedule and rosters confirm every prop's game and player. And Polymarket's NBA props on games starting at 8 PM ET or later were left out, because the date in their slug was read as a UTC date. ## Broader ProphetX catalog and game-line matching (2026-10-16, https://docs.predictorsdk.com/changelog/2026-10-16-prophetx-coverage) Active tournament discovery, WNBA matching, and verified full-game half-point spreads and totals. The ProphetX catalog now discovers every active tournament, including politics, soccer, tennis, college football, futures, motorsport and esports. Sports matching adds WNBA and primary full-game half-point spreads and totals across NFL, MLB, NBA, NHL and WNBA. A captured upstream inventory covered 7,274 markets across 40 tournaments, compared with 3,056 under the previous allowlist. Replaying independently fetched ProphetX and Polymarket data through the real matcher and store added one WNBA moneyline and 19 spread/total matches. Each matched spread or total names its exact native line in `market_id`, preserving the detail join when the favourite line moves. The catalog and sports refresh independently. Whole-number lines, periods, other leagues and politics remain available as provider-native markets without new matching support; no route or response field changed. ## ProphetX politics markets are listed (2026-10-16, https://docs.predictorsdk.com/changelog/2026-10-16-prophetx-politics) ProphetX politics markets now appear in the market catalog under the politics category, and resolve on market detail and events like any other ProphetX market. ProphetX listed politics markets on its platform in September. They now appear in `GET /v1/markets` under the `politics` category, and `GET /v1/markets/{market_id}` and `GET /v1/events/{event_id}` resolve them with `?provider=prophetx` (or the `prophetx:` composite id) like any other ProphetX market, with order-book pricing on market detail. Politics markets are passthrough only: they are not part of sports matching, and no market shape changed. ProphetX's other September API updates needed no change here — PredictorSDK's ProphetX reads were already on the current endpoints, and the College Football in-play delay change concerns order placement, which PredictorSDK does not do. ## Matched games no longer take a stale start time from Predict (2026-10-16, https://docs.predictorsdk.com/changelog/2026-10-16-predict-start-times) A game's scheduled_start no longer comes from Predict, whose start times can stay at a game's first announced time after it moves. `GET /v1/matching-markets/sports` published the wrong `scheduled_start` for ALCS Games 4 and 6 on 2026-10-16: 6 PM and 5 PM Eastern, when MLB had both at 8 PM. Predict's start time for a game is a copy of the time Polymarket had when Predict listed it, and Predict did not update it when the time moved. Because the earliest start any venue gives is the one published, Predict's stale time won over Polymarket's, SX Bet's, AlphaArcade's and ProphetX's correct one. Predict's start now dates a game (`scheduled_date`, and the move of a postponed game) and never times it. Of the 127 games listed that evening, only those two changed. No field, parameter or route changed, and the SDKs need no update. ## Polymarket's Protocol V2 markets are read (2026-10-15, https://docs.predictorsdk.com/changelog/2026-10-15-polymarket-protocol-v2) Polymarket began listing markets on a second position system, Protocol V2, on October 14. The catalog, market detail, events and matching now read them. Polymarket began listing markets on Protocol V2, its second position system, on October 14, starting with a pilot of crypto and weather markets. Polymarket's market API returns those markets only to a request that asks for them, so until this change PredictorSDK never read them: they were missing from `GET /v1/markets`, `GET /v1/markets/{market_id}` and `GET /v1/events/{event_id}` answered `404` for a V2 market's slug or condition ID, and a resolved V2 market read `closed` instead of `settled`. - **Catalog and matching** read both position systems, so V2 markets appear in `/v1/markets`, and a game Polymarket lists on V2 is matched like any other. - **Market detail** finds a V2 market by its numeric ID, slug or condition ID, so a wallet position held in a V2 market can be priced. A resolved V2 market reads `settled`. - **Outcome IDs.** A V2 market's `outcome_id`s are its position IDs, the IDs Polymarket trades it by. A market on Polymarket's original system keeps its CLOB token IDs. - **Events** find a V2 event by its slug. Nothing changed shape, so nothing is breaking, and Polymarket's existing markets read exactly as before. The rest of Polymarket's V2 migration (a new exchange contract, order signing and approvals) concerns trading on Polymarket, which PredictorSDK does not do. ## Hyperliquid's NFL spreads and totals are matched (2026-10-14, https://docs.predictorsdk.com/changelog/2026-10-14-hyperliquid-nfl-spreads-totals) `GET /v1/matching-markets/sports` now matches Hyperliquid's NFL full-game spreads and totals as well as its game winners. A Hyperliquid spread is one market such as "Seattle Seahawks v Denver Broncos: Seahawks -2.5": its `Yes` side is Seattle covering −2.5 and its `No` side Seattle not covering, so it sits in the same submarket as every other venue's Seattle −2.5. A total's sides are `Over` and `Under`. As with game winners, the outcome IDs are the market's spot coins, each market joins the game other venues already list for the same two teams on the same day, and overtime counts. Only half-point lines are matched, and a spread only when the team it names gives the points. Hyperliquid lists spreads and totals for only a few games so far. Nothing in a request or response changed shape. ## SDKs 0.26.0 know Hyperliquid as a matching venue (2026-10-14, https://docs.predictorsdk.com/changelog/2026-10-14-sdk-0-26-0) The TypeScript, Python and Go SDKs 0.26.0 add hyperliquid to the providers a matched source market can name. Nothing else changed shape. The TypeScript (`@predictorsdk/client`), Python (`predictorsdk`), and Go (`github.com/PredictorSDK/sdk-go`) SDKs are released at 0.26.0. They follow [Hyperliquid's NFL games being matched](https://docs.predictorsdk.com/changelog) today. - **`hyperliquid` is a source-market provider.** A `source_markets[].provider` on `GET /v1/matching-markets/sports` and its lookup can now be `hyperliquid`, and the SDK types list it. Older SDKs still read these responses and pass the value through as a plain string. - **Descriptions.** The docstrings for `source_id` and the provider fields mention Hyperliquid's outcome IDs and spot coins. Nothing in a request or response changed shape, so nothing is breaking. We checked the published Python package against the production API: a lookup by `hyperliquid:11446` returned Seattle at Denver with both of Hyperliquid's markets, each side on its own team. ## Hyperliquid's NFL games are matched (2026-10-14, https://docs.predictorsdk.com/changelog/2026-10-14-hyperliquid-nfl-matching) `GET /v1/matching-markets/sports` now matches Hyperliquid's NFL game winners, so an NFL event's full-game moneyline lists a `hyperliquid` source market beside the other venues. Hyperliquid lists each NFL game as one market with two sides, one per team, and two market creators list most games, so a game can carry two Hyperliquid markets. They name the teams in opposite orders and neither says which team is home, so a Hyperliquid market joins the event the other venues already list for the same two teams on the same day, and each side is matched to its team by name. A game no other venue lists, or one the venues disagree on, is left out rather than guessed. A Hyperliquid source market's `market_id` and `event_id` are its outcome ID (`11458`), and its outcome IDs are its spot coins (`#114580`, `#114581`), the same IDs `GET /v1/markets/{market_id}` returns. `source_id` takes `hyperliquid:` and `hyperliquid:` (send the `#` as `%23`). Hyperliquid's game winners count overtime and pay 0.5 to each side on a tie, so the rule matrix reads them as equivalent to Kalshi, Polymarket, Predict, Pred and Limitless, and different from ProphetX and SX Bet, which void a tie. Hyperliquid's other markets are unchanged. The SDKs gained `hyperliquid` as a source-market provider value in 0.26.0. ## Pred stays matched while it lists new markets (2026-10-12, https://docs.predictorsdk.com/changelog/2026-10-12-pred-stays-matched) Pred's markets no longer drop out of upcoming games in matching while Pred is adding markets. On 2026-10-12, from about 11:54 UTC until roughly 14:20 UTC, Pred's markets were missing from upcoming games in `GET /v1/matching-markets/sports` (games already played kept them). Pred was listing a new market every few seconds, which shifts the pages of its market list while they are read, and our reader took the shift for a broken list and gave up on every attempt. It now reads a list that grows while it is read in full, so Pred stays matched through its next burst of new markets, and a reading that could have missed a market is now detected and retried rather than used. No field, parameter or route changed, and the SDKs need no update. ## Rule verdicts now draw on how venues settled past games (2026-10-11, https://docs.predictorsdk.com/changelog/2026-10-11-rules-from-settlements) Where a venue's rules text says nothing about overtime or a tie, the rules matrix now uses how that venue actually settled the games the rule decided. Some venues write no rule about overtime or a tied game, so `include_rules=true` showed `unknown` for them and their submarkets read `unverified`. We checked how those venues settled every game of the last month that went past regulation, against ESPN's final and regulation scores, and the matrix now uses what they did: - **Predict, MLB moneylines:** its rules never mention extra innings, but it paid the extra-innings winner of all 13 games that went past nine innings. `overtime` is now `included`. - **AlphaArcade, moneylines:** its rules name only the two teams, but it paid the full-game winner of all 23 games that went to overtime, a shootout or extra innings. `overtime` is now `included`. - **SX Bet, NFL ties:** its help center says nothing about a tied NFL game, but it voided the moneyline of the Giants at Commanders tie on October 11. `tie` is now `void`. Each such value says in its `description` that it rests on settlements, and its `evidence_url` is the venue's record of one of those games. As a result, MLB moneylines and AlphaArcade's hockey and basketball moneylines now read `equivalent`. NFL moneylines that include SX Bet now read `different`, because SX Bet voids a tie while the other venues pay 50-50. Pred's NFL overtime rule stays `unknown` until it settles a game that goes to overtime. No field or parameter changed. The SDKs need no update. ## NHL puck lines read as equivalent, and unclassified markets never pair (2026-10-11, https://docs.predictorsdk.com/changelog/2026-10-11-matching-edge-cases) A puck line of more than one goal no longer reads "unverified" because a venue is silent about overtime, and a market matching could not classify is never paired with another venue's. **NHL puck lines.** With `include_rules=true`, a game line's `overtime` row says whether each venue counts overtime. On an NHL puck line of more than one goal, such as -1.5, that row is now `not_applicable` for every venue: a tied NHL game is decided by exactly one goal (sudden-death overtime, or a shootout that adds one goal to the winner's score), so the favourite fails to cover and the other side covers whether a venue counts overtime or not. AlphaArcade's puck-line rules do not mention overtime, so its puck lines used to leave their submarket `unverified`; they now read `equivalent` when the venues agree on everything else. `not_applicable` is a new value of `overtime`; the field was always documented as open to new values. **Unclassified markets.** When matching cannot tell what a venue's market is (a spread whose side it cannot read, an unfamiliar market type), it used to file the market under a catch-all key that another venue's unclassified market on the same game could share, so two unrelated markets could have been published together. Such a market is now never matched. None was published when this changed, so no submarket you can see today moves. SX Bet hockey markets are also limited to the full-game moneyline, puck line and total, the only types SX Bet lists on the NHL, because its period types are named for quarters. No field was removed and no parameter changed. The SDKs need no update. ## Matching reads each new snapshot in as soon as it is published (2026-10-11, https://docs.predictorsdk.com/changelog/2026-10-11-matching-decodes-ahead) The API now reads every new matching snapshot, and refreshes its copy of today's finished games, in the background as they are published, so a matching list request no longer waits for them, even from a caller who asks only about once a minute. Matching publishes a new snapshot about every 12 seconds, and the API has to read each one into memory before it can answer from it. Until now it did that when a request asked. Earlier today a request that arrived just after a new snapshot stopped waiting for it, because it was answered from the snapshot the API already held. A caller who asks only about once a minute still waited: by then two new snapshots had been published, the API held neither, and it had to read both before it could answer. On the production machine that took about 0.6 to 0.7 seconds, when a request answered from memory takes about 30 milliseconds. Now the API reads each new snapshot in the background as soon as it is published (it looks every 2 seconds), so by the time a request arrives the snapshots are already in memory. In our measurements on a laptop with production data, a request that came after two new snapshots dropped from about 170 milliseconds to about 3, which is the time of any request answered from memory. On the production machine it should drop from about 0.6 seconds to about 30 milliseconds. This applies to `GET /v1/matching-markets/sports`, and to a lookup for settled events (`include_settled=true`), which reads the snapshots the same way. A lookup by event id or `source_id` already found a game in the newest snapshot straight away. The same goes for games that have just finished. The API also keeps a copy of today's finished games in memory, and it refreshed that copy only when a request found it 30 seconds old, so a caller who asks about once a minute could be answered from a copy that was a whole request behind, and miss a game that had only just left the live data. Now the API refreshes that copy every 30 seconds whether or not anyone is asking, so it is at most about 30 seconds old for every caller, not only for callers who ask often. One thing is slightly different. For up to about two seconds after a new snapshot is published, until the API has read it, a response is built from the snapshot before it, so a game that matching only just added can be missing from that response. The next request has it. `snapshot.observed_at` still dates exactly the data the response was built from. No field, parameter or status code changed, so nothing in the SDKs needs updating. ## SDKs 0.25.0 read a response that leaves a field out (2026-10-11, https://docs.predictorsdk.com/changelog/2026-10-11-sdk-0-25-0) The Python SDK 0.25.0 reads a response that leaves out a documented field instead of raising, keeps working on pydantic 1, and declares a pydantic version that actually works. The TypeScript and Go SDKs only update one field description. The TypeScript (`@predictorsdk/client`), Python (`predictorsdk`), and Go (`github.com/PredictorSDK/sdk-go`) SDKs are released at 0.25.0. Nothing in a request or response changed shape. - **Python reads a response that leaves a field out.** A field the API documents as always present, but that a response leaves out (for example during an API rollback), now reads `None` instead of raising `ParsingError`. The TypeScript and Go SDKs already behaved this way. Dates and datetimes still come back as `date` and `datetime`, nested objects as SDK models, and unknown fields are kept. - **Two small Python differences.** A whole number in a decimal field stays a whole number (`price: 1` reads `1`, not `1.0`). An error body that does not match the documented error shape raises the usual typed error for its status, with `code` set to `None`, instead of `ParsingError`. - **pydantic 1 still works, and the stated minimum is real.** The package now requires `pydantic>=1.10.8`. It said `>=1.9.2`, but on Python 3.9, pydantic 1.10.0 to 1.10.7 could not import the SDK at all, so pip could install a combination that failed on import. CI now tests the SDK on pydantic 1 as well as 2. See the [Python SDK](https://docs.predictorsdk.com/sdk/python) page. - **TypeScript and Go.** Only the description of the catalog's `snapshot.observed_at` changed. It now says the time marks when the oldest crawl started, as the API does since today. We checked each published package against the production API before announcing it: - Python 0.25.0 ran on Python 3.9 with pydantic 1.10.8 and on Python 3.12 with pydantic 2.14, and pip refuses pydantic 1.10.7 next to it. - The TypeScript package loaded with `require()` and with `import`. - The Go module built. Each listed a matched event, and Python read the event's start and the snapshot time as datetimes on both pydantic versions. ## Matching answers at once when new data has just arrived (2026-10-11, https://docs.predictorsdk.com/changelog/2026-10-11-matching-faster-after-new-data) A matching list request no longer waits while the newest snapshot is read in. It answers from the snapshot it already has, and the next request has the new one. Matching publishes a new snapshot about every 12 seconds. The first request after each one used to wait while the API read it in. On the production machine that wait was about 0.6 seconds, when a request answered from memory takes about 30 milliseconds. A caller who asked less often than every 12 seconds or so met that wait on most requests. Now `GET /v1/matching-markets/sports` answers at once from the snapshot the API already has, and reads the new one in the background. In our measurements the first request after a new snapshot dropped from about 90 milliseconds to about 3, and ten requests arriving together right after one dropped from about 120 to about 30 (on a laptop with the same data), which should bring the first request after a snapshot in line with any other. One thing is slightly different. For the fraction of a second the new snapshot takes to read in, a response is built from the snapshot before it, so a game that matching only just added can be missing from that one response. The next request has it. `snapshot.observed_at` still dates exactly the data the response was built from, and a game first read after that time can be absent from a response, as it always could. A request that arrives after a longer pause, about half a minute or more with no request, can still wait for the read as before, because by then every snapshot the API held has been replaced. A lookup by event id or `source_id` is not affected: it finds a game in the newest snapshot straight away. Only a lookup for settled events (`include_settled=true`) follows the same rule as the list. No field, parameter or status code changed, so nothing in the SDKs needs updating. ## The catalog's freshness stamp now marks when the crawl started (2026-10-11, https://docs.predictorsdk.com/changelog/2026-10-11-catalog-freshness-start) snapshot.observed_at on GET /v1/markets is when the oldest provider crawl began, not when its snapshot was published, so no row on the page is older than it. `snapshot.observed_at` on `GET /v1/markets` is now the moment the oldest provider's crawl began. Until now it was the moment that crawl's snapshot was published, which comes after the crawl has read every row. A crawl takes time: Kalshi's, the longest, takes about 45 seconds, and Polymarket's about 23. A row read at the start of a crawl was therefore older than the stamp said, by up to that long, while the field's description called it a floor for the whole page. Now the description is true: no row on the page is older than `observed_at`. The matching endpoint's `snapshot.observed_at` already worked this way, so the two now follow the same rule. For you, the value is earlier than before by up to about 45 seconds. It was usually minutes old anyway, because the catalog refreshes about every 30 minutes. Nothing else about it changed. It is still `null` when a snapshot carries no time, still the same on every page of one cursor traversal, still the oldest across providers, and still that provider's own value under `?provider=`. Each provider's snapshot gets its start the next time that provider's crawl finishes after this deploys, so the full catalog is dated by crawl starts within about one crawl cycle. Until a provider has crawled again, its snapshot is dated by when it was published, which is the value it had before. The stamp therefore never becomes `null` because of this change and never moves later; it only moves earlier as providers crawl again. No parameter, field, type or status code changed, so there is nothing to update in the SDKs. Their generated comments for the field were reworded to say "began reading". ## Predict's NBA games now match (2026-10-11, https://docs.predictorsdk.com/changelog/2026-10-11-predict-nba) Predict's NBA moneylines, and its spreads and totals when it lists them, are matched into the same events as Kalshi, Polymarket and SX Bet, with the overtime rule read from Predict's game description. Predict's NBA games now appear in `GET /v1/matching-markets/sports`. Predict lists them separately from its other sports, and matching did not read that listing, so NBA events carried Kalshi, Polymarket, SX Bet, ProphetX and Pred but never Predict (the [Sources](https://docs.predictorsdk.com/concepts/sources) page said so). On October 10, 39 of the 43 NBA events carried Predict's moneyline once it was read. A Predict market is matched only when it is one game's full-game moneyline, spread or total whose teams, outcomes, line and rules text all agree. A spread must name the team giving the points at a negative half-point line, a total must list its Over and Under at the same line, and anything that reads as a half, a quarter, overtime or a prop stays out. Each Predict market also names the Polymarket market it mirrors, and the run now drops a Predict market whose Polymarket twin reads as another submarket (another line, another team or another period) instead of matching it. That check applies to every league Predict is matched in. It dropped nothing on the data we replayed: all 176 Predict markets agreed with their twin. Predict lists spreads and totals only for the games nearest their start (six of the 39 games on October 10, with three to seven lines each), so most NBA events carry its moneyline alone until the day of the game. Where a spread or total is listed, it joins the Kalshi and Polymarket market of the same line as one sub-market. Predict's own spreads and totals say nothing about overtime, but the game's description does ("the final score including any overtime periods"), so each sub-market's [rule matrix](https://docs.predictorsdk.com/guides/game-line-rules) reads `equivalent` on overtime across the three venues. Nothing in a request or a response changed shape, so there is no SDK change. The first matching run after this deploys adds Predict to the NBA events. ## Matching list and lookup no longer time out under load (2026-10-10, https://docs.predictorsdk.com/changelog/2026-10-10-matching-read-cache) The matching list and lookup routes stopped answering for a minute or two at a time on October 10 when several requests arrived together. They now answer from memory in a few milliseconds. On October 10, between about 21:38 and 22:20 UTC, `GET /v1/matching-markets/sports` and `GET /v1/matching-markets/sports/lookup` answered `503` or an empty `502` for a minute or two at a time, every few minutes, whenever several requests arrived together. Every request was reading and decoding tens of megabytes of matching data from scratch, and a handful at once took longer than the nine seconds the API allows a request. The other routes were not affected. That is fixed. The API now keeps the matching data it has already decoded and reads each new snapshot once, instead of once per request. In our measurements a default page of events costs about 3 milliseconds of work instead of about 170, a lookup about 3 instead of 17, and ten requests arriving together about 30 instead of 1,660. Under load the API now answers in milliseconds instead of timing out. One thing is slightly different. The archive of settled games is now read in the background about every 30 seconds, no longer on every request. A game that has just finished can reach the default list, and a cancelled game can leave it, up to about 30 seconds later than before. No field, parameter or status code changed, so nothing in the SDKs needs updating. ## A cancelled game another venue still lists leaves the default matching list (2026-10-10, https://docs.predictorsdk.com/changelog/2026-10-10-cancelled-live-games) A game whose Polymarket moneyline was settled 50-50 because it was never played is now left out of the default population on GET /v1/matching-markets/sports even while another venue still lists it. include_settled=true still returns it. `GET /v1/matching-markets/sports` listed `mlb-nyy-tb-2026-10-10` as one of today's games, in the list and in lookups by `event_id` or `source_id`, although the game was never played: Polymarket settled its moneyline 50-50 two days before its date. The earlier fix for cancelled games covered a game after every venue had delisted it. This one stayed listed because AlphaArcade still listed the game and Polymarket's event stayed open (another of its markets did), so Polymarket's settled moneyline stayed in the matching with AlphaArcade's, and a game that has not started is never read from the settled archive. A game whose Polymarket moneyline was settled 50-50 is now left out of the default population whichever other venues still list it, and `include_settled=true` still returns it with the markets that were matched to it. The game leaves the default list within about two minutes of the fix being deployed (within ten if its start has already passed), and within a minute or two of Polymarket settling a future one. NFL games are never left out this way, because a tied NFL game settles 50-50 too, and a cancelled game that never had a Polymarket market is not detected. ## SDKs 0.24.0 retry the same way, load with require, and expose request ids (2026-10-10, https://docs.predictorsdk.com/changelog/2026-10-10-sdk-0-24-0) The TypeScript, Python and Go SDKs 0.24.0 retry failures the same way in every language, load with require() as well as import, expose each response's request id on errors, ship their license, and drop stream options that configured nothing. The TypeScript (`@predictorsdk/client`), Python (`predictorsdk`), and Go (`github.com/PredictorSDK/sdk-go`) SDKs are released at 0.24.0. One change can break code that compiled against 0.23: the stream options are gone (last item). Nothing else in a request or response changed shape. - **One retry policy.** Every SDK makes the request plus two retries by default; the Go SDK made one retry before. All three also retry a connection that failed before any response arrived (refused, reset, or closed), which only the Python SDK did. A timeout or a cancelled request is never retried, and cancelling ends a wait between retries at once. - **`require()` works.** The TypeScript package ships a CommonJS build beside the ES module one, so `require("@predictorsdk/client")` works on every Node version the package supports. It threw `ERR_REQUIRE_ESM` on Node 18 and on Node 20 before 20.19. - **Errors carry the request id.** Every API response now has an `X-Request-Id` header, and the SDKs expose it on errors: `error.requestId` in TypeScript, `error.headers["x-request-id"]` in Python, and `apiErr.Header.Get("X-Request-Id")` on a Go `*core.APIError`. Quote it when you report a problem; see [error handling](https://docs.predictorsdk.com/guides/error-handling). - **New value and tighter types.** `tradingFees.chargeBasis` can be `close_or_settlement`: Hyperliquid outcome markets charge only when you close or settle a position. A scheduled fee change's `taker` and `maker` are never null, and the types now say so; the current `taker` and `maker` can still be null, and [trading fees](https://docs.predictorsdk.com/guides/trading-fees) says when. - **Packaging.** The npm package and the Python wheel and sdist include the MIT license. The Python wheel no longer installs the generator's tests, and `pip install "predictorsdk[aiohttp]"`, which the client suggests for its async default, now installs the aiohttp transport. - **Removed: stream options.** The API has no streaming endpoints, so the generator's stream reconnection settings configured nothing: Python's `stream_reconnection_enabled` and `max_stream_reconnection_attempts` (client and request options), TypeScript's `stream` client option, and Go's `option.WithMaxStreamReconnectAttempts` and `option.WithoutStreamReconnection`. Code that passed them must drop them. We checked each published package against the production API before announcing it: each one paged through matched events, read the default verdict and the `includeRules` rows on NFL games, looked up an event, read a market and an event, read the request id off an error, and read Hyperliquid's new charge basis. The TypeScript check also loaded the package with `require()`, and the Python check confirmed the license, the absent tests, the aiohttp extra and the removed options. ## Predict's exact Polymarket join runs live, and two coverage limits are stated (2026-10-10, https://docs.predictorsdk.com/changelog/2026-10-10-predict-join-and-coverage-limits) Predict markets are now placed in their Polymarket twin's event by the condition ID Predict declares, and the docs say plainly that an SX Bet event_id stops resolving after its game and that Predict's NBA games are not matched yet. Predict declares which Polymarket market each of its sports markets mirrors, by condition ID. Matching now uses that to put a Predict market in the same event as its Polymarket twin, instead of relying on two parsed slugs agreeing; the join had been wired into a code path production never runs. Every Predict market already agreed with its twin when this shipped, so no event ID, submarket or source market changed. Two limits are now written down where you read them. An SX Bet `event_id` resolves on `GET /v1/events/{event_id}` only while SX Bet lists the fixture's markets, which stops when the game ends. A matching row keeps that `event_id` through the day after, so for a game that has been played it answers `404` while the row's `market_id` still resolves on market detail (see [Which identifier goes where](https://docs.predictorsdk.com/concepts/events-and-markets#which-identifier-goes-where)). And Predict's NBA games, which the docs said it did not list, are listed under a market variant that matching does not read yet, so NBA events carry no Predict market (see [Sources](https://docs.predictorsdk.com/concepts/sources)). ## Kalshi results read as settled, Hyperliquid fees say when they are charged, and other lookup fixes (2026-10-10, https://docs.predictorsdk.com/changelog/2026-10-10-detail-fixes) A Kalshi market with a published result is settled, Hyperliquid outcome fees are charged on closing or settling, AlphaArcade lookups stop hitting the venue's rate limit, and a few names and lines are corrected. **Kalshi `settled` now means what it says.** [`GET /v1/markets/{market_id}`](https://docs.predictorsdk.com/api-reference/getMarket) reported a Kalshi market as `closed` from the moment Kalshi set its result until it finalized it, which takes anywhere from 30 seconds to 30 minutes. A market whose `status` is `determined` (or `amended`) with a result of `yes`, `no` or `scalar` is now `settled`, as is every `finalized` one. A market that is `initialized`, `inactive`, `closed`, or `disputed` (a challenged result is not settled) is `closed`, and an unrecognized status is `closed`. The `status` description lists every venue's mapping. **Hyperliquid outcome fees have their own `charge_basis`.** Hyperliquid's fee page says outcome trading "only charges fees when closing or settling, not when opening outcome positions", but `trading_fees.charge_basis` said `fill`. It is now `close_or_settlement`, a new value of the enum: the fee is charged when a position is closed or settles and never when one is opened. The rate is still your account's own (`account_specific`, `rate: null`), and a market's deployer can add a fee on top through its `deployerFeeScale`; the trading fees guide says how. A client that switches on `charge_basis` needs a case for the new value. **AlphaArcade lookups no longer hit the venue's rate limit.** Every market detail and events lookup of an AlphaArcade id paged AlphaArcade's whole catalog, so about seven lookups back to back drew `429 upstream_rate_limited`. The catalog is now read once every 30 seconds for all lookups, and a failed read still returns an error rather than a missing market. The order book is still read for each market lookup. **A Kalshi ticker with a slash in it is a `400`.** Kalshi tolerates one trailing `/` after a ticker, so `kalshi:KXNBA-27-SAS%2F` used to answer `200` with the real market. A slash cannot be in a Kalshi ticker, so market detail and events now answer `400 invalid_identifier`. Tickers with a `.` in a strike, single-segment tickers, lower case and surrounding spaces still resolve. **Smaller corrections.** - The Los Angeles Clippers are `LA Clippers` in `participants[].name`, the league's own name. Keys did not change, and every spelling a venue sends still resolves to the team. - The Hyperliquid Ballon d'Or legs are in the `sports` category, not `entertainment`. An award now takes its category from its own field of play. - Kalshi's NHL, NBA and NFL tickers now carry the line the same way as MLB and WNBA, so a spread or total built from a ticker alone, with no published strike, no longer reads half a point or a goal too high. Lines Kalshi publishes were never affected. ## Trading fee legs say when they are null, and a scheduled change never has a null leg (2026-10-10, https://docs.predictorsdk.com/changelog/2026-10-10-fee-leg-nullability) The taker and maker legs of trading_fees are null in a few documented cases, and a scheduled_change now types its legs, and itself when present, as never null. `trading_fees.taker` and `trading_fees.maker` on [`GET /v1/markets/{market_id}`](https://docs.predictorsdk.com/api-reference/getMarket) are JSON `null`, never omitted, when no fee model can be stated for that side, and their descriptions now say exactly when, by `availability`. `published` never has a null leg, so `taker.rate` is safe to read once `availability` is `published`. `partial` has one where the venue does not let us state it: Limitless's taker, a Polymarket maker whose market record does not say only takers pay, and both legs when a record omits its fee parameters. SX Bet is `account_specific` with both legs null, and `unavailable` always has both null. Nothing about the responses changed; the spec was only vague. What did change is the generated types for `scheduled_change`. Its legs are never null, because a change is reported only when both legs can be stated, and the object itself is omitted rather than null when there is none. TypeScript, Python and Go now type them that way, so `tradingFees.scheduledChange.taker.rate` compiles under `strict` without a null check. The legs of `trading_fees` itself stay nullable, since they are null in the cases above. ## Every response carries an X-Request-Id (2026-10-10, https://docs.predictorsdk.com/changelog/2026-10-10-request-ids) Each response, success or error, now has an X-Request-Id header naming that one request, so you can quote it when you report a problem. Every response from the API now carries an `X-Request-Id` header: a short opaque string that names that one request. It is on successes and on every error, including the `404` for a path that matches no route, the `405` for a wrong method, a rejected query parameter, a bad key (`401`), a `402` and a `429`. When a call fails or surprises you, quote the id and we can find the request in our logs. The id is opaque, so do not parse it or rely on its length or prefix. The API makes a new one for every request (a retry gets its own) and ignores any `X-Request-Id` you send, so it is not a way to tag your own requests. The generated SDKs already read the header on their errors: `error.requestId` in TypeScript, `error.headers` in Python and `core.APIError.Header` in Go. TypeScript's `requestId` was always empty before, because the API sent no id. See [error handling](https://docs.predictorsdk.com/guides/error-handling#request-ids). ## SDKs 0.23.1 add include_rules, team totals and the new matching values (2026-10-09, https://docs.predictorsdk.com/changelog/2026-10-09-sdk-0-23-1) The TypeScript, Python and Go SDKs 0.23.1 add the include_rules parameter, document team totals and second-half overtime keys, and list limitless as a matching provider and tie and push as rule names. Nothing is removed. The TypeScript (`@predictorsdk/client`), Python (`predictorsdk`), and Go (`github.com/PredictorSDK/sdk-go`) SDKs are released at 0.23.1 with the matching changes shipped since 0.23.0. Nothing is removed, and 0.23.0 keeps working: its clients tolerate the new values. Upgrade to get the new parameter and the complete types. - **`includeRules`** (`include_rules`, `IncludeRules`) on `getSportsMatchingMarkets` and `lookupSportsMatchingMarkets`. Every moneyline, spread, total and team total carries `settlementEquivalence`, whether its venues settle a tie, overtime and a line that lands exactly the same way; send `includeRules: true` to also get the `ruleComparisons` rows behind it. See [game-line rules](https://docs.predictorsdk.com/guides/game-line-rules). - **Team totals.** A submarket can have `marketType: "team_total"`, with the team as its `subject` and `over`/`under` outcomes. `marketType` stays a string, so new kinds of market never break parsing. - **New values in existing fields.** `limitless` is a matching provider in `sourceMarkets[].provider` and a `sourceId` prefix; `tie` and `push` are rule names in `ruleComparisons`; a second-half or fourth-quarter line that counts overtime has a key ending in `:incl_ot` and a display name ending " (incl. OT)". We checked each published package against the production API before announcing it: each one paged through matched events, read the default verdict and the `includeRules` rows on NFL games, and found team totals there. ## Game-line rule rows are now opt-in with include_rules (2026-10-09, https://docs.predictorsdk.com/changelog/2026-10-09-rules-opt-in) A game line always carries settlement_equivalence; its rule_comparisons rows now come only with include_rules=true, which makes default responses about 60% smaller. Every moneyline, spread and total recently started carrying `rule_comparisons`, the three rows (`tie`, `overtime`, `push`) that say how each venue settles a tie, overtime and a line that lands exactly. They turned out to be about 60% of every football event's size, and the football period lines added the same day multiplied the markets they ride on. A page of 100 events with every submarket reached about 11 MB, its first byte took anywhere from 1.3 to 9.4 seconds, and some requests ran into the API's nine-second limit and got a `503` or an empty `502` instead of data. `GET /v1/matching-markets/sports` and `GET /v1/matching-markets/sports/lookup` now take `include_rules` (boolean, default `false`). Without it a game line still carries `settlement_equivalence`, the verdict, and leaves out the rows behind it; with `include_rules=true` the response is exactly what it was before this change. In a test shaped like production, default responses are about 60% smaller. If you read `rule_comparisons` on a moneyline, spread or total, add `include_rules=true`, ideally on a lookup or a small page. Player props are not affected: they always carry their nine rows. A `cursor` works with or without the flag, because it changes what each event lists and never which events come back. The regenerated SDKs add `includeRules` (TypeScript), `include_rules` (Python) and `IncludeRules` (Go). Read [game-line rules](https://docs.predictorsdk.com/guides/game-line-rules). ## NFL team totals match across Kalshi and Polymarket (2026-10-09, https://docs.predictorsdk.com/changelog/2026-10-09-team-totals) A team's own total (the Eagles over 24.5 points) is a new market_type, team_total, with the team as its subject; NFL full-game and first-half team totals match across Kalshi and Polymarket. A team total is one team's own points in a game, "the Eagles over 24.5", and it is not the game's total. `GET /v1/matching-markets/sports?include_submarkets=true` now lists it as its own sub-market type, `market_type: team_total`, for NFL games on Kalshi and Polymarket. A team total carries its team as the `subject` (a game total has none): `{"type": "participant", "key": "phi", "name": "Philadelphia Eagles"}`. Its `metric` is `points`, its `line` is a positive threshold, its `display_name` names the team (`Philadelphia Eagles Total 24.5`, `1H Philadelphia Eagles Total 13.5`), and its outcomes are `over` and `under` for that team. The key names the team as well, `team_total|full|team_total:phi:incl_ot|24.5`, so the Eagles' line and the Jaguars' at the same number are two sub-markets and never one. A full-game team total counts overtime, as a full-game total does, and says so in its key and in `rules.settlement`; a first half ends before overtime can begin. Every team total carries the same rule matrix as any game line, and a Kalshi and Polymarket pair read `equivalent` on all three rules. On one recording of 2026-10-09 the two venues listed the same team, period and line for **236 sub-markets, 66 full-game and 170 first-half**. Kalshi listed 379 full-game and 331 first-half NFL team totals and Polymarket 946, 688 first-half and 688 second-half. Polymarket's second-half team totals count overtime (carrying `incl_ot` in their key) and stay one venue's line, because Kalshi lists no second-half team total, so they do not appear. Each venue's team is read from its own structure, Kalshi's ticker suffix and Polymarket's market slug, and a team total whose title or line contradicts its team is left out rather than filed under a guess. Nothing that was already matched changed: the sports sources were replayed through the previous build and this one on one recording, and every sub-market key, source market and published field outside team totals was identical. The one thing that moved is a latent mislabel: Kalshi's WNBA team-total series (36 markets that day) were filed as game totals with the team in the detail (`total|full|team_total:atl:incl_ot|72.5`). No other venue lists them, so none was ever published, and they are `team_total` rows now. Other leagues' team totals are not matched yet. `market_type` is a plain string, not an enum: a value you do not know yet is a new kind of market, and a client reads it as text. The descriptions of `market_type`, `metric`, `line`, `subject`, `key`, `display_name` and `rules.settlement` now say what a team total is, and the SDKs were regenerated for them; no field was added. See [Sources](https://docs.predictorsdk.com/concepts/sources) for the per-venue detail. ## Second halves and fourth quarters match under their own overtime rule (2026-10-09, https://docs.predictorsdk.com/changelog/2026-10-09-late-period-overtime) A second-half or fourth-quarter line that counts overtime now matches other venues that count it, under a key ending :incl_ot; NFL second halves on Kalshi and Polymarket match. Lines that exclude overtime keep their keys. Second halves and fourth quarters end where overtime begins, and venues treat that differently, so these lines used to match only when a venue's rules said overtime does not count. Each one now matches under its own rule, read from the venue's market text, and only venues with the same rule share a submarket. A line that counts overtime gets the key it would have had with `:incl_ot` added to its detail, for example `total|half:2|game_total:incl_ot|21.5` or `spread|half:2|spread:jax:incl_ot|2.5`. It publishes `rules.settlement` of `incl_ot`, and its `display_name` ends with "(incl. OT)", as in `2H Total 21.5 (incl. OT)`, because a bare "2H" reads as regulation play. A line that excludes overtime keeps exactly the key and name it had, so nothing you stored changes. The NFL second half is the result. Kalshi and Polymarket both say their second halves count overtime, so `GET /v1/matching-markets/sports?include_submarkets=true` now lists 232 more NFL submarkets with two venues on one week of live data: 213 spreads and 19 totals, each on Kalshi and Polymarket. NFL fourth quarters, which both venues exclude from overtime, are unchanged. In the WNBA, Polymarket's second half counts overtime and Kalshi's does not, so the two stay in separate submarkets and do not join; the NBA had no second-half or fourth-quarter lines that week. A rule that cannot be read, or that says both, still leaves the line unmatched. No field was added: the descriptions of `key`, `segment`, `display_name` and `rules.settlement` now say what the token means. The sports sources were replayed through the previous build and this one on two recordings, and every key that existed before was identical. See [Sources](https://docs.predictorsdk.com/concepts/sources) for the per-venue detail. ## NFL half and quarter spreads and totals match across venues (2026-10-09, https://docs.predictorsdk.com/changelog/2026-10-09-nfl-period-lines) Kalshi, Polymarket, and SX.Bet's NFL first-half and quarter spreads and totals now join the matched event of the same game; second halves stay out because they count overtime. NFL games now carry their half and quarter lines. `GET /v1/matching-markets/sports?include_submarkets=true` (and a lookup, which returns every submarket) lists first-half and quarter 1 to 4 spreads and totals beside the full game, with `segment` set to `half:1` or `quarter:1` to `quarter:4`, a `display_name` such as `1H Jacksonville Jaguars -2.5` or `Q4 Total 10.5`, and each venue's market and sides under it. On one week of live data that is about 1,160 submarkets with two or more venues: 835 spreads and 327 totals, led by the first half (226 spreads, 45 totals) and the four quarters (140 to 158 spreads and 70 to 72 totals each). The venues match as follows. Kalshi and Polymarket list the first half and all four quarters, and SX.Bet the first half and quarters 1 to 3 (it lists no NFL fourth quarter). Kalshi's winner markets for a half or quarter ("Will Buffalo win the 1st Half?") are matched as that team's −0.5 spread for the period, which joins other venues' −0.5 lines; the tie leg and every half or quarter moneyline are not matched, because the venues settle a tied period differently. An SX.Bet spread's team is read from its own label, and a Kalshi or Polymarket market's period from its series or its structured market type. **Second halves are not matched.** A second half or fourth quarter ends where overtime begins, and a line there joins only when the venue's own rules exclude overtime. Kalshi's and Polymarket's NFL fourth quarters do, so those lines match; both venues' NFL second halves count overtime, so those lines are left out rather than joined with a venue that does not. The rule is read from each market's own text, so a change on either venue changes the result without a release. NFL team totals and ProphetX's half and quarter lines are not matched yet. Nothing about the response shape or the full-game lines changed: the same sports sources were replayed through the previous build and this one, and every existing line was identical. Each new submarket carries the tie, overtime, and push rule comparison that full-game lines do. See [Sources](https://docs.predictorsdk.com/concepts/sources) for the market types each venue matches. ## Game lines publish how each venue settles a tie, overtime and a push (2026-10-09, https://docs.predictorsdk.com/changelog/2026-10-09-game-line-rules) Every moneyline, spread and total on the sports matching endpoint now carries a three-row rule matrix and a settlement_equivalence summary. `GET /v1/matching-markets/sports` and its lookup route now publish `settlement_equivalence` and `rule_comparisons` on every moneyline, spread and total, the fields player props already carried. The matrix has three rows: `tie` (what a venue does when the game or period ends level), `overtime` (whether overtime, extra innings or a shootout counts) and `push` (a line landing exactly). Each source market gets a value, a plain-words description and, for every known value, an `evidence_url` pointing at the venue's rules. A rule a venue has not written down is `unknown`, and `unknown` never counts as agreement. Today the only league where a tie can differ is the NFL: Kalshi, Polymarket, Predict, Pred, Limitless and AlphaArcade pay a tied game 50-50, ProphetX voids it, and SX Bet's help center does not say. Matching is unchanged: venues are paired exactly as before and no key moved; the matrix is the evidence for deciding whether a pairing is a hedge. It is additive, reuses the player-prop schemas (the `rule` enum gains `tie` and `push`), and the regenerated SDKs carry the new descriptions. Read [game-line rules](https://docs.predictorsdk.com/guides/game-line-rules). ## AlphaArcade puck lines match across venues (2026-10-09, https://docs.predictorsdk.com/changelog/2026-10-09-alphaarcade-puck-lines) AlphaArcade's single-line spread markets, NHL puck lines first, now join the same spread row as Polymarket, Kalshi, and SX.Bet for the game. `GET /v1/matching-markets/sports` now matches AlphaArcade's spreads that are one market with one line, such as "Will Capitals -1.5 win?". Each sits in the same spread row as the game's Polymarket, Kalshi, and SX.Bet spreads for that team and line, with AlphaArcade's `yes` side filed as the team covering the line and its `no` side as the team not covering it, under the same token ids Polymarket's market uses. When this shipped, that was three of the night's NHL games. AlphaArcade also lists spreads as one market holding several lines, each its own option with its own id, and it lists totals the same way; those, and any spread whose game line is not listed beside it, stay in the catalog only. Only a negative half-point line is matched. AlphaArcade's rules never say how overtime counts, and a hockey game that reaches overtime is decided by one goal, so a line of 1.5 goals settles the same either way; a half-goal NHL line, and rules that limit the result to regulation, are left out. Nothing in the response's shape changed. ## Limitless NFL moneylines match across venues (2026-10-09, https://docs.predictorsdk.com/changelog/2026-10-09-limitless-nfl-matching) Limitless's NFL game moneylines now join the matched event of the same game, and source_id accepts limitless:{slug}. Limitless lists a moneyline for each NFL game that mirrors Polymarket's market for the same game, and `GET /v1/matching-markets/sports` now matches them. A Limitless market appears in its game's full-game moneyline with `provider: limitless`. Its `market_id` is its slug, which is also its `event_id` because a single market is its own event, and its outcomes are `yes` and `no`, the ids and names `GET /v1/markets/{market_id}` publishes: `yes` is the team the market names first, which is Polymarket's first outcome and the away team, and `no` is the other. `source_id=limitless:{slug}` finds a game, and `limitless:yes` and `limitless:no` are a `400` pointing to `market_id`, as Kalshi's and Pred's sides are. A Limitless game is matched only when its title, its rules text and its Polymarket slug name the same two teams in the same order and agree on the date, and its rules say that overtime counts and a tie resolves 50-50, the rule Polymarket, Kalshi, Pred, Predict and AlphaArcade use too; any other game is left out, not guessed. Limitless's start time is a copy taken when it lists a game and does not follow a schedule change (it read 4:25 PM ET for a game ESPN and Polymarket have at 1:00 PM), so it dates the game but is never published as `scheduled_start`. Nothing changes for the other venues' markets: matching the same data with and without Limitless left every other venue's markets in every event identical. The `provider` enum gains `limitless`, which ships in the next SDK release; older SDKs keep working and read it as an unrecognized value. ## SDKs 0.23.0 page through results and follow the 0.23 API (2026-10-09, https://docs.predictorsdk.com/changelog/2026-10-09-sdk-0-23-0) 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](https://docs.predictorsdk.com/changelog) 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`, `getBinanceCryptoPrices` and `listPolymarketWalletPositions` (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 pager` in Python, and `page.Iterator()` in Go. The current page's items are `page.data` in TypeScript, `pager.items` in Python and `page.Results` in Go, and the whole response, with `snapshot` and `pagination`, is `response` (`Response` in Go). See [Pagination](https://docs.predictorsdk.com/guides/pagination). - **Lookups have their own method.** `lookupSportsMatchingMarkets` (`lookup_sports_matching_markets`, `LookupSportsMatchingMarkets`) takes `eventId` and `sourceId` and returns `data`, `lookups` and `snapshot`. `getSportsMatchingMarkets` no longer takes identifiers; it takes the new `league`, `scheduledDate` and `participant` filters. - **Matched events carry their schedule.** `scheduledDate` is a date (a `string` in TypeScript, `datetime.date` in Python, `time.Time` in Go) and `scheduledStart` is a timestamp or null (`Date | null`, `Optional[datetime]`, `*time.Time`). - **`provider` replaces `platform`** on `getMarket` and `getEvent` and on the event response. In Go the request types are `GetMarketRequestProvider` and `GetEventRequestProvider`; a matching row's `Provider` converts to either with a plain type conversion. - **Crypto prices and `total`.** `getBinanceCryptoPrices` takes `cursor` and returns `data` and `pagination`, and `pagination.total` is 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 `nil` request 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. ## Matched events carry their schedule, lookups have their own route, platform is provider, and SDK calls return pages (2026-10-09, https://docs.predictorsdk.com/changelog/2026-10-09-matching-release-0-23) Every matched event publishes scheduled_date and scheduled_start and the list filters by league, date and participant; lookups move to GET /v1/matching-markets/sports/lookup; the platform override is provider; crypto prices share the pagination envelope; SDK 0.23.0 returns pages you can iterate. This release changes five things callers touch, and each is a break for code written against the old shape. SDK 0.23.0 ships right after the API deploy; the table at the end maps every old call to its new one. - **Every matched event says when it is scheduled.** `data[]` on the list and on the lookup now carries `scheduled_date`, the game's calendar day in America/New_York as `YYYY-MM-DD`, always present, and `scheduled_start`, its start in UTC with milliseconds (`2026-10-16T00:15:00.000Z`). `scheduled_start` is `null` when no venue published an exact start: Kalshi's tickers and Polymarket's slugs carry a date and no time, so a game only they list has a date and a null start, and a "time to be announced" is never published as a start. It says when the game is scheduled, not whether it has started or ended. `scheduled_date` is the day the default list judges the game by. Until the new matching build has written two runs after the deploy, `scheduled_start` reads `null` on every event; the date is there from the first response. - **The list filters.** `GET /v1/matching-markets/sports` takes `league` (`nba`, `wnba`, `nfl`, `mlb` or `nhl`), `scheduled_date` (`YYYY-MM-DD`, America/New_York) and `participant` (a `participants[].key` such as `okc`, case-insensitive). They compose, `pagination.total` and `has_more` count the filtered set, and a cursor works only with the filters that issued it. Participant keys are unique only within a league (`la` is the Rams in the NFL and the Sparks in the WNBA), so send `league` with it. An empty value, an unknown league or a malformed date is a `400` quoting it. `scheduled_date` reads the same population as the rest of the list, so a past day matches nothing unless `include_settled=true`. - **Lookups moved to `GET /v1/matching-markets/sports/lookup`.** A page of the schedule has a cursor; a lookup is one unpaginated answer that reports what each identifier found. They are now two routes with two response shapes: the list answers `data`, `pagination` and `snapshot`, and the lookup answers `data`, `lookups` and `snapshot`, all always present. `event_id` and `source_id` on the list route are a `400` that names the lookup route, and the lookup needs at least one identifier. Everything else about a lookup is unchanged: up to 100 unique identifiers, case-insensitive, every submarket by default, and `include_settled` choosing the population. - **`platform` is `provider`.** `GET /v1/markets/{market_id}` and `GET /v1/events/{event_id}` take `?provider=` where they took `?platform=`, and an event answers `provider` where it answered `platform`, so the value a matching row publishes as `provider` goes straight into both. The composite `{provider}:{id}` form is unchanged. `?platform=` is a `400` that names `provider`, and the `409` for an ambiguous identifier now advises `?provider=`. - **Crypto prices use the shared envelope.** `GET /v1/crypto-prices/binance` answered `prices`, `pagination_key` and `total` and took `pagination_key`. It now answers `data` and `pagination` and takes `cursor`, like the other paginated routes. A cursor from the old response still decodes. A `limit` above 100 is a `400`; it used to be clamped to 100 with a `200`. With no time range the route still answers the one latest price. - **`pagination.total` is `null` where a route cannot count.** Wallet positions and crypto prices read upstreams that give no count. Positions answered `0`, and crypto prices the number of prices on the page, so neither was a count of the result; both now answer `null`, and `0` means empty only on `GET /v1/markets` and the matching list. Follow `has_more` to paginate. The field is still always present. The SDKs generate auto-pagination from the API's `cursor` and `pagination.next_cursor`, so each of the four paginated calls (`getSportsMatchingMarkets`, `getMarkets`, `getBinanceCryptoPrices`, `listPolymarketWalletPositions`) now returns a page in place of the response body. Iterating the page walks every page and repeats the filters; its first page is `data` in TypeScript, `items` in Python and `Results` in Go, and the whole response, with `snapshot` and `pagination`, is `response` in TypeScript and Python and `Response` in Go. The [Pagination guide](https://docs.predictorsdk.com/guides/pagination) and the SDK pages show each language. | Before | After | |---|---| | `GET /v1/matching-markets/sports?source_id=…` or `?event_id=…` | `GET /v1/matching-markets/sports/lookup?source_id=…` or `?event_id=…` | | `GET /v1/markets/{id}?platform=kalshi` and `GET /v1/events/{id}?platform=kalshi` | `?provider=kalshi` on both | | `event.platform` on an event response | `event.provider` | | `GET /v1/crypto-prices/binance?pagination_key=…` and `response.prices` | `?cursor=…` and `response.data`, with `response.pagination` | | TypeScript `client.getSportsMatchingMarkets({ sourceId })` | `client.lookupSportsMatchingMarkets({ sourceId })` | | Python `client.get_sports_matching_markets(source_id=…)` | `client.lookup_sports_matching_markets(source_id=…)` | | Go `client.GetSportsMatchingMarkets(ctx, &…Request{SourceID: …})` | `client.LookupSportsMatchingMarkets(ctx, &…LookupSportsMatchingMarketsRequest{SourceID: …})` | | `getMarket({ marketId, platform })` and `getEvent({ eventId, platform })` | the same with `provider` | | `response.pagination.nextCursor` loops | iterate the page: `for await (const item of page)` in TypeScript, `for item in pager` in Python, `page.Iterator()` in Go | | `response.data` on a paginated call (Python and Go) | `pager.items` in Python, `page.Results` in Go; TypeScript keeps `page.data` | SDK 0.23.0 is released right after the API deploy, so upgrade it with the API. Older SDKs keep working for the calls this release did not touch. An older Python SDK (0.22 and earlier) fails to parse three responses, because its models require fields that moved, and raises a `ParsingError` that carries the status code and body: `GET /v1/events/{event_id}` (it requires `platform`; the response says `provider`), `GET /v1/crypto-prices/binance` (it requires `prices`; the response has `data` and `pagination`) and `GET /v1/polymarket/wallet/positions` (it requires an integer `pagination.total`; the response carries `null`). Older TypeScript and Go clients do not validate responses, so those fields read as undefined or empty rather than raising. Any older SDK that sends `platform`, `pagination_key`, or `event_id` or `source_id` to the list gets a `400` naming the replacement. ## Cancelled games leave the default matching list (2026-10-09, https://docs.predictorsdk.com/changelog/2026-10-09-cancelled-games) A game that was cancelled and never played is no longer listed as one of today's games on GET /v1/matching-markets/sports, in list or lookup mode. include_settled=true still returns it. `GET /v1/matching-markets/sports` listed a game that was never played as one of today's games. When a game is cancelled with no make-up date, Polymarket settles its moneyline 50-50. The venues close its markets, the game left the live matching and was kept like a finished game, and finished games stay in the default list for the day, so `mlb-tb-nyy-2026-10-08`, a postseason game that was never played, was the first event on the default page. A game whose Polymarket moneyline was settled 50-50 is now left out of the default population, in the list and in lookups by `event_id` or `source_id`. `include_settled=true` still returns it, with the Polymarket and Predict markets that were matched to it. The game leaves the default list within about ten minutes of Polymarket settling it. NFL games are never left out this way, because a tied NFL game settles 50-50 too, and a cancelled game that never had a Polymarket market is not detected. ## Malformed query strings and overlong keys answer 400 and 401 (2026-10-09, https://docs.predictorsdk.com/changelog/2026-10-09-request-mistakes) A query string separated by semicolons or carrying a stray percent sign is now a 400 naming the pair at fault, an API key longer than 256 characters is a 401, and an empty player_prop_match means its default. Three request mistakes now get the answer that says what went wrong. A query string separated with `;` (`?limit=5;provider=kalshi`) or carrying a `%` that is not followed by two hex digits used to be read as something else: the `;` pair was dropped, so a filter was silently ignored and the response looked filtered when it was not. Every route except the two webhooks now answers `400` with code `invalid_parameter`, quoting the pair at fault. An API key longer than 256 characters answered `502`, which reads as an outage and invites a retry; it is now `401` with code `invalid_api_key`, like any other key that is not valid. And `player_prop_match=` sent empty on [`GET /v1/matching-markets/sports`](https://docs.predictorsdk.com/api-reference/getSportsMatchingMarkets) now means its default, as an empty `limit` or `cursor` already did. See [error handling](https://docs.predictorsdk.com/guides/error-handling). ## Kalshi game events include every game line (2026-10-09, https://docs.predictorsdk.com/changelog/2026-10-09-kalshi-event-siblings) GET /v1/events on a Kalshi game now returns MLB run lines, totals and team totals, NHL period lines, team totals and overtime, and the NFL tie market, and no longer asks Kalshi for series it has retired. `GET /v1/events/{event_id}` on a Kalshi game gathers the game's other Kalshi series into one event, and that list had gaps. An MLB game returned its first-five-innings and first-inning markets but never its run line, total or team totals, so the lines a matching row is most often about were missing from the event it points to; it now returns all ten of its game-line series. NHL games add their period winners, spreads and totals and their team totals, and follow Kalshi's rename of NHL overtime to `KXNHLOT`, which left the old series answering 404 on every request. NFL games add the market on the game ending tied. Two WNBA series that have never listed a game are no longer requested, and the NBA's new first-half winner series is included. Player props are still not gathered into the event. Nothing in the response's shape changed; `fanout.siblings_attempted` lists the new series. ## Kalshi markets use Kalshi's own category (2026-10-09, https://docs.predictorsdk.com/changelog/2026-10-09-kalshi-catalog-categories) GET /v1/markets now takes each Kalshi market's category from the category Kalshi gives its series, so category=sports finds Kalshi's sports markets and the wrong categories guessed from tickers and titles are gone. Kalshi markets in `GET /v1/markets` now take the category Kalshi itself gives their series, instead of a guess from their ticker and title. Before, about 40% of Kalshi markets were `unknown`, so `?category=sports` missed roughly 20,000 of Kalshi's sports markets, and some were plainly wrong: the Summer Olympics lacrosse qualifiers were `crypto` because their ticker starts with "SOL", and a Texas Tech championship market was `technology`. Now 2 of about 135,000 open Kalshi markets are `unknown`. Sports is `sports`; Elections and Politics are `politics`; Financials, Companies and Commodities are `finance`; and Kalshi's Mentions (what someone will say on a call or broadcast), Health and Transportation series are `other`. A market's category changes the next time the Kalshi catalog refreshes after this release, and no request or response changed. See [filtering](https://docs.predictorsdk.com/guides/filtering) for the category values. ## SDKs 0.22.0 type the new error body and fix retries (2026-10-04, https://docs.predictorsdk.com/changelog/2026-10-04-sdk-0-22-0) The TypeScript, Python, and Go SDKs 0.22.0 read errors by code, stop waiting for the rate-limit window on server errors, never retry a 409, honour aborts and deadlines during a backoff, and work on Python 3.8 and 3.9. The TypeScript (`@predictorsdk/client`), Python (`predictorsdk`), and Go (`github.com/PredictorSDK/sdk-go`) SDKs are released at 0.22.0, typing the [new error shape](https://docs.predictorsdk.com/guides/error-handling) shipped the same day. Upgrade now if you use Python: 0.21.0 and earlier require the removed `error` member, so every error response raises a `ParsingError` instead of its typed error. - **Errors are read by `code`.** `ErrorResponse` is `code`, `message`, `statusCode` (`status_code` in Python, `StatusCode` in Go), and the optional `param` and `errors`, a list of `ErrorParamProblem` (`param`, `value`, `message`). The 409 and 402 bodies carry `code` and `message` too. The `error` field is gone, so replace `error.body.error` with `error.body.code`, or `error.body.message` for display. - **A server error no longer waits for the rate-limit window.** The SDKs waited until `X-RateLimit-Reset` before retrying a `502` or `503`, up to a minute per retry, because the API sends that header on every response. Only a `429` waits for it now. Other retried statuses honour `Retry-After` and otherwise back off from one second. - **Python no longer retries a `409`.** An ambiguous identifier answers the same `409` every time, so a bare ID took over a minute and three requests to fail. Catch `ConflictError` and retry with a `platform` from `e.body.candidates`. - **An abort or a deadline ends a wait.** A TypeScript `abortSignal` and a Go `context` now cancel a backoff in progress, where the SDK used to finish the wait first. Go also returns after its last attempt instead of waiting once more. - **Python 3.8 and 3.9 work with pydantic 2.** Every call raised `TypeError: unsupported operand type(s) for |` on the versions the package declares, including the `python3` macOS ships. CI now tests 3.9 as well as 3.12. - **The docstrings match the API**: market detail lists one outcome per option on a grouped market, `pricing.source` names every venue, and each status maps all nine venues. ## Settled markets, titles and lookups fixed after a customer review (2026-10-04, https://docs.predictorsdk.com/changelog/2026-10-04-customer-review-fixes) Market detail reports settled markets as settled, finds closed Polymarket markets by slug and condition ID, titles Hyperliquid, ProphetX and SX Bet markets readably, and matching keeps today's finished games. A second review of the API, docs and SDKs on 2026-10-04, read as a customer would and checked against each venue's own data, found these defects. All are fixed. **Market detail** - **A settled market reads `settled`.** SX Bet reports a result in `reportedDate` and can leave a settled market `ACTIVE` for months, so 4 of 10 settled markets read `open`. Polymarket's resolved markets read `closed`. A market that is not open is never `pricing.availability: live`, whatever quotes it still shows: the resolved 2024 election read `live`. - **A closed Polymarket market resolves by slug and by condition ID.** Both answered `404` once a game finished, so a wallet position could not be priced or titled after its game. A numeric ID past Polymarket's range answers `404`, not `502`. - **Hyperliquid markets are titled in words**, such as "2026/2027 English Premier League winner — Arsenal", and filed under a category. They read as `template:` IDs, and draw and rate-decision legs were missing. - **Limitless `bid_size` and `ask_size` are shares.** They were raw units, a million times the share count. - **An AlphaArcade multi-choice market keys every option**, by the option's own market ID, which market detail resolves. Only options mirroring a Polymarket market had an `outcome_id`: 3 of the 21 in the 2028 presidential market. - **A Kalshi ticker works in any case** on market detail and `/v1/events`, as it does in matching lookups. - The Limitless group and Pred parent views report `pricing.source: market_record`, since they read no order book. **Catalog** - **Every ProphetX row is `category: sports`.** 1,350 of 1,547 were `unknown`, so `?category=sports` dropped most of ProphetX. - **SX Bet and ProphetX rows carry market detail's title.** An SX Bet game's moneyline, spreads and totals all read as the team pair; they now read by their outcomes ("Seattle Seahawks -2 vs Los Angeles Chargers +2"). A ProphetX market is "event: market" on every surface. **Matching** - **Today's finished games stay in the default list with every venue.** Once venues settled and delisted a game, it dropped out or kept only the venues still listing it, so a Kalshi ticker for a game played that evening found nothing. Games archived before 2026-10-04 21:26 UTC keep only the venues that still listed them, usually two; they age out by 2026-11-04. - **A ProphetX prop's `:` ID**, the form the catalog and `/v1/events` publish, finds its game. - **Player-prop outcome labels spell the stat in words**: "over 8.5 longest reception", not "longest_reception". **Crypto prices** - **A `start_time`–`end_time` range is walked newest first and returns every price.** Page one held the range's first seconds and the cursor pointed before them, so a 60-second range read 10 at a time returned 11 prices. **Responses and docs** - Every response carries `Vary: Accept-Encoding`, since responses are gzipped for a client that accepts gzip. - `/llms.txt` opens with the base URL, authentication and the usual workflow, and its links are absolute. `/llms-full.txt` is plain text and includes this changelog. An API reference page leads with one sentence. Old `/docs/...` links redirect to their pages. ## Every error has one shape with a stable code (2026-10-04, https://docs.predictorsdk.com/changelog/2026-10-04-errors-one-shape) Error responses on every route carry a machine-readable code, a message, the parameter at fault, and every problem in the request; repeated and empty parameters are rejected everywhere. An error used to be `{"error": "...", "status_code": N}`, and `error` held a short phrase on some routes (`market not found`), a Title-Case phrase on others (`Invalid platform`), and a full sentence on matching. A client could tell one cause from another only by matching prose. Every route now answers with one shape: ```json { "code": "invalid_parameter", "message": "invalid limit \"500\": limit must be <= 100", "status_code": 400, "param": "limit" } ``` - **`code` is the stable, machine-readable reason**, such as `invalid_identifier`, `market_not_found`, `ambiguous_identifier` or `rate_limited`. Branch on it. `message` is for people and may change. The [Error Handling guide](https://docs.predictorsdk.com/guides/error-handling) lists every code. - **`param`** names the query or path parameter at fault. **`errors`** lists every problem when a request has several: a lookup batch with three bad identifiers now names all three, where it named only the first. - **The `error` member is gone.** Read `code`, or `message` for display. A `409` keeps `candidates`, and a `402` keeps `action`, `required_tier` and `current_tier`. - **A repeated or empty parameter is a `400` on every route.** `GET /v1/markets?provider=` returned the whole catalogue, and a repeated filter kept only its first value. The matching lookups `event_id` and `source_id` may still be repeated. - **Identifier mistakes say what is wrong.** A provider prefix that names no provider (`polymarkt:3871438`) is a `400` listing the providers, where it was probed as a slug and answered `404`. A composite ID that contradicts `?platform=` says so, and a key sent without the `Bearer` scheme is told how to send it. SDK 0.22.0 types the new body. Older SDKs still raise the typed error for each status, but the Python client fails to parse the new body, because it requires `error`, and raises a `ParsingError` that carries the status code and body instead. ## SDKs 0.21.0 read matching events from data and lookups (2026-10-04, https://docs.predictorsdk.com/changelog/2026-10-04-sdk-0-21-0) The TypeScript, Python, and Go SDKs 0.21.0 type GET /v1/matching-markets/sports as a data array of events plus lookups, with labels and market names required. The TypeScript (`@predictorsdk/client`), Python (`predictorsdk`), and Go (`github.com/PredictorSDK/sdk-go`) SDKs are released at 0.21.0, typing the [matching response changes](https://docs.predictorsdk.com/concepts/matching-markets) shipped the same day. Upgrade now: 0.20.0 and earlier cannot read the new response. Python's client requires the `canonical_events` field the API no longer sends and raises on every matching call, and TypeScript and Go find no events. - **Events are `data`, a list in start order.** TypeScript `response.data` (`CanonicalSportsEvent[]`), Python `response.data`, Go `response.Data` (`[]*CanonicalSportsEvent`) replace the `canonicalEvents` / `canonical_events` / `CanonicalEvents` map. Read each event's ID from its own `eventId` / `event_id` / `EventID`. - **Lookups are `lookups`.** A map from each identifier you sent to a `SportsMatchingLookup` with `eventIds` / `event_ids` / `EventIDs`, empty when the identifier found nothing. It is absent (`undefined`, `None`, `nil`) on a list page. - **Fields that are always present are required.** A source market's `marketName` / `market_name` / `MarketName` and its outcomes' `label` and `outcomeId` / `outcome_id` / `OutcomeID` are plain strings now, as are an event's sport, league and participants, a participant's name and role, a submarket's display name and metric, and a canonical outcome's type and side. In Go each changes from `*string` to `string`, so drop the dereference: `*m.MarketName` becomes `m.MarketName`. That is the source-breaking part for Go; TypeScript and Python only lose an `undefined` / `None` case. - **The docstrings match the API**: `include_submarkets` defaults by mode, `source_id` accepts Polymarket condition IDs and rejects side names, and Kalshi and Pred outcomes are labelled `Yes`/`No`. ## Matching responses list events in data and report every lookup (2026-10-04, https://docs.predictorsdk.com/changelog/2026-10-04-matching-response-data-lookups) GET /v1/matching-markets/sports returns events in a data array in start order, reports what each lookup identifier found, returns a lookup's events in full, and labels outcomes as market detail does. Using `GET /v1/matching-markets/sports` the way a client does turned up no wrong mappings, but several things that made it harder to use than it should be. This release fixes them. The response shape changes, so update to SDK 0.21.0, released right after this deploy. **Events are in `data`, in start order.** The `canonical_events` map is now the `data` array, soonest scheduled start first: the same field, and the same order, as every other paginated endpoint. A map could not keep that order, so finding the next games meant sorting by a time the response does not include. Each event appears once. **A lookup reports what each identifier found.** A lookup used to key events by the identifier you sent, so an event found by two identifiers came back twice, and learning which identifiers missed meant diffing your own inputs against the keys. Now `lookups` lists every `event_id` and `source_id` you sent, as you sent it, with the events it found: ```json "lookups": { "kalshi:KXNBAGAME-26OCT20OKCSAS": { "event_ids": ["nba-okc-sas-2026-10-20"] }, "sxbet:L19766755": { "event_ids": ["nba-okc-sas-2026-10-20"] }, "kalshi:KXNBA-27-SAS": { "event_ids": [] } } ``` **A lookup returns its events in full.** `include_submarkets` now defaults to `true` for a lookup, so looking up a spread ticker returns the spread rather than only the game's moneyline. A list page still defaults to the moneyline, which keeps it small. Send the flag to choose either way. **Labels mean what market detail says they mean.** A Kalshi or Pred outcome is labelled with its side, `Yes` or `No`, as `GET /v1/markets/{market_id}` names it. It used to repeat the market's title on both sides, which read as if the `No` side backed the team in the title. The title is in `market_name`. An SX Bet market is now named by its two outcome labels (`Dallas Cowboys -6.5 vs Tampa Bay Buccaneers +6.5`), as market detail titles it: SX Bet's own name for a market is the game's team pair, shared by the moneyline and every spread and total. Also in this release: - Submarkets are listed full game first, then each half and quarter, with the moneyline, spreads, totals and props in that order. Outcomes list the away team, the cover side and the over first. - Fields that are always present are marked required: an event's sport, league and participants, a source market's `market_name`, and every outcome's `label` and `outcome_id`. - A Polymarket condition ID, the `condition_id` that wallet positions carry, works as `source_id=polymarket:` and on `GET /v1/markets/polymarket:`. - A player prop's own `market_id` finds its game under the default `strict` policy too. It used to find nothing unless you sent `player_prop_match=same_prop`. - New `400`s, each quoting the value: an outcome ID that names a side in every market of its venue (`kalshi:yes`, `sxbet:outcomeOne`), which points you to the market's `market_id`; a control parameter sent twice (`limit=1&limit=50` used to apply the first); and an `event_id` that matches no event but is a venue's identifier, most often a Polymarket slug that carries a night game's UTC date, which names the provider to send it under. - `GET /v1/events/{event_id}` returns every nested `market_id` platform-native, as documented. AlphaArcade, ProphetX, Pred, Hyperliquid and Limitless returned it with the provider prefix, so on three venues a matched market's `market_id` was not among its own event's markets. Send the event's `platform` with a nested ID to market detail. - The docs site's `/llms.txt` lists every page again (it was serving `[object Promise]`), and `/llms-full.txt` includes each API reference page's description. ## What to change [#what-to-change] | Before | Now | |---|---| | `canonical_events[event_id]` in list mode | `data[]`, each event with its `event_id` | | `canonical_events[identifier]` in lookup mode | `lookups[identifier].event_ids`, with the events in `data` | | An identifier that matched nothing: absent | Listed in `lookups` with `"event_ids": []` | | A lookup returned the moneyline unless `include_submarkets=true` | A lookup returns every submarket unless `include_submarkets=false` | | Kalshi and Pred outcome `label`: the market title | `Yes` or `No`; the title is `market_name` | | SX Bet `market_name`: the team pair | Its two outcome labels | | `/v1/events` nested `alpha-arcade:`, `prophetx:`, … | ``, sent to market detail with the event's `platform` | ## Matching keeps late, postponed and settled games whole (2026-10-04, https://docs.predictorsdk.com/changelog/2026-10-04-matching-game-dates) Fixes to how GET /v1/matching-markets/sports dates games and archives settled ones, and line-specific ProphetX prop IDs. A review of `GET /v1/matching-markets/sports` against every venue's own data found no wrong mappings in current games, but four ways games were dated or archived wrongly. All four are fixed. - **Late games no longer drop out at midnight Eastern.** An event whose venues published only a date, or whose start was 8 PM EDT (00:00 UTC), was read as starting the previous evening. Its one-day grace then ran out at midnight while the game was still being played, so a 10 PM ET tip-off left the default list and lookups mid-game. Every venue's exact start is now used, and an event is never dropped before the date its `event_id` ends in plus one day. - **Postponed games stay one event.** Polymarket and Predict keep a game's original date in its slug, so a rained-out game split into two events, one per date. Both venues are now dated by their structured start time in every league, as NFL already was. - **Settled games keep every venue.** Venues settle and delist a game one at a time, so with `include_settled=true` an archived game kept only the last two venues that still listed it, and a game whose lines closed while its player props stayed listed could vanish. For a game that has started, `include_settled=true` now returns the fullest mapping it had, from before its first venue settled. Archive entries from before the September 30 period-line fix, which filed Polymarket's quarter moneylines as the full game, are removed. - **ProphetX player props name their line.** A ProphetX market ID resolves to whichever line ProphetX currently favours, and that moves before kickoff, so a matched prop's `market_id` could price a different line on market detail. Matched props now use `::`, which `GET /v1/markets/{market_id}` resolves to that line; a line ProphetX no longer lists answers `404`. ## SDKs 0.20.0 type event_id as always present (2026-10-04, https://docs.predictorsdk.com/changelog/2026-10-04-sdk-0-20-0) The TypeScript, Python, and Go SDKs 0.20.0 make source_markets[].event_id a required string and document the hardened matching lookups. 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](https://docs.predictorsdk.com/concepts/matching-markets) 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 `400`s 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. ## Matching lookups: outcome tokens, any case, and errors instead of silent misses (2026-10-04, https://docs.predictorsdk.com/changelog/2026-10-04-matching-lookup-hardening) GET /v1/matching-markets/sports finds events by outcome token, matches identifiers case-insensitively, and rejects lookup mistakes that used to answer an empty or unrelated 200. A review of the new matching response, as a customer would use it, found lookups that failed quietly. This release fixes them. **New.** - `source_id` accepts an outcome token on Polymarket, Predict and AlphaArcade: `source_id=polymarket:` finds the game the token belongs to. These tokens identify one market on their own. Other venues' outcome IDs (`yes`, `outcomeOne`, `4`) name a side within one market and are not accepted. - Lookups match case-insensitively: `source_id=kalshi:kxnbagame-26oct20okcsas` and `event_id=NBA-OKC-SAS-2026-10-20` find the same games as the venue's own spelling. The response is still keyed by the identifier as you sent it. **Errors instead of silent misses.** Each of these used to answer `200` with an empty or unrelated result, and now answers `400` quoting the rejected value: - an empty lookup value (`source_id=`), which used to list 25 unrelated events; - a comma-joined list (`source_id=kalshi:A,kalshi:B`), which used to match nothing; repeat the parameter instead; - a venue's own ID sent as `event_id` (a Kalshi ticker, a numeric ID, an SX Bet `L…` fixture, an `0x` hash, a ULID), which used to match nothing; send it as `source_id={provider}:{id}`. A retired lookup parameter such as `kalshi_event_ticker` still answers `400`, and its message now names the replacement (`source_id=kalshi:{id}`). **Default population.** Without `include_submarkets=true` the response publishes only each event's full-game moneyline, so it now lists only events whose full-game moneyline is matched, and `submarkets` is never empty. An event matched only on spreads, totals or props used to appear with no submarkets; set `include_submarkets=true` to see it. **Also:** - `source_markets[].event_id` is now a required field. It was always present in practice; the next SDK release types it as a plain string (Go `EventID` changes from `*string` to `string`). - Event titles always use the participants' full names ("Arizona Cardinals vs. New York Giants"). Some used a venue's abbreviated title, and one event matched only on a Predict spread was titled "Spread -3.5". ## SDKs 0.19.0 adopt the one-shape matching response (2026-10-04, https://docs.predictorsdk.com/changelog/2026-10-04-sdk-0-19-0) 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. 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`** (`canonicalEvents` in TypeScript, `CanonicalEvents` in Go). The `markets` field and the `PlatformMarket` type are gone. By default each event carries its full-game moneyline; set `include_submarkets` for every matched submarket. - **Every source market has the same fields:** `provider`, `event_id` (the venue's parent, for `GET /v1/events/{event_id}`), `market_id` (for `GET /v1/markets/{market_id}`), `market_name`, `market_slug`, and `outcomes`, each mapping a native `outcome_id` to a `canonical_outcome_key`. - **Lookups take `source_id`** (`sourceId`, `SourceID`) as `{provider}:{id}`, alongside `event_id`. The eight per-venue request fields, such as `kalshi_event_ticker` and `pred_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](https://docs.predictorsdk.com/concepts/matching-markets) describes the shape, and [Filtering](https://docs.predictorsdk.com/guides/filtering) the lookup rules. ## Matching responses now use one shape for every venue (2026-10-03, https://docs.predictorsdk.com/changelog/2026-10-03-matching-one-shape) `GET /v1/matching-markets/sports` used to answer with two shapes. The default `markets` map gave each venue its own field names: Kalshi's `event_ticker` and `market_tickers`, Polymarket's `market_slug` and `token_ids`, and everyone else's `market_id` and `outcome_ids`. `include_submarkets=true` then added a `canonical_events` map with uniform fields. Code reading the default map had to branch per venue, and the obvious shortcut broke on exactly one: a Kalshi row had no `market_id`, and its `event_id`, an event ticker, looks just like a market ticker, so sending it to `GET /v1/markets/{market_id}` answered `404`. **There is now one shape.** Every response is a `canonical_events` map. Each event lists its participants and submarkets, and every venue market inside a submarket carries the same references: ```json { "provider": "kalshi", "event_id": "KXNBAGAME-26OCT20OKCSAS", "market_id": "KXNBAGAME-26OCT20OKCSAS-OKC", "market_name": "Oklahoma City wins", "outcomes": [ { "canonical_outcome_key": "winner:okc", "outcome_id": "yes", "side": "yes" }, { "canonical_outcome_key": "winner:sas", "outcome_id": "no", "side": "no" } ] } ``` `event_id` is the venue's parent event, for `GET /v1/events/{event_id}`. `market_id` is the market itself, for `GET /v1/markets/{market_id}`. Each outcome ID is mapped to the canonical outcome it pays on, so you can tell which team a venue's `yes` backs without parsing tickers. By default each event carries only its full-game moneyline, the same content the old map described; `include_submarkets=true` adds every other matched submarket. **Lookups take one parameter.** The eight per-venue parameters (`kalshi_event_ticker`, `polymarket_market_slug`, `predict_market_id`, `sxbet_market_id`, `alpha_arcade_market_id`, `prophetx_event_id`, `prophetx_market_id`, `pred_market_id`) are replaced by `source_id={provider}:{id}`. It takes any `market_id`, `market_slug` or `event_id` a source market publishes, including SX Bet `L…` fixture IDs, which no old parameter accepted. `event_id` still takes canonical keys, and the two now combine, across venues, up to 100 identifiers per request. ## What to change [#what-to-change] - **Read `canonical_events` instead of `markets`.** Each old row maps onto the source markets in an event's moneyline submarket: - Kalshi's `market_tickers` are the `market_id`s of its two entries, one per team. - Polymarket's `market_slug` and `token_ids` are its entry's `market_slug` and `outcomes[].outcome_id`. - Every other venue's `market_id` and `outcome_ids` are its entry's `market_id` and `outcomes[].outcome_id`. - A row's `event_id` is now on each entry. - **Replace per-venue lookups with `source_id`.** `kalshi_event_ticker=KX…` becomes `source_id=kalshi:KX…`, `predict_market_id=1784504` becomes `source_id=predict:1784504`, and so on. Response keys are the identifiers as you sent them, so they now carry the prefix. - **Lowercase `provider` replaces uppercase `platform`** (`ALPHA-ARCADE` became `alpha-arcade`). It is the value `GET /v1/markets/{market_id}` and `GET /v1/events/{event_id}` take as `platform`, so you can pass it straight through, or build the composite `{provider}:{id}`. - **`include_submarkets=false` no longer omits `canonical_events`.** It returns each event with only its moneyline. The old lookup parameters now answer `400` with the list of accepted ones. Clients still reading `markets` get nothing: the Python SDK raises a parsing error, and the TypeScript and Go SDKs see a missing or empty map. Upgrade to the SDK release that follows this change for the new types. ## SX Bet and ProphetX `pricing.as_of` docs now match the API (2026-10-03, https://docs.predictorsdk.com/changelog/2026-10-03-sxbet-prophetx-as-of-docs) Since SX Bet moved its order book to V3 at its 2026-08-25 cutover, `GET /v1/markets/{market_id}` has returned `pricing.as_of: null` with `pricing.as_of_kind: unknown` on every SX Bet market, because the V3 book publishes a version counter and no timestamp. The 2026-08-24 entry announced that, but the API reference and the SDK docstrings still described SX Bet's retired V2 timestamp as a live `quote` stamp, and the published SX Bet example still showed one. All three now describe what the API returns: SX Bet `as_of` is always null, so bound `observed_at` instead. The example is now a real reading of a live NFL moneyline. The `as_of` reference also gains the ProphetX entry it never had. ProphetX reports `as_of_kind: quote`, and its stamp is the best resting offer's own `updated_at`, so on a thin book it can be days old while `availability` reads `live`. Measured across 51 quoted markets sampled from the whole ProphetX catalog on 2026-10-03, it ran from under a minute to 2.6 days old, with a median around two hours. Size any bound on it to the venue, not in seconds. The [trading fees guide](https://docs.predictorsdk.com/guides/trading-fees), which said `as_of_kind` tells you whether `as_of` can be bounded in seconds, now says this too. Two server-side changes came with the cleanup, and neither changes a response SX Bet produces today. A failed SX Bet order-book read used to fall back to the retired V2 route, which has answered `400` to every request since the cutover; that fallback is gone, so a failed read reaches `pricing.availability: unavailable` without a guaranteed-failing second request. And a book that SX Bet answers but that cannot be read as that market's book (an explicit failure status, a missing side, levels that do not parse) now also reports `unavailable`, instead of passing for an empty or one-sided book. None of those shapes occurred across 500 live SX Bet markets checked on 2026-10-03. ## Sports matching now tells you how old its answer is (2026-10-02, https://docs.predictorsdk.com/changelog/2026-10-02-matching-snapshot-observed-at) `GET /v1/matching-markets/sports` reads a matching snapshot built in the background, and published no timestamp. A lookup that matched nothing answered `{"markets": {}}` whether the game is genuinely unmatched across venues or the snapshot had stopped updating hours earlier — and a game listed after a freeze can never be in a frozen snapshot. That second case has happened in production, and nothing in the response could tell the two apart. Every response, in list and lookup mode alike, now carries a `snapshot` block: ```diff { "markets": {}, + "snapshot": { + "observed_at": "2026-09-19T21:14:07.412Z" + } } ``` **What the value means.** `observed_at` is when the OLDEST venue read behind the matching snapshot began — the same "when PredictorSDK read it" meaning it has on the catalog's `snapshot.observed_at` and on `pricing.observed_at`. It is the start of the read, so it never claims data is newer than it is, and it is deliberately not the time the snapshot was written: a snapshot can keep a venue's last good read for up to 10 minutes, and its write time would hide that. **What to expect.** Each venue is re-read about every 30 seconds plus the time the read takes, so while matching is healthy `observed_at` is normally under two minutes old and never more than about 12. Anything older means matching has stopped updating: treat an event the response does not contain as unknown, not unmatched. The [filtering guide](https://docs.predictorsdk.com/guides/filtering#check-how-old-the-answer-is) has a worked check. **It describes each response.** Unlike the catalog, matching has no immutable snapshot to bind a cursor to, so pages of one traversal can come from successive snapshots and the value can advance between pages. Settled events added by `include_settled=true` do not affect it. `observed_at` is `null` when the age is unknown — briefly, while a snapshot written before this release is still being served. Treat `null` as unknown age, not as fresh. Matching snapshots are also fresher and more complete. A snapshot used to be rebuilt once for every venue refresh, in arrival order; under load each rebuild trailed the newest venue reads by 20 to 100 seconds (measured in production). Pending refreshes are now folded into one rebuild over the newest read of every venue. And a restart of the matching worker no longer replaces the complete snapshot with one holding only the first two venues to answer: it now waits for every venue's first read (at most 90 seconds) while the previous snapshot keeps serving. A recent `observed_at` says the snapshot is updating, not that every venue is in it: a venue whose reads keep failing is dropped once its last good read is 10 minutes old, and its events can then be missing from a current snapshot. The TypeScript, Python and Go SDKs gain a `SportsMatchingSnapshot` type on the response; the field is a parsed date-time. Nothing was removed and no existing field changed, so a client that ignores the new block keeps working. ## SDKs 0.18.0 add matching snapshot freshness (2026-10-02, https://docs.predictorsdk.com/changelog/2026-10-02-sdk-0-18-0) The TypeScript, Python, and Go SDKs 0.18.0 type snapshot.observed_at on GET /v1/matching-markets/sports responses. The TypeScript (`@predictorsdk/client`), Python (`predictorsdk`), and Go (`github.com/PredictorSDK/sdk-go`) SDKs are released at 0.18.0. It is the first version that types the `snapshot` block every `GET /v1/matching-markets/sports` response now carries, in list and lookup mode alike. `snapshot.observed_at` is when the oldest venue read behind the matching snapshot began, and `null` when its age is unknown. It parses to `Date | null` in TypeScript, `datetime | None` in Python, and `*time.Time` in Go. Check it before treating an event a response does not contain as unmatched; [Check how old the answer is](https://docs.predictorsdk.com/guides/filtering#check-how-old-the-answer-is) has the numbers and a worked example. The Polymarket wallet positions reference also documents its cursor page-size rules. The API already serves the `snapshot` block, and 0.17.0 predates it; older clients ignore the field. ## Calgary and Vegas NHL games now match on Polymarket and Predict (2026-09-30, https://docs.predictorsdk.com/changelog/2026-09-30-nhl-calgary-vegas) Polymarket and Predict spell the Flames and Golden Knights `cal` and `las`, which left every Calgary and Vegas game out of sports matching. **Fix.** Polymarket's NHL game slugs, and the Predict category slugs that mirror them, spell Calgary `cal` and Vegas `las`, while Kalshi writes `CGY` and `VGK`. Those two spellings were missing from the NHL team table, so every Calgary and Vegas game was left out of `GET /v1/matching-markets/sports` on Polymarket and Predict: 22 of the 182 open Polymarket NHL games on September 30. They now match under the canonical `cgy` and `vgk` codes, as in `nhl-cgy-van-2026-10-03`. ## Half and quarter lines corrected on sports matching (2026-09-30, https://docs.predictorsdk.com/changelog/2026-09-30-period-lines) Quarter markets no longer join full-game lines, period moneylines and second-half lines no longer join across venues that settle them differently, and Kalshi's period winners now match half-point period spreads. **Fix.** On `GET /v1/matching-markets/sports`, Polymarket's 1Q–4Q moneylines on NBA and WNBA games were filed as the full-game moneyline, so the default response's Polymarket `token_ids` carried ten tokens instead of the game's two; its quarter spreads and totals were filed as full-game lines, and NBA "team to score first" markets as the moneyline. Each Polymarket market is now filed under the period Polymarket assigns it, and types outside matching scope are no longer matched. Half and quarter moneylines are no longer matched, because the venues settle a tied period three ways (Kalshi lists the tie as its own contract, Polymarket splits it 50-50, SX.Bet voids it); that removes Kalshi half-winner rows that carried no outcomes and Kalshi "No" selections labelled as the other team winning. A Kalshi team leg loses on a tie, so "Golden State wins the 1st quarter" is Golden State −0.5 for the quarter, and it is now matched as that spread alongside Polymarket's −0.5 quarter spreads. Second-half and fourth-quarter lines now match only when the venue's rules exclude overtime: Kalshi's second half excludes it and Polymarket's counts it, so the second-half spreads previously matched across the two venues are no longer joined. ## Polymarket positions validate upstream pages and cursor bounds (2026-09-30, https://docs.predictorsdk.com/changelog/2026-09-30-polymarket-positions-pagination-validation) Polymarket wallet positions now reject incomplete or inconsistent upstream pages with `502` instead of returning a successful empty or truncated result. Positions cursors cannot bypass the public 100-item page-size maximum: a cursor carrying a larger size returns `400`. The pagination guide and API reference now explain the first-page default of 50, cursor-preserved page sizes, the unknown total (`0`), restarting cursors from the previous implementation, and Polymarket's rejection of protocol contract addresses. ## SDKs 0.17.0 add Pred (2026-09-30, https://docs.predictorsdk.com/changelog/2026-09-30-sdk-0-17-0) The TypeScript, Python, and Go SDKs 0.17.0 type the Pred provider, the pred_market_id lookup filter, and down fee rounding. The TypeScript (`@predictorsdk/client`), Python (`predictorsdk`), and Go (`github.com/PredictorSDK/sdk-go`) SDKs are released at 0.17.0, the first version that includes [Pred](https://docs.predictorsdk.com/concepts/sources), the ninth provider. `pred` is a typed provider and platform value on catalog, market-detail, event, and matching responses, and in the `provider` and `platform` request parameters. `GET /v1/matching-markets/sports` exposes the `pred_market_id` lookup filter, which takes a `:` pair or a bare parent market ID, and market detail's `trading_fees` rounding types the `down` direction that Pred's fee schedule uses. The API has served all three since Pred shipped; 0.16.0 predates them, so upgrade to use them from an SDK. ## Polymarket wallet positions now use Data API v2 (2026-09-24, https://docs.predictorsdk.com/changelog/2026-09-24-polymarket-data-api-v2) The wallet positions endpoint now reads Polymarket Data API v2 ahead of the upstream v1 retirement on October 24, 2026. The public `/v1/polymarket/wallet/positions` response keeps its shape, and the upstream request pins the v1 defaults (open positions, 1-share floor, size-descending order), so the served population and page order are unchanged — verified live against both APIs side by side, byte-identical first page. Pagination is the breaking part: cursors minted by the old offset-backed implementation are rejected, so restart from the first page; `has_more` is now the upstream's exact answer rather than a full-page heuristic; and on cursor pages `pagination.limit` reports the page size the cursor carries. One edge: v2 rejects Polymarket protocol contract addresses (such as the zero address) with a `400` where v1 served an empty page. ## Pred joins as the ninth provider (2026-09-23, https://docs.predictorsdk.com/changelog/2026-09-23-pred-provider) Pred, a peer-to-peer sports prediction exchange on Base, joins as the ninth provider behind the `pred` source key. `GET /v1/markets`, `GET /v1/markets/{market_id}`, and `GET /v1/events/{event_id}` serve Pred markets as provider-native passthrough: the tradeable unit is the child market, with parents grouping the selections of one market (e.g. the three 1x2 outcomes of a soccer moneyline), each addressed as a `pred::` pair. Identity notes: the `0x` + 64-hex id halves share their shape with SX Bet market hashes, so v1 routing is composite-only or `?platform=pred`, and bare ids are never inferred. Quotes come from the child's LONG-side order book (prices in cents) with the SHORT side derived by complement. Reads are public and keyless — login-with-signature mints a JWT for trading routes only, so there is no read credential to configure. `trading_fees` on market detail reports the venue's published schedule — a taker-only quadratic at `fee_rate_bps`/10000 with makers free, rounded down to 1e-6 — read from the parent record's `fee_rate_bps`. Pred participates in `GET /v1/matching-markets/sports` for NFL full-game moneylines, spreads, and totals (NBA mapped on the same terms but unverified until the season opens), and all other families and leagues stay passthrough-only. A Pred spread ("New York Jets Wins By Over 7.5 Points") is published as its subject giving the points — Jets −7.5 — the same contract as the per-team spread markets Kalshi lists. Look up a match by Pred id with the new `pred_market_id` filter, which accepts the `:` pair a `PRED` row publishes as `market_id` or the bare parent id it publishes as `event_id`. A settled Pred market reports the venue's declared result as its price (1 for the winning side, 0 for the losing one). ## Limitless joins as the eighth provider (passthrough) (2026-09-17, https://docs.predictorsdk.com/changelog/2026-09-17-limitless-provider) Limitless Exchange, a prediction market on Base, joins as the eighth provider behind the `limitless` source key. `GET /v1/markets`, `GET /v1/markets/{market_id}`, and `GET /v1/events/{event_id}` serve Limitless markets as provider-native passthrough: binary Yes/No markets keyed by kebab-case slugs, with group (NegRisk) markets exposing one submarket per outcome. Identity notes: slugs share their shape with Polymarket/Predict slugs, so v1 routing is composite-only (`limitless:`) or `?platform=limitless`. Quotes come from the YES-side order book with the NO side derived by the venue's own complement; recurring up-or-down price markets label the same YES/NO indices Up/Down. Reads are public and keyless (`LIMITLESS_API_KEY` is forwarded when set, for future authenticated routes). Limitless is not matched into `GET /v1/matching-markets/sports` in v1 — its game-line sports coverage (soccer, cricket, tennis) does not overlap any matcher-supported league, and the league-branded rows it does list (NHL conference-champion futures, F1 race winners) are futures/outrights, which the game-scoped matcher cannot match. ## Reliable ProphetX lookups and unavailable-market errors (2026-09-17, https://docs.predictorsdk.com/changelog/2026-09-17-matching-lookup-rollout-safety) Parent-event lookups handle older snapshots, and retired markets return 404 instead of 502. ProphetX event lookups now fall back to the complete matching snapshot when an older lookup index lacks parent-event entries, preventing known games from returning an empty result during an API/jobs rollout. Market detail maps ProphetX's explicit `event_not_available` response to 404 instead of an upstream-outage 502. The documentation clarifies explicit provider routing, preserves NBA/WNBA half-line coverage, explains how to obtain a current AlphaArcade market ID, and refreshes expired ProphetX examples. Landing-page provider counts consistently include all seven platforms. ## AlphaArcade and ProphetX matching lookups plus example refresh (2026-09-16, https://docs.predictorsdk.com/changelog/2026-09-16-matching-lookup-and-example-refresh) New alpha_arcade_market_id, prophetx_event_id and prophetx_market_id lookups; refreshed stale matching examples. `GET /v1/matching-markets/sports` gains three lookup filters — `alpha_arcade_market_id`, `prophetx_event_id` and `prophetx_market_id` — so holders of those provider-native IDs no longer need to paginate list mode to rediscover an event. All three accept up to 100 unique values, allow only one filter type per request, skip pagination in lookup mode, and respect `include_settled` and `player_prop_match` like the existing five filters. Stale matching examples (`mlb-tor-cle-2026-09-02`, `nfl-no-det-2026-09-13`) are refreshed to the live `nfl-pit-ne-2026-09-20` three-source home-team spread, and the spec, guides, SDK tables and web coverage copy are corrected to seven platforms with league-specific segment coverage. ## NFL player props with verified identities and venue rule differences (2026-09-14, https://docs.predictorsdk.com/changelog/2026-09-14-nfl-prop-provider-review) NFL player-prop comparisons now cover verified Kalshi, Polymarket, and ProphetX contracts through `include_submarkets=true&player_prop_match=same_prop`, including additional passing/rushing attempts, interceptions, combined yards, and longest-play families when matching lines are available. Each comparison retains the nine-rule matrix and exact native selection references. The all-provider review also tightened fixture wording, player aliases, statistic labels, and strike validation; weekly contracts, whole-number push lines, and ProphetX's contradictory passing-touchdown family remain excluded. See the [player-prop guide](https://docs.predictorsdk.com/guides/player-prop-matching) for provider coverage, known differences, and evidence gaps. ## Correct ProphetX bid and ask direction (2026-09-14, https://docs.predictorsdk.com/changelog/2026-09-14-prophetx-quote-direction) ProphetX offered selection prices now populate asks, with complementary bids. ProphetX market detail now treats each selection's best available back offer as its ask and derives its bid from the complementary selection. The previous mapping treated these offers as bids and produced crossed quotes on otherwise valid books. Levels without positive available quantity do not establish quotes. Native event, market and outcome references, primary-strike selection, player-prop matching policies and settlement-rule distinctions are unchanged. Matching remains an identity-only surface; use market detail for quotes and its observation timestamps for freshness. ## Player-prop identity and settlement comparisons (2026-09-12, https://docs.predictorsdk.com/changelog/2026-09-12-player-prop-rule-comparisons) Sports matching now separates verified player-prop identity from settlement equivalence. With `include_submarkets=true`, the default `player_prop_match=strict` admits only completely reviewed equivalent contracts; the explicit `same_prop` mode includes different or unverified rules with a nine-dimension, source-linked rule matrix. NFL Kalshi/Polymarket game props gain validated threshold/side parsing and ESPN roster verification. Previously grouped NBA/WNBA props no longer qualify merely by sharing a name and line, and canonical player keys now use league-scoped ESPN athlete IDs. Game-line behavior and the compact moneyline bridge are unchanged. Go, TypeScript, and Python SDKs expose the policy and comparison types. See [coverage, options, and limitations](https://docs.predictorsdk.com/guides/player-prop-matching). ## ProphetX joins as the seventh provider (passthrough + moneyline matching) (2026-09-11, https://docs.predictorsdk.com/changelog/2026-09-11-prophetx-provider) ProphetX, a sports betting exchange, joins as the seventh provider behind the `prophetx` source key. `GET /v1/markets`, `GET /v1/markets/{market_id}`, and `GET /v1/events/{event_id}` serve ProphetX markets as provider-native passthrough, and full-game moneylines for NFL, MLB, NBA, and NHL match into `GET /v1/matching-markets/sports` alongside the other venues. Identity notes: ProphetX events are bare integers that collide with Polymarket/Predict numerics, so v1 routing is composite-only (`prophetx:`, `prophetx::`) or `?platform=prophetx`. Market ids are per-event type ids — the event half is the identity — and detail resolves the favourite (primary-line) strike of a spread/total. Outcome ids are small market-scoped integers that join to the same market's detail row. Reads are authenticated with a shared per-process session (10-minute tokens, proactive refresh) and paced to the keypair limit. Spreads, totals, halves, and player props stay passthrough list-only in v1; spread/total matching follows once the spread-subject derivation is proven against live labels. ## Market catalog cursors now stay valid for 8 hours instead of 24 (2026-09-09, https://docs.predictorsdk.com/changelog/2026-09-09-markets-cursor-retention-8h) `GET /v1/markets` cursors stay bound to the immutable catalog snapshot that issued them. Replaced snapshots now remain available for up to 8 hours instead of 24. Nothing else about the endpoint changes: same rows, same order, same filters, same `snapshot.observed_at` behavior. **Why.** Each provider refresh publishes a complete new snapshot and the old ones are kept so in-progress paginations can finish. At the 30-minute catalog interval a 24-hour window keeps ~48 copies of every provider, which set the size of the Valkey instance. Nobody pages a catalog for 8 hours — a full walk of the whole catalog at the slowest rate limit takes under an hour — so the older half of the window was shelf space, not a feature. The shorter window is what lets the instance be right-sized (tracked separately). **What may need changing.** If you hold a `next_cursor` longer than 8 hours before continuing, it now answers `400 pagination cursor is stale` — restart from the first page. Cursors were already documented as short-lived session state with no guaranteed grace under storage pressure; treat them that way. ## NFL — AlphaArcade moneylines join matching, first-half rows leave the moneyline, and AlphaArcade detail/events recover from the catalog outage (2026-09-09, https://docs.predictorsdk.com/changelog/2026-09-09-nfl-alphaarcade-and-kalshi-siblings) AlphaArcade began listing NFL game lines for the 2026 regular season (14 of the 16 Week 1 games, everything but the Sunday- and Monday-night games), so NFL events on `/v1/matching-markets/sports` now carry an `alpha-arcade` platform row alongside Kalshi, Polymarket, Predict, and SX.Bet. As with MLB and WNBA, the AlphaArcade contribution is the full-game moneyline only. **Fix.** Together with the game line, AlphaArcade publishes first-half moneylines, first-half spreads and totals, and team totals for each game, tagged with category names it had not used before (`FirstHalfMoneyline`, `FirstHalfSpread`, `FirstHalfTotal`, `TeamTotal`). These share the parent's `sport_game` tag, team names and kickoff, and they were being classified as the full-game moneyline: the `moneyline|full|winner` submarket of 14 live NFL events listed them as `source_markets`, and the `alpha-arcade` platform row carried four `outcome_ids` (the game-line pair plus the first-half pair) instead of two. AlphaArcade marks every sub-market with a `gameMarketId` naming its parent game line, and the classifier now refuses any market that carries one before reading a single tag, so a tag we have not seen cannot leak a sub-market into the moneyline again. The `outcome_ids` on an AlphaArcade NFL row are once more exactly the two CLOB token ids of the game line; nothing else about the response shape changes. **Fix.** `GET /v1/events/{event_id}?platform=kalshi` for a `KXNFLGAME-…` ticker fans out to the game's sibling series. Kalshi keeps NFL half and quarter *winner* markets in the bare `KXNFL1H`, `KXNFL2H` and `KXNFL1Q`–`KXNFL4Q` series (away, home and tie per game); the fanout had been asking for `KXNFL1HWINNER`, `KXNFL2HWINNER` and `KXNFL1QWINNER`–`KXNFL4QWINNER`, which hold no markets, so those six always landed in `fanout.siblings_missing` and the winner markets were never returned. The fanout now uses the series that exist and also includes `KXNFL1HFT` (1st half / full time result), `KXNFL1HTEAMTOTAL` and `KXNFLWINMARGIN`, all open for every current game. Player-prop series remain outside the fanout and are available through `GET /v1/markets`. **Fix.** From about 13:57 UTC on 2026-09-09, every `GET /v1/markets/alpha-arcade:{id}` and `GET /v1/events/{id}?platform=alpha-arcade` answered `502 upstream service unavailable`. Both routes resolved identity by downloading AlphaArcade's whole live catalog in one request, and once that body passed roughly 6 MB (the catalog grew to 2,900+ markets with the NFL season) AlphaArcade's origin began answering that request with a Cloudflare `502 origin_bad_gateway` for every API key and every client network; only Cloudflare colos that still held a stale copy answered `200`, which made the failure look intermittent and key-dependent. The same catalog read in pages (`?limit=1000&offset=N`, following `nextOffset`) is served fresh from the origin throughout, and it is how AlphaArcade's own site loads. The jobs catalog crawl and both API routes now read the catalog in pages, a page that fails fails the whole read rather than producing a partial catalog, and nothing about the response shapes changes. Until this deploys, the `alpha-arcade` rows on `/v1/matching-markets/sports` and `/v1/markets` (served from the store) are unaffected; only the two per-market routes were down. ## Kalshi parlay (multivariate-event) markets are no longer in the catalog (2026-09-08, https://docs.predictorsdk.com/changelog/2026-09-08-kalshi-multivariate-markets-excluded) `GET /v1/markets` no longer lists Kalshi's multivariate-event markets, the tickers that start with `KXMVECROSSCATEGORY`. Kalshi's `total` drops from about 4.28 million rows to about 110,000, and the unfiltered catalog shrinks by the same amount. Nothing else about the endpoint changes: same order, same cursors, same filters. **What these markets are.** A multivariate-event market is a parlay a Kalshi user built. Pick legs from existing markets and Kalshi mints a new yes/no market that pays only if every leg hits, with a ticker whose tail is a hash of the selected legs. Every distinct combination anyone has ever assembled is its own market. On 2026-09-08 that was 4,172,580 of Kalshi's 4,284,410 open markets, or 97.4%, and the count had grown five-fold in five weeks as the football season opened. **Why they are out.** The unified catalog exists to compare the same market across venues. A thirteen-leg college football ticket has no counterpart on Polymarket, Predict, SX Bet, Hyperliquid or AlphaArcade, so nothing can be matched or compared against it, and every leg it combines is already listed as its own Kalshi market. Each ticket is typically bought once by the person who built it, so the book is empty. The title is a bare list of legs ("yes BYU, yes Texas A&M, yes Toledo, …") with no event or date, and every one of them landed in category `other`. In practice anyone paging `?provider=kalshi` walked 41 parlays for every ordinary market, and `total` described how many tickets Kalshi's users had clicked together rather than how many markets Kalshi runs. Kalshi itself exposes an `mve_filter=exclude` parameter because these swamp its own listings; the catalog crawl now sends it. ## What may need changing [#what-may-need-changing] - **If you were treating Kalshi's `total` as the venue's market count**, the new figure is the right one. Compare against pre-2026-09-08 numbers with that in mind. - **If you were resolving parlay tickers through the catalog**, use `GET /v1/markets/{market_id}` instead. It fetches Kalshi live by ticker and is unaffected by this change, so `kalshi:KXMVECROSSCATEGORY-SHARD1-…` still returns identity, status, outcomes and pricing. - **If you actually want the parlays listed**, tell us. The exclusion is a documented coverage decision, not a technical limit, and it can be made opt-in. Sports matching is unaffected: it reads Kalshi's game series directly and those series never contained multivariate markets. ## Faster matching lookups and numeric-team spread safety (2026-09-04, https://docs.predictorsdk.com/changelog/2026-09-04-matching-reliability) Sports matching now treats digits embedded in team names as names, not betting lines. A live San Francisco row correctly carried `+2.5`, but the production contract check read the `49` in “49ers” and incorrectly failed the release; the same permissive pattern also existed as an ingestion fallback. Both paths now share one conservative parser that accepts exactly one standalone number, understands a typographic minus, and refuses dates, scores, records, and other ambiguous labels. Structured provider line metadata takes precedence over text; a malformed structured value is refused rather than replaced from the title. This also protects names such as the Philadelphia 76ers. Direct matching lookups now use an immutable, run-scoped Valkey index instead of decoding the complete sports snapshot for every requested identifier. The index retains its backward-compatible wire shape while new readers fetch only requested fields from a run-scoped Valkey hash. Versioned metadata verifies the run and hash cardinality; legacy indexes fall back to the previous scan, while partial, malformed, or cross-wired hash data fails closed. Settled-event lookups keep their archive-aware path. API dependency work, including Valkey socket I/O, is bounded inside the server write deadline so a stalled read can return a structured service error instead of closing the connection as an unexplained EOF. Deployment smoke checks also require every affected service rollout and reject stale provider snapshots. No response schema changed. ## NFL matched events on /v1/matching-markets/sports (2026-09-02, https://docs.predictorsdk.com/changelog/2026-09-02-nfl-matching) `/v1/matching-markets/sports` now matches NFL games across Kalshi, Polymarket, Predict, and SX.Bet. Scope is full-game moneyline, spread, and total — canonical event IDs follow the existing convention, so a Week 1 game is `nfl-cle-jax-2026-09-13` and resolves through the `event_id` filter like any other event. Canonical team codes are the standard NFL short codes (`ari atl bal buf car chi cin cle dal den det gb hou ind jax kc lac lar lv mia min ne no nyg nyj phi pit sea sf tb ten was`). Two source-native spellings are aliased onto them: Kalshi writes Jacksonville as `JAC` where the canonical code is `jax`, and Polymarket writes the Los Angeles Rams as a bare `la` while spelling the Chargers `lac`. **The one behaviour worth reading if you already parse provider slugs: both Polymarket and Predict date NFL game slugs by the UTC date of kickoff, not the Eastern date.** Measured on 2026-09-02, counting only games whose UTC and Eastern dates differ: | Venue | MLB | NFL | |---|---|---| | Polymarket | Eastern (25/25) | **UTC (16/16)** | | Predict | Eastern (25/25) | **UTC (18/18)** | The convention differs per league, not per venue, and it replicates independently on both slug-based venues. Every affected NFL game is a 20:15 or 20:20 ET prime-time kickoff, which is roughly 20% of the schedule and the most liquid game of most weeks. Kalshi's ticker uses the Eastern date and SX.Bet publishes a real kickoff timestamp, so PredictorSDK resolves NFL identity from each venue's real start time converted to Eastern rather than from the slug — Polymarket's structured `gameStartTime`, and Predict's category start time. The practical consequence: Polymarket's `nfl-dal-nyg-2026-09-14` and Kalshi's `KXNFLGAME-26SEP13DALNYG` are the same game and both resolve to `nfl-dal-nyg-2026-09-13`. Join on the canonical `event_id` rather than on a parsed provider slug. Two limits ship with this. **Predict lists NFL only in season** — its mapping is wired and was verified against its 51 historical NFL game categories, but it had no open NFL markets on the day this shipped, so NFL currently matches across the other three sources. **AlphaArcade lists no NFL game lines** — checked across its full 2,831-market catalog on 2026-09-02; it carries NFL season futures and player props, which are outside the matching scope for every league. Half, quarter, and team-total markets are out of scope: Polymarket publishes them but Kalshi's corresponding series hold no open markets, so they have no cross-source counterpart. All of these remain available as provider-native markets through `GET /v1/markets` and `GET /v1/events/{event_id}`, which already supported NFL sibling fanout. ## Catalog ingestion and API documentation hardening (2026-08-31, https://docs.predictorsdk.com/changelog/2026-08-31-enterprise-api-hardening) Kalshi's full catalog now streams into an unpublished Redis snapshot one page at a time and publishes atomically only after the crawl completes. This removes the multi-million-row in-memory copies that caused a production jobs worker to be OOM-killed while preserving the previous good snapshot on any interruption. Publication now verifies every construction key's marker, TTL, and exact cardinality under a Redis watch, so storage pressure rejects an evicted build instead of activating partial data. Valkey capacity was raised to hold the active catalog and its largest complete replacement at the same time. An independent scheduled live check now fails when any provider's published catalog snapshot is older than the configured freshness bound. Sports matching now refuses AlphaArcade rows whose structured game date contradicts an explicit date in the source's title or slug. Those rows remain available in the provider-native catalog; only the unsupported identity claim is withheld. The SDK guides now document the `provider` catalog filter, the `snapshot` freshness block, and typed `409 Conflict` errors. Identifier descriptions and matching guidance were corrected, the landing example was refreshed from one coherent four-provider event, and the canonical OpenAPI YAML is available at [`/openapi.yaml`](https://docs.predictorsdk.com/openapi.yaml) with a byte-for-byte CI check against the source spec. ## 409 Conflict is now listed in the Error Handling guide (2026-08-27, https://docs.predictorsdk.com/changelog/2026-08-27-error-handling-409-row) The status-code table in [Error Handling](https://docs.predictorsdk.com/guides/error-handling) listed `400 401 402 403 404 405 429 502 503` and omitted **`409`**, which `GET /v1/markets/{market_id}` and `GET /v1/events/{event_id}` have returned since ambiguous bare identifiers stopped resolving to the wrong provider's market on 2026-08-25. Nothing about the API changed. `409` was declared on both operations in the OpenAPI spec from the day it shipped and generates as a typed error in all three SDKs — but a caller who built their error handling from that page had no `409` branch, and the page is the one place that says which statuses to retry. It now carries a row and an entry under *Retry guidance*: `409` is a do-not-retry-unchanged case, because the identifier is genuinely ambiguous and the same request conflicts again. Re-send with `?platform=` naming one of the `candidates` in the response body, or with the composite `{platform}:{id}` form. Both of that page's hand-maintained lists — the status-code table and the retry bullets — are now checked against the spec on every CI run, in both directions. A status code declared on an operation and missing from either list fails the build, and so does a code listed on the page that no operation declares. The two router-level statuses documented at the API level rather than per operation (`404` for an unrouted path, `405` for a rejected method) are exempt from needing an operation response, and the check requires them to still be documented at the API level rather than taking that on trust. ## Documented example identifiers refreshed, and short-lived ones spent only where the shape needs them (2026-08-27, https://docs.predictorsdk.com/changelog/2026-08-27-example-identifier-refresh) Every expired example identifier in the API reference and the guides has been refreshed against live data. The canonical event key behind the matching endpoint's rich `canonical_events` example had expired, along with its Polymarket slug, its Kalshi event ticker, and the Polymarket MLB game slug used on `/v1/markets/{market_id}`, `/v1/events/{event_id}` and the `polymarket_market_slug` filter. All of them now resolve. The interesting part is which example got which identifier. Cross-source depth only exists for imminent games — the venues list a spread days ahead, not months — so the richest example is always the shortest-lived one. Re-measured across 103 live canonical events, the furthest-dated event carrying a spread with three independent sources was one day out, while the furthest-dated event of any kind was nearly two months out and carried a single moneyline. Standing one game in for every example therefore spends the shortest lifetime everywhere. Each site now gets the longest-lived identifier that still carries the shape it is teaching: - The `league` field's description and the "the league is the first segment" line in the docs illustrate the key *format*. They need no imminent game, so they use a season-opener key that resolves for weeks. - The list-mode example needs a Polymarket row, so it moved to the furthest-dated event that has one. It picked up a `PREDICT` row on the way, so the two list-mode entries now show all four matching platforms rather than three. - Only the `include_submarkets=true` example genuinely needs a three-source spread, so it is the only one carrying a short-lived key. Its replacement was chosen so the canonical key and the Polymarket slug are visibly *different* strings for the same game, which is the whole reason the canonical layer exists, and so the spread's subject is the home team — the side is read from each source's own labels, never defaulted. Hyperliquid's examples are the one case that cannot be fixed by refreshing. Its entire live catalog is a handful of daily-recurring outcomes, so any specific integer id is valid for about a day and a "current" one is wrong again tomorrow. Those examples keep their ids and now say so in the example summary itself — which the SDKs and this site render — instead of only in a comment in the raw spec. No API behaviour changed. The SDKs are regenerated because the descriptions and examples they embed come from the spec. ## Unknown query parameters are now rejected instead of ignored (2026-08-27, https://docs.predictorsdk.com/changelog/2026-08-27-unknown-query-parameters-rejected) Every endpoint now returns `400` for a query parameter it does not read, instead of accepting the request and dropping the parameter. The parameter this was really about is `?platform=` on [`GET /v1/markets`](https://docs.predictorsdk.com/api-reference/getMarkets). That is the spelling [`GET /v1/matching-markets/sports`](https://docs.predictorsdk.com/api-reference/getSportsMatchingMarkets) uses for the same concept, so it is the natural guess — and it used to return the entire catalogue with a `200` on it. Measured against production before this shipped, `?platform=sxbet`, `?providers=kalshi` and `?nonsense=1` each returned the identical `total` of 1,935,451 and the same first row as an unfiltered page. A caller who tried any of them had no way to tell the filter had been discarded. A misspelled filter that silently returns everything is harder to diagnose than an error, and the fix for [the provider filter](https://docs.predictorsdk.com/api-reference/getMarkets) shipped a `400` for an unrecognized *value* already, so a misspelled *name* was the only way left to be silently ignored. The rejection is uniform. It applies to every route on the API, including `GET /v1/health` and the ones that read no parameters at all, because a guarantee that holds on some endpoints is not one a caller can build against. Provider webhook callbacks are the single exception — their caller is a third party that would retry rather than read the error, and no API consumer can reach them. ``` GET /v1/markets?platform=sxbet 400 {"error": "unknown query parameter", "message": "This endpoint does not read the query parameter \"platform\". It accepts: category, cursor, limit, provider.", "status_code": 400} ``` The response names the key it rejected and lists the ones that endpoint accepts, so the fix is visible in the error rather than requiring a trip to the reference. On `/v1/markets` the parameter you want is `provider` — see [Filtering](https://docs.predictorsdk.com/guides/filtering). **Who this affects.** Only hand-built requests. The generated TypeScript, Python and Go clients expose exactly the parameters each endpoint declares and physically cannot send anything else, so no SDK call changes and the generated clients are byte-identical. If you build requests yourself, drop any parameter that is not listed under the endpoint in the reference. Like the router's `404` and `405`, this answer comes from the router before the API key is read. ## Kalshi matching rows now name real markets, and their outcome IDs join to market detail (2026-08-26, https://docs.predictorsdk.com/changelog/2026-08-26-kalshi-matching-market-and-outcome-ids) `GET /v1/matching-markets/sports` exists so you can take a provider's exact native references and look them up on `GET /v1/markets/{market_id}`. Kalshi was the last provider where that didn't hold, and it was broken in two different ways at once. **`market_id` on a moneyline row was the event ticker, and it 404s.** Kalshi lists a game moneyline as one binary market *per team* — "Arizona wins" and "San Francisco wins" are separate markets. Matching folded that pair into a single `source_markets[]` entry and put their shared *event* ticker in `market_id`, which `GET /v1/markets/{market_id}` has never served. Each Kalshi market now gets its own entry: ```diff "source_markets": [ - { - "provider": "kalshi", - "market_id": "KXMLBGAME-26AUG272145AZSF", - "market_name": "Arizona wins", - "outcomes": [ - { "canonical_outcome_key": "winner:ari", "outcome_id": "KXMLBGAME-26AUG272145AZSF-AZ", "side": "yes" }, - { "canonical_outcome_key": "winner:sf", "outcome_id": "KXMLBGAME-26AUG272145AZSF-SF", "side": "yes" } - ] - } + { + "provider": "kalshi", + "market_id": "KXMLBGAME-26AUG272145AZSF-AZ", + "market_name": "Arizona wins", + "outcomes": [ + { "canonical_outcome_key": "winner:ari", "outcome_id": "yes", "side": "yes" }, + { "canonical_outcome_key": "winner:sf", "outcome_id": "no", "side": "no" } + ] + }, + { + "provider": "kalshi", + "market_id": "KXMLBGAME-26AUG272145AZSF-SF", + "market_name": "San Francisco wins", + "outcomes": [ + { "canonical_outcome_key": "winner:sf", "outcome_id": "yes", "side": "yes" }, + { "canonical_outcome_key": "winner:ari", "outcome_id": "no", "side": "no" } + ] + } ] ``` **`outcome_id` was a market ticker, not an outcome reference.** On spread, total and player-prop rows — which were already one market each — both outcomes carried the row's own `market_id`, so the ID was not even unique inside its own row and `side` was doing all the disambiguating. Kalshi outcome IDs are now `yes` / `no`, byte-identical to what market detail returns for the same ticker. **Why that spelling.** Kalshi publishes no per-outcome identifier: every market is binary, and a selection is `(ticker, yes|no)`. Kalshi names that side the same way everywhere in its own API — as a field-name prefix on the market record (`yes_bid_dollars`, `no_ask_dollars`), as the keys of its order book (`orderbook_fp.yes_dollars` / `no_dollars`), as `taker_side` on a trade, and as `side` on an order. Like SX Bet's `outcomeOne` / `outcomeTwo`, these IDs are market-scoped: read them together with the row's `market_id`. ## What may need changing [#what-may-need-changing] - **A Kalshi row can now appear more than once under one submarket.** If you assumed at most one entry per provider, group by `provider`. The number of canonical events and submarkets returned is unchanged — `min_sources` counts distinct providers, not entries, so a Kalshi-only submarket still does not appear. - **If you were piping a Kalshi moneyline `market_id` into `GET /v1/markets/{market_id}`** it was returning 404. It now resolves. The event ticker is still available: it is the row's parent on the default Dome-compatible map as `event_ticker`, and `GET /v1/events/{event_id}` is the route that takes it. - **If you were pairing `market_id` with `side`** because the outcome IDs did not round-trip, `outcome_id` now carries the same value as `side` and joins directly. Both fields stay. The default Dome-compatible `markets` map is **unchanged**: Kalshi rows still publish `event_ticker` plus `market_tickers[]`, with the same values as before. The `?kalshi_event_ticker=` lookup still accepts the event ticker, and now also accepts the event tickers of a game's spread and total markets. Polymarket, Predict, AlphaArcade and SX Bet rows are unchanged — Kalshi was the last provider whose matching outcome IDs did not join. ## GET /v1/markets takes a provider filter, and rejects a provider it does not recognize (2026-08-26, https://docs.predictorsdk.com/changelog/2026-08-26-markets-provider-filter) The unified catalog is large — 1.76 million markets today — and `GET /v1/markets` walks providers in a fixed sequence: `kalshi`, `polymarket`, `predict`, `sxbet`, `hyperliquid`, `alpha-arcade`. Kalshi alone has exceeded 789,000 rows, so a caller who wanted SX Bet markets had to page through every Kalshi, Polymarket and Predict row to reach them. There was no way to ask for one provider, and the parameter people reasonably guessed at was accepted and thrown away. **There is now a `provider` filter.** ```bash GET /v1/markets?provider=sxbet GET /v1/markets?provider=polymarket&category=sports ``` It selects on each row's own `provider` value, so it takes the same token [Sources](https://docs.predictorsdk.com/docs/concepts/sources) lists as that platform's source key, and it composes with `category` as an intersection. Two things change about the response, and both are the point of the filter. Every `data[]` row carries the requested `provider` — previously `?provider=sxbet` returned the head of the Kalshi index. And `pagination.total` counts only that provider's rows rather than the whole catalog, so the per-provider totals add up to the unfiltered total instead of repeating it six times. `has_more` and `next_cursor` describe the filtered traversal too, so paging through one provider ends when that provider ends. **An unrecognized value is now a `400`, where it used to be silently dropped.** `?platform=sxbet`, `?provider=sx_bet`, `?provider=notaplatform` — all of them previously returned `200` with a full page of Kalshi markets and the whole catalog's `total`, which reads as "the filter worked and these are the results." Only the six canonical IDs are accepted, case-insensitively, and the error names the legal ones: ```json { "error": "invalid provider: must be one of kalshi, polymarket, predict, sxbet, hyperliquid, alpha-arcade", "status_code": 400 } ``` That includes spellings the `platform` override on `GET /v1/markets/{market_id}` and `GET /v1/events/{event_id}` tolerates (`sx_bet`, `hl`, `aa`). Those two parameters are a different feature — they name the venue a single identifier should be resolved against, not a filter on a list — and the accepted set here is exactly the published enum so a typo cannot look like a successful filter. ## What may need changing [#what-may-need-changing] - **If you were already sending `platform=` or `provider=` to this endpoint and ignoring the result**, nothing changes for `platform=` (it is still not a parameter on this route, and still ignored) — but `provider=` with a value outside the six now returns `400` instead of an unfiltered page. Read the six values from the error message or from `GET /v1/categories`' neighbour, [Sources](https://docs.predictorsdk.com/docs/concepts/sources). - **`provider` is part of pagination scope.** Keep the same value when following a `next_cursor`; changing or dropping it mid-traversal returns `400 pagination cursor does not match the current filters`, the same way `category` already did. - **`pagination.total` under a filter is the filtered count.** If you were treating `total` as the catalog size, read it from an unfiltered call. Unfiltered pagination is unchanged: same order, same totals, same cursors. The SDKs gain an optional `provider` argument on `getMarkets`. ## GET /v1/markets now tells you how old the catalog is (2026-08-26, https://docs.predictorsdk.com/changelog/2026-08-26-markets-snapshot-observed-at) `GET /v1/markets` returned exactly two top-level keys — `data` and `pagination` — and no timestamp anywhere. The endpoint reads a stored catalog snapshot rather than calling the venues, so "how old is this page" had no answer and was not "now": a page of 1.76 million rows could have been crawled ten seconds or two hours ago and looked identical either way. Every response now carries a `snapshot` block: ```diff { "data": [ ], + "snapshot": { + "observed_at": "2026-08-25T13:41:22.108Z" + }, "pagination": { "limit": 25, "total": 1393200, "has_more": true, "next_cursor": "eyJzIjoiNDQxMzZmYTMi..." } } ``` It sits beside `data`, not inside `pagination`, because it describes the data rather than how the page was cut. **What the value means.** `observed_at` is when PredictorSDK finished reading the catalog — the same meaning it already carries on `pricing.observed_at` and `trading_fees.observed_at`, and deliberately not `as_of`, which is reserved for a venue's own stamp. The difference from those two is which read: they stamp the upstream call your request made, while this stamps the background ingestion crawl that built the snapshot, so it is normally minutes to hours old rather than milliseconds. **It is a floor, and `?provider=` makes it exact.** Providers are crawled on independent schedules, so the catalog is a merge of snapshots of different ages and the published number is the OLDEST of them. Every row on the page is at least that fresh; most are fresher. Under `?provider=` the value is that provider's own read time, the same way `pagination.total` already counts only the filtered set — so filtering is the cheapest way to trade a conservative bound for an exact one. **It does not move during a traversal.** A market cursor stays bound to the immutable snapshot that issued it, so every page of one traversal reports the identical `observed_at` even while newer snapshots publish behind you. Start a fresh first page to see a newer one. `observed_at` is `null` when the bound snapshot carries no read time — treat that as unknown age, not as fresh. The TypeScript, Python and Go SDKs gain a `MarketsSnapshot` type on the list response; the field is a parsed date-time, not a string. Nothing was removed and no existing field changed, so a client that ignores the new block keeps working. ## What the rate-limit headers actually promise (2026-08-26, https://docs.predictorsdk.com/changelog/2026-08-26-rate-limit-header-contract) `X-RateLimit-Remaining` does not count down. Across strictly sequential requests inside one `X-RateLimit-Reset` window it repeats values, skips them, and goes back up — measured on 2026-08-26 against a 1000 req/min key, 120 sequential requests over three windows produced **42 increases, the largest +8**. A client that slowed down as the number fell was reading a signal that sometimes rose while it was spending. Nothing about the numbers changed, because nothing about them is wrong. What changed is what we say they mean, in `openapi.yaml` and in the guides. **The budget recovers continuously, not at a boundary.** This is the piece that made the old documentation misleading. `X-RateLimit-Reset` was described as "when the current window resets", which invites the obvious model: spend `X-RateLimit-Limit` requests, wait for the reset, get a fresh allowance. That is not what happens. Four boundary crossings measured on the same day moved the reported budget by +5, 0, +2 and +2 — never a step back to the limit. Earlier requests age out gradually, which is also why `X-RateLimit-Remaining` can rise while you are consuming it. **`X-RateLimit-Remaining` is now documented as advisory**, with the measured spread and the direction of the error: it runs *ahead* of your consumption, and by the end of a fast burst it over-stated the true remaining budget by up to 44 requests. The gap widens the faster you send, so it is least accurate exactly when a caller would consult it. Treat a low value as a reason to slow down; never treat a high one as permission to burst. **Pace from `X-RateLimit-Limit` instead**, which equals the `rate_limit_per_min` already published for your plan on `GET /v1/plans`. Keep your own timestamps for a rolling 60 seconds, or just space requests `60 / limit` apart, and back off on `429`. The `429` and its `Retry-After` are the authoritative signals; they are computed from the limiter's own window instant and never disagree with `X-RateLimit-Reset`. The [Error Handling guide](https://docs.predictorsdk.com/guides/error-handling#building-a-local-limiter) has the recipe. We deliberately did **not** smooth the header. Clamping it to a monotonic minimum would publish a number the rate limiter never reported, in a header whose name promises the limiter's own accounting — the same kind of invention this API refuses elsewhere when it leaves a venue's figure null rather than computing a plausible one. Also clarified: unauthenticated routes carry none of these headers, because the limiter is only consulted once an API key has been read. That covers `GET /v1/plans` and the router's own `404` and `405`. ## SX Bet outcome IDs from matching now join to market detail (2026-08-26, https://docs.predictorsdk.com/changelog/2026-08-26-sxbet-matching-outcome-ids) `GET /v1/matching-markets/sports` exists so you can take a provider's exact native references and look them up on `GET /v1/markets/{market_id}`. For SX Bet rows, half of that was broken: matching published outcome IDs shaped `:1` / `:2`, while market detail returned `outcomeOne` / `outcomeTwo` for the same market. Two spellings for one selection, and neither resolved on the other surface. SX Bet rows now publish `outcomeOne` and `outcomeTwo` — in `canonical_events[].submarkets[].source_markets[].outcomes[].outcome_id` and in the default map's `markets[].outcome_ids` — which is byte-identical to what market detail returns: ```diff { "platform": "SXBET", "market_id": "0xb4d047a709aae881e5ccad9d123592967644ee1df1f17078c762b388e41b81c5", "outcome_ids": [ - "0xb4d047a709aae881e5ccad9d123592967644ee1df1f17078c762b388e41b81c5:1", - "0xb4d047a709aae881e5ccad9d123592967644ee1df1f17078c762b388e41b81c5:2" + "outcomeOne", + "outcomeTwo" ] } ``` **Why this spelling.** SX Bet publishes no per-outcome identifier at all: a selection is a market hash plus one of exactly two positions. It encodes that position several ways in its own API — an integer on the settled market record, a boolean on orders and fills — but `outcomeOne` / `outcomeTwo` is the only one that *addresses* a side, and it is how SX Bet's order-book snapshot keys its two level arrays. The old composite was ours, not SX Bet's, and it duplicated the `market_id` the same row already carries. These IDs are market-scoped, like Kalshi's `yes` / `no` on market detail: read them together with the row's `market_id`. If you were splitting on the colon to recover the market hash, use `market_id` instead — it is the same value. Polymarket, Predict and AlphaArcade rows are unchanged; their outcome IDs already matched market detail. Kalshi rows are also unchanged and are still the one provider whose matching outcome IDs do not round-trip — they are the sibling market tickers under the event, with `side` naming the selection. ## Ambiguous bare identifiers now return 409 instead of the wrong provider's market (2026-08-25, https://docs.predictorsdk.com/changelog/2026-08-25-ambiguous-identifier-409) `GET /v1/markets/{market_id}` and `GET /v1/events/{event_id}` accept a bare identifier and infer the platform from its shape. Bare numeric ids and kebab-case slugs do not name a platform — Polymarket and Predict both use those shapes — so the service probed Polymarket first and returned whichever provider answered first. Those id spaces genuinely overlap, so "first to answer" was frequently the wrong provider. Measured against production on 2026-08-25, across 93 Predict market ids taken from our own `GET /v1/matching-markets/sports` response: - **53 of 93 (57%)** returned an unrelated **Polymarket** market with a `200` on it. Predict market `1607914`, an Arizona Diamondbacks vs. San Francisco Giants game, came back as "Will Ze-Cheng Dou finish in the Top 5 at the 2026 Valspar Championship?" - **57 of 93 (61%)** resolved to a *different provider* on `/v1/markets` than on `/v1/events`, because a Polymarket market with that number existed while a Polymarket event with it did not. A caller walking the documented pipeline — matching row → `event_id` → `/v1/events` → nested `market_id` → `/v1/markets` — silently changed provider partway through. Nothing in the response said so. The `provider` field was correct about what was returned; it just wasn't what you asked for. **What changed.** Both endpoints now probe every candidate platform concurrently and answer only when exactly one of them holds the identifier. When two do, the request fails with **`409 Conflict`** naming both instead of picking one: ```json { "error": "ambiguous market_id", "message": "market_id \"1607914\" resolves on polymarket and predict, which are different markets. Retry with ?platform= naming the one you want, or use the composite {platform}:{id} form.", "candidates": ["polymarket", "predict"], "status_code": 409 } ``` `candidates` is the actionable part: every entry is a legal `platform` value, so a client can retry automatically. The SDKs expose this as a typed `ConflictError` carrying an `AmbiguousIdentifierError` body. `GET /v1/events/{event_id}` also now accepts the composite `{provider}:{native_id}` form that `GET /v1/markets` already returned in `data[].id`. Previously `GET /v1/events/predict:1607914` was treated as an opaque ambiguous id and surfaced as `502`; it now resolves. ## Migration [#migration] **This is breaking for one case only:** a bare numeric id or kebab-case slug, sent with no `?platform=`, that exists on both Polymarket and Predict. That request used to return a Polymarket `200` and now returns `409`. For Polymarket callers the change is small — on a uniform sample of 160 integer ids, 114 were real Polymarket markets and only 2 of those (2%) also existed on Predict. For Predict callers it converts a majority of silently-wrong responses into a loud, self-describing error. Nothing that returned the *right* market before returns an error now. The fix is one parameter, and it is the same rule for every provider: ```bash # before — inferred, and wrong 57% of the time for Predict ids curl "$BASE/v1/markets/1607914" # after — deterministic, one of: curl "$BASE/v1/markets/1607914?platform=predict" curl "$BASE/v1/markets/predict:1607914" ``` Every response that hands you an identifier also hands you its platform: `GET /v1/markets` returns the composite form directly in `data[].id`, and every row of `GET /v1/matching-markets/sports` carries a `platform` field that `?platform=` accepts verbatim (case-insensitively, including `ALPHA-ARCADE`). So `?platform={row.platform}` is a single safe rule across all six providers. Naming the platform is also strictly more available than not naming it: the probe has to reach both candidates to prove there is no collision, so it fails if either is having an outage, while an explicit platform depends only on that one. Composite ids, explicit `?platform=`, Kalshi tickers and SX Bet identifiers never probe and can never return `409`. ## A dead SX Bet identifier no longer reports an upstream outage (2026-08-25, https://docs.predictorsdk.com/changelog/2026-08-25-dead-identifier-status-codes) `GET /v1/markets/{market_id}` and `GET /v1/events/{event_id}` answered `502 upstream service unavailable` for some identifiers that could never exist. The status code is the whole message: `502` tells a client the venue is down and the request is worth retrying, while `404` tells it the identifier is dead and it should stop asking. Reporting the first when the second was true turned a single typo'd or expired identifier into an unbounded retry loop. SX Bet identifiers were the remaining gap, and both endpoints now validate the shape before calling upstream: - **`/v1/markets`** — a `market_id` that is not a `0x`-prefixed 64-hex market hash now returns `400 invalid market_id`. Previously `sxbet:0xdeadbeef` and eleven other malformed shapes returned `502`. - **`/v1/events`** — an `event_id` that is not a fixture id (an uppercase letter followed by digits, e.g. `L19825821`) now returns `400 invalid event_id`. This also closes a worse case: a single-digit `event_id` such as `sxbet:1` made the upstream market filter drop out entirely, so the endpoint returned `200` with about a hundred markets drawn from unrelated fixtures grouped under one title. Well-formed identifiers are unaffected. An identifier that is shaped correctly but does not exist still returns `404` — including `sxbet:0x0000…0000` and `sxbet:L99999999` — and a genuine upstream failure still returns `502`, so a client can still tell "this is gone" apart from "try again later". Both routes already documented `400` for an invalid identifier, so no API schema or SDK signature changed. This is the same classification the Hyperliquid and AlphaArcade lookups already used: malformed input is `400`, a confirmed miss is `404`, and `502` is reserved for the case where we genuinely could not find out. ## Every documented example identifier now resolves, and CI keeps it that way (2026-08-25, https://docs.predictorsdk.com/changelog/2026-08-25-documented-identifiers-refresh) Almost every copy-pasteable identifier in the reference and the guides had expired. An external audit extracted 42 example market ids, event tickers, and canonical event keys from `api/openapi.yaml` plus the docs and found 38 of them dead — including the `market_id` parameter's own example (`kalshi:KXNBA-26-SAS`), the quickstart's headline lookup, and the spec's list-mode and Kalshi-fanout examples. The two worst cases returned `200` with an empty body rather than an error, which is the hardest failure for a new caller to diagnose. Every example identifier in the spec, the quickstart, the concept pages, the guides, and the Yaak request stubs has been refreshed against live data and verified to resolve. The rot was structural rather than editorial, so the strings alone were not the fix. Kalshi game tickers, Polymarket game slugs, and canonical event keys stop resolving once an event settles, and Hyperliquid's entire live catalog is a handful of daily-recurring outcomes — so any specific Hyperliquid integer id is valid for about a day. Three things change as a result: - **The quickstart now leads with a call that needs no identifier**, shows the response, and then looks up a key taken from it. The first thing a new caller copies no longer contains an identifier that can expire, and a callout says plainly that the sample identifiers elsewhere in the docs are samples. - **`GET /v1/markets/{market_id}` and `GET /v1/events/{event_id}` now say which identifier spaces expire** and where to get current ones. Long-dated markets (Kalshi season futures, multi-year AlphaArcade questions) and settled Polymarket, Predict, and SX Bet ids stay resolvable; game lines do not. - **A live check requests every published identifier after each deploy** and fails when one stops resolving, counting an empty `200` as a failure. On failure it prints current identifiers pulled from the API, so refreshing an expired example is a substitution rather than an investigation. Two examples also became more accurate in the process. The `/v1/markets` list example previously showed a fabricated Polymarket id in `0x`-hex form, which is not the shape Polymarket ids take; it now shows real rows. The NFL examples on `/v1/matching-markets/sports` were removed — NFL is not in that endpoint's coverage (NBA, WNBA, NHL, MLB), so they could not have matched anything. No API behaviour changed. The SDKs are regenerated because the descriptions and examples they embed came from the spec. ## Empty and untradeable order books no longer report `availability: live` (2026-08-25, https://docs.predictorsdk.com/changelog/2026-08-25-indicative-pricing-availability) `pricing.availability` on `GET /v1/markets/{market_id}` meant one thing — "every outcome carries a price" — and a price is not a market. An empty AlphaArcade order book fell back to a stale catalog midpoint; a Predict market quoted 0.01 / 0.99 published the arithmetic midpoint of that range; both reported `live`. Sitting next to a venue with a real book, those numbers read as an edge: | event | Predict | our `availability` | Polymarket | apparent edge | |---|---|---|---|---| | `mlb-mia-wsh-2026-08-28` | MIA 0.515 | `live` | Miami 0.735 | 0.220 | | `mlb-cin-chc-2026-08-28` | CIN 0.485 | `live` | Cincinnati 0.395 | 0.090 | | `mlb-hou-nyy-2026-08-27` | HOU 0.500 | `live` | Houston 0.430 | 0.070 | None of those edges existed. Each Predict quote came from a book tens of cents wide, on a venue that publishes, per market, exactly how wide a book it counts as liquidity. **A new `indicative` value** now separates the two claims. `live` means every outcome is priced **and** at least one outcome has a two-sided book the venue itself treats as quoted. `indicative` means every outcome is priced but none of those prices has such a book behind it — a mark, one side with nothing facing it, or a two-sided book the venue's own spread threshold rejects. `price`, `bid`, and `ask` are unchanged and nothing is nulled: the venue's numbers are real information, and what changes is the claim made about them. Three things drive the new grade: - **Predict's per-market `spreadThreshold` is now read.** It is the venue's own declaration of the widest bid/ask spread it counts as liquidity — the same number Predict's liquidity-reward rules tell makers to stay below. It is genuinely per-market: measured live across 6,122 open markets it took three values (0.06 on 4,828, 0.04 on 1,156, 0.03 on 16), so it cannot be a constant. 56% of two-sided Predict outcomes in that sample were quoted outside their own market's threshold. - **An empty book is one answer, not two.** AlphaArcade markets that never traded carry no midpoint and already reported `no_quotes`; markets whose book emptied out kept a stale one and reported `live`. Same upstream fact, so they now agree — `no_quotes` where there is no price, `indicative` where there is a mark. - **One resting order is not a market.** A book with a bid and no ask still produces a price on both outcomes, and that is now `indicative` on every provider. Settled Polymarket markets, whose 1/0 `outcomePrices` are resolution marks with no book at all, land there too. Venues that publish no spread threshold get no invented one; only the two-sidedness test applies to them. A Polymarket market with a real book on its primary outcome stays `live` even though the other outcome carries a mark only, because the market is genuinely quoted. **What breaks.** `indicative` is a new enum value, so a client that switches exhaustively on `availability` needs a branch for it, and markets that previously reported `live` now report `indicative`. Code that filters on `availability == "live"` will see fewer markets and should — that is the fix. If you only need "is there a number here", the guarantee on `price` now covers `live` **and** `indicative`: both promise a non-null price on every outcome. Anything sized or arbitraged against a quote should read `live` alone, and take the executable price from the venue's own book. `GET /v1/markets/{market_id}` also gained an up-front statement of what the pricing tier can and cannot support, so the limits are stated once at the top rather than spread across six field descriptions. ## Finished games no longer appear on the default sports matching page, and `include_settled` now does something (2026-08-25, https://docs.predictorsdk.com/changelog/2026-08-25-matching-snapshot-past-dated-events) `GET /v1/matching-markets/sports` was serving games that had already been played alongside today's slate. On 2026-08-25 the default `limit=100` page carried four MLB games from May and June — the oldest, `mlb-tb-nyy-2026-05-23`, 94 days past — mixed in with that evening's fixtures. And `include_settled`, the parameter that exists to separate the two, changed nothing: absent, `=false` and `=true` returned identical key sets with the same `total`. Both are fixed, and they were the same problem. `include_settled` now selects which events a request draws from: - **Default (`include_settled` absent or `false`)** — events whose scheduled start has not certainly passed. That is today's games plus a one-day grace, so a late Pacific start that runs past midnight Eastern is never dropped while it is still being played. - **`include_settled=true`** — the same set plus events whose game date is further in the past, including ones a venue still lists as open. This applies to lookups (`?event_id=`, `?polymarket_market_slug=`, …) as well as to list mode: one parameter, one meaning. If you hold a canonical `event_id` for a game that has already been played, ask for it with `include_settled=true`; without the flag the lookup answers `200` with an empty `markets` object. **Why the game date and not the venue's status.** Those months-old rows were not a mapping error on our side. Polymarket was still actively refreshing the 94-day-old market's quote — a two-sided book at 0.42 / 0.43, restamped six minutes before we read it — and Predict reported `tradingStatus: OPEN` with no resolution. Marking them `settled` would have published a resolution neither venue has. What we *can* say honestly is that the game was scheduled for 2026-05-23, which the canonical event key has said all along. So the endpoint filters on the date it already holds, and nothing on the response claims a market is closed. Nothing was added to the response. `/v1/matching-markets/sports` stays identity-only — no status, no timestamps, no dates — so `pagination.total`, `has_more` and cursor advancement all describe the filtered set, and a cursor issued under one setting of `include_settled` still cannot be replayed against the other. ## Unrouted paths and wrong methods now return the documented JSON error body (2026-08-25, https://docs.predictorsdk.com/changelog/2026-08-25-router-error-bodies) Every documented error on this API is a JSON `ErrorResponse` — `{"error": …, "status_code": …}` with an optional `message`. Two were not: a path matching no route, and a path called with a method it does not accept. Those two were answered by the Go router's defaults, `text/plain` bodies reading `404 page not found` and `Method Not Allowed`. They are also the first two errors a new caller hits. A mistyped path or a `POST` where a `GET` was meant produced a completely different response shape from every other failure on the API, and a typed SDK client deserializing the body got a string where it expected an error object — a parse problem stacked on top of the original mistake. Both now match everything else: ```json // GET /v1/nosuchroute { "error": "not found", "status_code": 404, "message": "No route on this API matches this path." } // POST /v1/markets { "error": "method not allowed", "status_code": 405, "message": "This path accepts GET, HEAD." } ``` The `Allow` header on a `405` is unchanged and still lists the methods that path accepts; the `message` now repeats it, so a client reading only the body can recover. Neither response requires a valid API key — the router answers before the key is read — and neither status code changed. If you were matching on the old plain-text body, match on the status code and the `error` field instead. `405` was previously absent from the reference. It is now documented at the API level rather than per endpoint, because a rejected method belongs to no endpoint: declaring it on `GET /v1/markets` would claim a status that `GET /v1/markets` never returns. Errors a handler produces are unchanged — a market that does not exist still returns `404 {"error": "market not found"}`, distinguishable from the routing `404` above by that field. ## Corrected the documented `getEvent` call on the TypeScript and Go SDK pages (2026-08-25, https://docs.predictorsdk.com/changelog/2026-08-25-sdk-getevent-signature-fix) The "Client surfaces" table on the TypeScript and Go SDK reference pages documented `GET /v1/events/{event_id}` with the path parameter as a separate positional argument. It is a field on the request object. Copy-pasting either row did not compile: | page | published | actual | |---|---|---| | TypeScript | `client.getEvent(eventId, request)` | `client.getEvent(request)` | | Go | `client.GetEvent(ctx, eventID, request)` | `client.GetEvent(ctx, request)` | So the calls that work are `client.getEvent({ eventId: "KXNBAGAME-26OCT20OKCSAS" })` and `client.GetEvent(ctx, &predictorsdk.GetEventRequest{EventID: "KXNBAGAME-26OCT20OKCSAS"})`. **The Python page was already correct** and is unchanged. `client.get_event(event_id, ...)` is right there, because the generator hoists a path parameter to a positional argument in Python and keeps it on the request object in TypeScript and Go. The three tables describe three genuinely different call shapes; they are not supposed to match each other. Only that one row was wrong — every other surface on all three pages already matched its generated client. The row was hand-written from the endpoint's shape rather than from the client, and nothing disagreed: the pages' runnable examples never call `getEvent`, and code inside an MDX fence is not typechecked by the docs build. Those tables are now verified against the generated clients and the OpenAPI spec on every CI run, so a table row that cannot compile fails the build instead of shipping. ## Spread rows can no longer carry the opposing team's market (2026-08-25, https://docs.predictorsdk.com/changelog/2026-08-25-spread-subject-resolution) `GET /v1/matching-markets/sports?include_submarkets=true` returns spread submarkets with a signed `line` and a `subject`. Because the sign is only meaningful relative to the subject, a source market filed under the wrong subject inverts the position for anyone trading off the row — it is a sign error, not a cosmetic mismatch. Two things could produce that inversion. **Team codes were matched as bare substrings.** Canonical codes are two or three characters and appear inside the *other* team's name: `pit` inside "Ca**pit**als", `ari` inside "M**ari**ners", `lad` inside "Phi**lad**elphia", `la` inside "Dal**la**s", `tor` inside "S**tor**m", `fla` inside "**Fla**mes". A substring hit decided the subject, and it was consulted *before* Polymarket's own `-spread-away-` / `-spread-home-` slug token, so a collision beat the authoritative signal. Sweeping every ordered same-league pair through the classifier, 1,210 of 5,884 cases resolved to the opposing team, and 33 still did with the structured slug signal present. Subject resolution now reads explicit source-native signals first — the provider's own team code, then Polymarket's slug side — and only then scans the title, as whole-word phrases through the league alias table rather than as bare substrings. The scan is greedy longest-first, so "Chicago Cubs" is no longer decided by the "Chicago" it shares with the White Sox, and a title naming both teams is treated as ambiguous instead of resolving to whichever name was read first. **SX Bet's side was inferred from label order.** Its `market_name` is only the fixture's team pair — identical across the moneyline, every spread and every total on that game — so the side lives exclusively in the outcome labels, each of which names its own team and carries its own sign ("Baltimore Orioles -1.5" against "St. Louis Cardinals +1.5"). The classifier read *which* label carried the sign rather than *which team* the label named. It now reads the team out of the label. When no source-native signal resolves the side, the market is dropped from the spread submarket space rather than filed against a default participant. A spread you cannot attribute is not a spread; the previous behaviour booked it against the away team, which is correct exactly half the time. No response fields changed, and no correct row moved: all 257 spread source markets in the live snapshot resolve identically before and after. Affected rows are those on matchups where a team's code collides with the opponent's name — WNBA Seattle at Toronto and MLB Seattle at Arizona are both real fixtures that would have inverted. ## pricing.as_of now declares what it measures, and market detail reports its own read time (2026-08-24, https://docs.predictorsdk.com/changelog/2026-08-24-pricing-freshness-contract) New as_of_kind and observed_at on GET /v1/markets/{market_id}, so a quote-freshness bound can be enforced on every provider instead of guessing which platforms publish a real quote timestamp. `GET /v1/markets/{market_id}` now returns `pricing.as_of_kind` and `pricing.observed_at`. Both are additive; `pricing.as_of` is unchanged and existing consumers keep parsing as before. The problem they solve is that `as_of` was the only quote timestamp on the response, and it does not mean the same thing on every platform. On Hyperliquid it is the order book's own server time and moves with the book. On Kalshi it is a record write that does not move at all while the market is quoted: across two live runs on 2026-08-24 it advanced on 0 of 39 and then 0 of 42 open markets — including five whose prices moved inside the window — and ran anywhere from 15 hours to 137 days old on markets reporting `status: open` with a live two-sided book. Four different meanings arrived in one RFC3339 string with nothing to tell them apart, so a consumer with a single code path had no good option: a 30-second bound rejected every Kalshi and Polymarket market, and loosening it enough to admit them silently accepted a badly stale Hyperliquid or SX Bet book. `as_of_kind` names which meaning you received. `quote` — the stamp advances when the quote advances, so an age bound on it is meaningful (Hyperliquid, and SX Bet's V2 best-odds path). `record_refresh` — it advances on a periodic rewrite of the provider's record whether or not the quote moved, so it bounds record age in minutes and quote age not at all (Polymarket: it advanced on 60 of 60 and then 25 of 25 markets while only one of those prices changed, 45 to 405 seconds old). `record_static` — it does not advance while the market is quoted, so it bounds nothing at any threshold (Kalshi). `unknown` — `as_of` is null and the record carries no timestamp of any kind (Predict, AlphaArcade, and SX Bet from the 2026-08-25 V3 cutover, whose order book publishes an opaque monotonic `version` and no wall clock). The field is always present, and `unknown` whenever `as_of` is null — the two can never contradict each other. One caveat on `quote`, because it is easy to over-read: it means the stamp tracks the quote, not that every `quote` provider supports the same threshold. Hyperliquid's `l2Book` time tracks wall clock to the second. SX Bet's marks when the resting top-of-book order was posted, so on a thin book it is legitimately old — 39 seconds to 2.5 hours measured, median around 24 minutes. Both are honest quote stamps; size the bound to the venue rather than applying one seconds-scale threshold everywhere. `observed_at` is when PredictorSDK read the quotes. Unlike `as_of` its definition does not vary by platform, which makes it the field to bound when you want one threshold that behaves identically everywhere. It is named the way `trading_fees.observed_at` is, and for the same reason: `as_of` is the provider's own stamp, and reusing that name for a differently-defined value would bake the confusion into a second field. It bounds the age of the read, not of the quote — this route reads the venue live on every request and caches nothing, so a fresh `observed_at` next to a day-old `as_of` on a `record_static` provider is the honest description of what the venue served. It is stamped before the upstream call, so it is never newer than the moment the quotes were actually observed and `now − observed_at` never understates their age. It is `null` only when `availability` is `unavailable`; a `no_quotes` reading is a successful observation of an empty book and is stamped. The per-provider staleness ranges above are published in the `as_of` reference description so a threshold can be picked from measured behaviour rather than guessed. They are observed behaviour, not a contract — a venue can change how it writes its records at any time. The Kalshi figure in particular is wide because `as_of` there tracks when the record was last written, which scales with how long-dated the market is: a same-day game market runs a day or two, while `CHINAUSGDP-30` was `status: open` and quoting 0.15 / 0.19 on a stamp from 2026-04-09. That is the whole argument for `record_static` — there is no threshold to pick. One correction while we are here: the 2026-06-05 entry announcing the pricing tier described `as_of` as a "conservative oldest-side quote timestamp". The oldest-side part is accurate and still holds. Calling it a quote timestamp without a per-provider caveat was not, and `as_of_kind` is now the authoritative answer on any given response. ## Market detail now reports each venue's trading fee model (2026-08-21, https://docs.predictorsdk.com/changelog/2026-08-21-venue-trading-fees) A normalized, provider-neutral trading_fees descriptor on GET /v1/markets/{market_id}, so cross-venue cost comparison stops requiring six private formulas. `GET /v1/markets/{market_id}` now returns `trading_fees`: the fee the prediction market itself charges to trade that market, normalized across all six platforms. (Nothing here relates to PredictorSDK's own subscription pricing.) Normalized price alone cannot answer "which venue is cheaper", because every venue's fee is non-linear in price and none of them is expressible as a single basis-point rate — two venues quoting the identical ask can differ by more than 100 bps in true cost, and which one is cheaper can invert during the trading day. Every published model reduces to a per-share fee times the traded share count, so one descriptor covers all of them: `taker.model` is `quadratic` (`rate × (price × (1 − price)) ^ exponent` — Kalshi, Polymarket, AlphaArcade), `min_price` (`rate × min(price, 1 − price)` — Predict), `notional` (a flat fraction of notional), or `none`. Both the `taker` and `maker` legs are always returned and you pick; PredictorSDK does not infer which side you will be. `rounding` carries the venue's published rule where it publishes one. `trading_fees.availability` keeps the same honesty contract as `pricing.availability`, and it is on a separate axis from the fee value: `availability` says what is known, the legs say what is charged. `published` means the full parameter set is known; `partial` means fees may be charged but a parameter is missing upstream, so nothing is guessed; `account_specific` means rates exist but are set per trading account and need your own venue credentials (SX Bet, Hyperliquid); `unavailable` means our own bounded parameter fetch degraded. A fee-free market is `published` with `model: "none"` and `rate: 0` — an asserted zero, distinguishable from all three of those. Two details worth reading before you wire this into a router. `charge_basis` tells you what the fee is assessed on: `fill` for most venues, but `settlement_profit` for SX Bet, which charges on the profit of a winning position at settlement rather than on entry notional — a different shape, not just a different rate. And `scheduled_change` carries the next published parameter change with its effective time: Kalshi currently runs its entire MLB family at a half-rate `fee_multiplier` with a per-event override restoring the full rate at first pitch, so the fee doubles on a game that is already trading. Only Kalshi costs extra upstream work for this — its parameters live on the parent series plus any scheduled per-event override — and those hops are bounded and cached, degrading to `availability: "unavailable"` rather than failing the lookup. Every other platform reads its fee parameters off the same market record the lookup already fetches. ## WNBA matched events on /v1/matching-markets/sports (2026-08-19, https://docs.predictorsdk.com/changelog/2026-08-19-wnba-matching) `/v1/matching-markets/sports` now matches WNBA games across Kalshi, Polymarket, SX.Bet, and AlphaArcade — moneyline, spread, and total game lines plus points/rebounds/assists player props, with the same half, quarter, and team-total submarkets NBA already exposes. Canonical event IDs follow the existing convention, so a WNBA game is `wnba-tor-wsh-2026-08-19` and resolves through the `event_id` filter like any other event. Canonical team codes are the standard WNBA short codes (`atl chi con dal gs ind la lv min ny phx por sea tor wsh`), including the Toronto Tempo, Portland Fire, and Golden State Valkyries expansion clubs; source-native spellings such as Kalshi's `PDX`/`CONN` and Polymarket's `gsv`/`las`/`nyl`/`por` are aliased onto them. Predict does not currently list WNBA games, so WNBA events match across four sources rather than five. AlphaArcade contributes the moneyline, as it does for MLB. Two correctness fixes ship alongside: Kalshi spread markets now resolve the favoured team from the ticker suffix through the canonical team-code table instead of comparing the source-native code directly. Previously any Kalshi spread whose suffix used a source-native spelling — WNBA `PDX`/`CONN`, and MLB `ATH`/`AZ` — fell back to the away team, which could place the spread on the wrong side and prevent it matching the same line on another platform. AlphaArcade now derives its game identity from its structured `secondaryTitle`, `yesTeamName`/`noTeamName`, and `gameStartTimeMs` fields instead of parsing its market slug. Its slugs spell teams as nicknames with inconsistent hyphenation, and their trailing date goes stale when a game is rescheduled, so 7 of 16 live MLB game lines were silently failing to match — either producing no key at all or bucketing on a date no other platform used. Those games now match, and the same resolver is what lets AlphaArcade contribute WNBA. ## Matching markets now link directly to provider events (2026-08-06, https://docs.predictorsdk.com/changelog/2026-08-06-matching-event-ids) Every matched platform row now includes its provider-native parent event identifier. `GET /v1/matching-markets/sports` now includes an optional `event_id` on each platform row, so callers can expand a cross-platform match through `GET /v1/events/{event_id}` without a provider-specific market-to-event lookup. The field uses the provider's native parent identity—Kalshi event ticker, Polymarket event slug, Predict market ID, SX Bet fixture ID, or AlphaArcade parent ULID—while preserving every existing market-level identifier. Send the row's `platform` value as the events endpoint's `platform` query parameter on every request: Predict market IDs and AlphaArcade ULIDs are shape-identical to Polymarket identifiers, so without it the lookup can resolve to an unrelated Polymarket event. ## SDK v0.12.0 — parity fixes and current Fern runtimes (2026-08-05, https://docs.predictorsdk.com/changelog/2026-08-05-sdk-v0-12-0) TypeScript, Python, and Go clients now ship the post-v0.11 contract fixes on the latest stable Fern toolchain. SDK v0.12.0 brings the TypeScript, Python, and Go packages up to date with the post-v0.11 API contract fixes, including complete rate-limit headers, authorization-dependency errors, stale-cursor behavior, and capped retry delays. The release is regenerated with current stable Fern CLI and language generators, preserves the existing `PaymentRequiredErrorAction` export, and includes refreshed client runtimes plus package-level build and smoke validation. Upgrade with `npm i @predictorsdk/client@0.12.0`, `pip install predictorsdk==0.12.0`, or `go get github.com/PredictorSDK/sdk-go@v0.12.0`. ## Fresh market snapshots, public plans SDKs, and interoperable retries (2026-08-04, https://docs.predictorsdk.com/changelog/2026-08-04-catalog-freshness-plans-and-retries) Catalog pagination now binds to durable provider snapshots, sports matching refreshes independently, plans are in OpenAPI/SDKs, and rate-limit reset units are standardized. Unified market pages now bind to immutable, resolvable provider snapshots, so totals, `has_more`, cursors, and returned rows cannot diverge when old records are pruned. Provider catalogs persist independently and a separate bounded sports path keeps current matching from waiting on a large full-catalog crawl. `GET /v1/plans` is now part of the public OpenAPI contract and generated TypeScript, Python, and Go SDKs. Rate-limit reset headers use Unix seconds, API-key rate-limit `429` responses include `Retry-After`, and all SDK retry layers also recognize legacy millisecond epochs. Provider-originated `429` responses may omit `Retry-After`. ## SDK retry caps and contract parity fixes (2026-08-04, https://docs.predictorsdk.com/changelog/2026-08-04-post-release-parity-fixes) Retry jitter now honors the documented maximum, while API error docs, plan examples, and LLM indexes match the complete public surface. AlphaArcade MLB moneylines now use the canonical `moneyline|full|winner` identity, restoring exact submarket overlap with current Predict and Polymarket games. TypeScript and Python retry delays remain at or below 60 seconds even after jitter is applied, matching Go and the documented client contract, and Python now correctly interprets legacy `Retry-After-Ms` values as milliseconds. Successful-response rate-limit headers and authorization-dependency errors are now explicit in OpenAPI, the public plan example includes all five plans, every SDK guide lists the typed `402` error, and both LLM indexes include every generated API reference page. Retained market-catalog cursors whose snapshot keys expired or were evicted under storage pressure now return the documented stale-cursor error instead of a storage failure; clients should complete traversal promptly rather than treating the full 24-hour retention window as guaranteed. The uncapped Kalshi catalog no longer retains unused MVE metadata for every passthrough row, and the production jobs/Valkey memory declarations now leave headroom for full provider snapshots and reliable AOF rewrites. ## Canonical sports submarket mappings (2026-07-31, https://docs.predictorsdk.com/changelog/2026-07-31-canonical-sports-submarkets) Sports matching can now expose exact normalized lines, outcomes, and provider IDs. `GET /v1/matching-markets/sports` now accepts `include_submarkets=true` to add an opt-in `canonical_events` identity map, plus `event_id` for exact canonical-key lookup. It exposes normalized event keys, participants, market type, segment, signed line, spread/player subject, outcomes, and exact provider-native market/outcome references while leaving the compact default response unchanged. Lookup mode accepts up to 100 unique identifiers per request. The generated TypeScript, Python, and Go SDKs ship this surface in v0.10.0. Current status, quotes, liquidity, and order-book depth remain separate market-data concerns. ## Category filtering for market discovery (2026-06-26, https://docs.predictorsdk.com/changelog/2026-06-26-category-filtering) `GET /v1/markets` now returns a canonical `category` on every market and accepts `?category=` to filter the unified catalog across providers. The new `GET /v1/categories` endpoint lists the supported top-level categories, starting with broad buckets such as `sports`, `politics`, `crypto`, `finance`, `economics`, and `weather`. ## AlphaArcade added as a sixth provider (2026-06-15, https://docs.predictorsdk.com/changelog/2026-06-15-alpha-arcade-provider) AlphaArcade prediction markets (settled on Algorand) now flow through the unified API alongside Kalshi, Polymarket, Predict, SX Bet, and Hyperliquid: - **`GET /v1/markets`** lists every AlphaArcade market — binary (Yes/No) and multi-choice (an `options[]` array, each option its own submarket) — under `provider: alpha-arcade`. - **`GET /v1/markets/{market_id}`** returns full detail with live pricing. AlphaArcade's order book is a 4-sided YES/NO book; the second side's quotes are derived by the cross-side complement (buying *Yes* at `p` equals selling *No* at `1−p`), priced from one bounded `get-full-orderbook` fetch (`pricing.source: orderbook`). The catalog midpoint is the price mark when the book is empty, and the lookup degrades to mark-only (`bid`/`ask` null) rather than failing if the book fetch errors. - **`GET /v1/events/{event_id}`** resolves an AlphaArcade multi-choice market to its nested option markets, or a binary market (or single option id) to a single-market event. AlphaArcade market ids are ULIDs (26-char Crockford base32, e.g. `01KQV5TQ9CE20WPEVJZX2ETNQD`) and are not inferred, so look markets up via the composite id `alpha-arcade:` (as returned by `/v1/markets`) or with `?platform=alpha-arcade` (alias `aa`). Unlike Hyperliquid, AlphaArcade also participates in cross-source sports matching: its MLB game lines (moneyline) are classified and matched against Kalshi, Polymarket, SX Bet, and Predict in `GET /v1/matching-markets/sports`, because AlphaArcade's MLB game slugs follow the same `mlb-{away}-{home}-{date}` convention Polymarket uses. So `ALPHA-ARCADE` can appear as a platform in matching-markets responses (currently MLB only). Non-MLB AlphaArcade markets are passthrough-only for now. SDK enums (`provider`, `platform`) gain `alpha-arcade` across the TypeScript, Go, and Python clients — a backward-compatible addition. ## Hyperliquid added as a fifth provider (2026-06-08, https://docs.predictorsdk.com/changelog/2026-06-08-hyperliquid-provider) Hyperliquid [HIP-4 outcome markets](https://hyperliquid.gitbook.io/hyperliquid-docs/hyperliquid-improvement-proposals-hips/hip-4-outcome-markets) now flow through the unified API alongside Kalshi, Polymarket, SX Bet, and Predict: - **`GET /v1/markets`** lists every Hyperliquid outcome market (crypto price binaries/buckets, plus economics and sports markets like CPI, the FOMC rate decision, the NBA Finals, and the 2026 World Cup) under `provider: hyperliquid`. - **`GET /v1/markets/{market_id}`** returns full detail with live pricing. Hyperliquid's order book is merged (buying *Yes* at `p` equals selling *No* at `1−p`), so each market's two sides are quoted from one bounded `l2Book` fetch (`pricing.source: orderbook`); the lookup degrades to `availability: unavailable` rather than failing if the book fetch times out. - **`GET /v1/events/{event_id}`** resolves a Hyperliquid *question* (e.g. "2026 World Cup Champion") to its nested outcome markets, or a standalone outcome to a single-market event. Hyperliquid integer ids overlap with Polymarket/Predict numeric ids, so look markets up via the composite id `hyperliquid:` (as returned by `/v1/markets`) or with `?platform=hyperliquid` (alias `hl`). SDK enums (`provider`, `platform`) gain `hyperliquid` across the TypeScript, Go, and Python clients — a backward-compatible addition. ## SDK v0.7.0 — market pricing tier types (2026-06-06, https://docs.predictorsdk.com/changelog/2026-06-06-sdk-v0-7-0) Updated TypeScript, Go, and Python clients to v0.7.0 with the new market pricing tier: `MarketDetailOutcome` gains `outcome_id`, `price`, `bid`, `ask`, `last`, and `bid_size`/`ask_size`; `MarketDetailResponse` gains the `MarketDetailPricing` envelope (`availability`, `scale`, `source`, `as_of`, `neg_risk`) plus `liquidity_usd`, `volume_24h_usd`, `volume_total_usd`, contract-count mirrors, and `open_interest`. All additions are backward-compatible. Install via `npm i @predictorsdk/client`, `pip install predictorsdk`, or `go get github.com/PredictorSDK/sdk-go`. ## Price, liquidity & volume on /v1/markets/{market_id} (2026-06-05, https://docs.predictorsdk.com/changelog/2026-06-05-market-detail-pricing) `GET /v1/markets/{market_id}` now carries a full pricing tier, additively over the existing identity fields. Each `outcomes[]` entry gains `outcome_id` (the stable per-platform key: Kalshi `yes`/`no`, Polymarket CLOB token id, Predict on-chain id, SX Bet `outcomeOne`/`outcomeTwo`) plus `price`, `bid`, `ask`, `last` as 0–1 probability JSON numbers — `price` is the implied probability, derived mid-of-book → single side → last trade → platform mark — and `bid_size`/`ask_size` where the platform publishes per-side depth. A new `pricing` envelope discloses `availability` (`live`/`partial`/`no_quotes`/`unavailable`), `scale` (`probability_0_1`), `source` (`market_record`, or `orderbook` for SX Bet, whose quotes require one bounded second fetch against its best-odds order-book endpoint — on timeout the lookup still succeeds with identity intact), `as_of` (conservative oldest-side quote timestamp), and `neg_risk`. Market-level aggregates land as always-present-nullable `liquidity_usd`, `volume_24h_usd`, `volume_total_usd` plus Kalshi-native `volume_24h_contracts`, `volume_total_contracts`, and `open_interest` — values a platform doesn't natively expose are explicit `null`, never fabricated (Kalshi volume is contract counts, not USD; its deprecated upstream liquidity field is not surfaced as zero). No breaking changes: every new field is additive and existing consumers keep parsing unchanged. ## /v1/markets/{market_id} (2026-05-23, https://docs.predictorsdk.com/changelog/2026-05-23-market-detail-endpoint) New `GET /v1/markets/{market_id}` returns a single market's detail across all four supported platforms. Accepts both the composite form returned by `GET /v1/markets` (`kalshi:KXMLBGAME-26MAY262005HOUTEX-TEX`) and the platform-native identifier (`KXMLBGAME-26MAY262005HOUTEX-TEX`, `540817`, `new-rhianna-album-before-gta-vi-926`, `0x70953a9f01fce5c8…`). Dispatch is composite-prefix → ID-format inference → Polymarket→Predict probe for ambiguous shapes; pass `?platform=` to skip the probe. Response is strict-universal — `id`, `provider`, `provider_id`, `title`, normalized `status` (`open`/`closed`/`settled`), and `outcomes[].name`. Pricing, volume, liquidity, close timestamps, and parent event IDs are deliberately omitted at v0 because they aren't natively available across every platform without a second upstream fetch; they'll be added additively once the underlying coverage permits. Free-tier accessible, permission `markets.read`, cost 1 credit per call. ## /v1/events/{event_id} (2026-05-22, https://docs.predictorsdk.com/changelog/2026-05-22-events-endpoint) New `GET /v1/events/{event_id}` returns an event and its nested markets from any of the four supported platforms. Platform is inferred from the ID format (Kalshi `KX…`, SX Bet `L\d+`); for numeric IDs and kebab-case slugs (shared shape between Polymarket and Predict), the endpoint probes Polymarket first and falls back to Predict on 404 — so `/v1/events/mlb-world-series-champion-2026` resolves without needing `?platform=`. Pass `?platform=` explicitly to skip the probe. For Kalshi sports tickers, the endpoint fans out across registered sibling series (spreads, totals, half/quarter lines, props) and merges them into one response — call `/v1/events/KXMLBGAME-…` to get the moneyline plus first-5 spread / first-5 total / RFI markets in one shot. Free-tier accessible, permission `events.read`, cost 1 credit per call regardless of fanout breadth. ## MLB matched events on /v1/matching-markets/sports (2026-05-17, https://docs.predictorsdk.com/changelog/2026-05-17-mlb-matching) `/v1/matching-markets/sports` now matches MLB game lines (moneyline, runline, total) across Kalshi, Polymarket, SXBet, and Predict. NBA and NHL coverage is unchanged. ## New endpoint — Polymarket wallet positions (2026-05-13, https://docs.predictorsdk.com/changelog/2026-05-13-polymarket-wallet-positions) New endpoint: `GET /v1/polymarket/wallet/positions` returns a wallet's current Polymarket positions. Accepts either `address` or `username`. Available on Free. See the [API reference](https://docs.predictorsdk.com/api-reference/listPolymarketWalletPositions). ## /v1/polymarket/wallet now resolves usernames (2026-05-08, https://docs.predictorsdk.com/changelog/2026-05-08-polymarket-wallet-username) `GET /v1/polymarket/wallet` now accepts a `username` query parameter as an alternative to `address`. See the [API reference](https://docs.predictorsdk.com/api-reference/getPolymarketWallet). ## /v1/polymarket/wallet (2026-05-06, https://docs.predictorsdk.com/changelog/2026-05-06-polymarket-wallet) New endpoint: `GET /v1/polymarket/wallet?address=0x...` returns the public profile (image and display name) for any Polymarket wallet. Available on Free. See the [API reference](https://docs.predictorsdk.com/api-reference/getPolymarketWallet). ## SDK v0.3.2 — TypeScript, Go, and Python (2026-05-04, https://docs.predictorsdk.com/changelog/2026-05-04-sdk-v0-3-2) Updated TypeScript, Go, and Python clients to v0.3.2. Install via `npm i @predictorsdk/client`, `pip install predictorsdk`, or `go get github.com/PredictorSDK/sdk-go`. ## Lower latency on /v1/markets (2026-04-28, https://docs.predictorsdk.com/changelog/2026-04-28-self-hosted-valkey) Reads on `/v1/markets` and `/v1/matching-markets/*` are slightly faster after a cache infrastructure swap — no SDK or API changes. ## /v1/markets on Free (2026-04-25, https://docs.predictorsdk.com/changelog/2026-04-25-markets-on-free-tier) Free-tier API keys can now call `/v1/markets`; quotas unchanged at 1,000 req/mo and 10 rpm. See [Plans](https://docs.predictorsdk.com/guides/plans).