> ## Documentation Index
> Fetch the complete documentation index at: https://pmxt.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> One API for supported prediction markets. Unified data, hosted catalog search, and venue-native trading where supported.

> [!NOTE]
>
> New here? Start with [Quickstart](https://pmxt.dev/docs/quickstart.md) (read-only, 30 seconds)
> or [Trading Quickstart](https://pmxt.dev/docs/trading-quickstart.md) (hosted writes, 5 minutes).

PMXT is a unified API for supported prediction-market venues — Polymarket,
Kalshi, Limitless, Smarkets, and [12 more venues](https://pmxt.dev/docs/concepts/venues.md). It uses
shared SDK method names and unified response shapes where each venue supports
the underlying capability.

> [!NOTE]
>
> New to prediction markets? Start at the [101](https://pmxt.dev/docs/concepts/prediction-markets-101.md) page for the vocabulary — outcome, price-as-probability, EIP-712, escrow, USDC on Polygon, and Group A methods.

It runs two ways:

* **Hosted (default)** — PMXT's [hosts](https://pmxt.dev/docs/authentication.md#hosts) give you a
  shared catalog, cross-venue search, and end-to-end [hosted
  trading](https://pmxt.dev/docs/concepts/hosted-trading.md) with [PreFundedEscrow](https://pmxt.dev/docs/concepts/prediction-markets-101.md#prefundedescrow) custody. Set
  an API key and the SDK is fully operational.
* **Self-hosted (advanced)** — for users who run
  [pmxt-core](https://github.com/pmxt-dev/pmxt) on their own machine.
  No API key, no external dependency. Your requests go directly to the
  venues. See [self-hosted](https://pmxt.dev/docs/guides/self-hosted.md).

The SDK call shape is shared, but the runtime target changes:

```python theme={null}
import pmxt

# Hosted (default): talks to PMXT's hosts — see /authentication#hosts
poly = pmxt.Polymarket(pmxt_api_key="pmxt_live_...")

markets = poly.fetch_markets(query="fed rate cut", limit=5)
for m in markets:
    print(m.title, m.outcomes[0].price)
```

If you'd rather run pmxt-core yourself, drop the API key:

```python theme={null}
import pmxt

# Self-hosted: SDK spawns pmxt-core on localhost
poly = pmxt.Polymarket()
```

Hosted mode uses a PMXT API key and hosted services. Self-hosted mode talks
to local `pmxt-core` and uses venue-native credentials where a capability
requires them.

See [self-hosted](https://pmxt.dev/docs/guides/self-hosted.md) for when that's the right choice.

Swap the venue class — `pmxt.Kalshi(...)`, `pmxt.Limitless(...)` — and
use the same method names and response shapes where that venue implements the
capability.

## The Router — cross-venue intelligence

The **[Router](https://pmxt.dev/docs/router/overview.md)** is PMXT's cross-venue intelligence
layer. Search, match, and compare prices across the hosted catalog — all
from a single PMXT API key:

```python theme={null}
import pmxt

router = pmxt.Router(pmxt_api_key="pmxt_live_...")

# Search catalog venues at once
markets = router.fetch_markets(query="fed rate cut")

# Find the cluster of matching markets on other venues
clusters = router.fetch_matched_market_clusters(markets[0])

# Browse high-volume matched clusters across venues
top_clusters = router.fetch_matched_market_clusters(sort="volume", min_venues=2, limit=10)
```

> [card] [Cross-venue search](https://pmxt.dev/docs/router/search.md)
>
> One query searches the hosted catalog. Results in \~10ms from a
> shared index.

> [card] [Market matching](https://pmxt.dev/docs/router/matching.md)
>
> Find clusters of the same or related market across venues with
> relation types and confidence scores.

> [card] [Price comparison](https://pmxt.dev/docs/router/prices.md)
>
> Compare bid/ask across venues and find related markets.

> [card] [Compose with venues](https://pmxt.dev/docs/router/prices.md#composing-with-venue-exchanges)
>
> Discover with the Router, then trade with venue clients. Same schema;
> catalog IDs for Router and hosted flows, venue-native IDs for direct
> self-hosted writes.

## Unified venue interface

Same method names, same response shapes, with support varying by venue.
`fetch_markets`, `create_order`, and `fetch_positions` use the unified
schema where the venue implements them.

> [card] [Unified schema](https://pmxt.dev/docs/concepts/unified-schema.md)
>
> `Event` / `Market` / `Outcome` — the shape that works everywhere.

> [card] [Same SDK, local or hosted](https://pmxt.dev/docs/quickstart.md)
>
> The `pmxt` (Python) and `pmxtjs` (TypeScript) SDKs share high-level
> calls across hosted and self-hosted modes. Credentials and supported
> writes vary by mode.

## What you'd build yourself

Without PMXT, getting cross-venue prediction market data means:

* **15+ venue integrations** — each with its own auth, pagination, field
  names, and rate limits. Polymarket uses CLOB token IDs. Kalshi uses
  tickers. Smarkets uses contract IDs. You normalize all of it.
* **A data pipeline** — to ingest, deduplicate, and keep fresh as markets
  open, resolve, and re-price across supported venues.
* **A search layer** — because querying venue APIs sequentially is slow.
* **Ongoing maintenance** — every time a venue changes a field name or
  ships a new endpoint, your integration breaks.

PMXT handles all of that. You write `fetch_markets(query="...")` and get
back clean, unified data.

## Get started

> [card] [Quickstart](https://pmxt.dev/docs/quickstart.md)
>
> API key to working code in 30 seconds.

> [card] [Router](https://pmxt.dev/docs/router/search.md)
>
> Cross-venue search and the beginning of smart order routing.

> [card] [Unified schema](https://pmxt.dev/docs/concepts/unified-schema.md)
>
> The data shape that works everywhere.

> [card] [API reference](https://pmxt.dev/docs/api-reference/overview.md)
>
> Every method, with interactive try-it-out.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.