# 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:<id>`) 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:<ulid>`) or `?provider=alpha-arcade` (alias `aa`). ProphetX market ids are `<event_id>:<market_id>` 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 (`<event_id>:<market_id>:<line>`, 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:<slug>`) 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:<slug>`, 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 `<parent_market_id>:<child_market_id>` 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:<parent>` 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:<parent>`), 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