Skip to content

Commit db57a7a

Browse files
committed
release: 2.50.8 — canonical Hosts section + rate-limits disambiguated
1 parent f8dcb28 commit db57a7a

5 files changed

Lines changed: 33 additions & 6 deletions

File tree

changelog.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [2.50.8] - 2026-06-18
6+
7+
### Docs
8+
9+
- **Canonical "Hosts" section.** PMXT serves two hostnames — `api.pmxt.dev` (reads, Router, MCP, venue passthrough) and `trade.pmxt.dev` (hosted writes + hosted account state) — and the docs explained that split in different words on `docs/introduction.mdx`, `docs/sdk/server.mdx`, and implicitly across hosted-trading/security/migrate. A builder reading any one page in isolation couldn't see the full picture; a builder reading `docs/authentication.mdx` or `docs/rate-limits.mdx` (which only mentioned `api.pmxt.dev`) couldn't tell `trade.pmxt.dev` existed. Three parallel agents pinned this to one canonical location.
10+
- **`docs/authentication.mdx`**: Added a `## Hosts` section at the top of the page (slug `#hosts`). Nine lines: lists both hosts and what each serves, confirms the same `pmxt_api_key` authenticates against both, one line on why the split exists (latency and availability profile for the signed-order submission hot path).
11+
- **`docs/rate-limits.mdx`**: Disambiguated which limits apply to which host. Added a line after the intro stating the per-API-key limits apply across both hosts (linking to `/authentication#hosts`), and clarified below the table that the `/v0/*` row covers both `api.pmxt.dev/v0/*` (Router) and `trade.pmxt.dev/v0/*` (trading) under the same per-key budget.
12+
- **`docs/introduction.mdx`**: Replaced the bullet that listed both hosts inline with a link to the canonical section, and replaced the matching code comment. Two single-line edits.
13+
- **`docs/sdk/server.mdx`**: Replaced one inline mention of both hosts with a link to the canonical section.
14+
- **Files reviewed but not edited (host being USED, not re-explained):** `quickstart.mdx`, `mcp.mdx`, `security.mdx`, `concepts/hosted-trading.mdx`, `concepts/catalog-uuid-vs-venue-id.mdx`, `guides/hosted-errors.mdx`, `guides/migrate-to-hosted-trading.mdx`, `guides/self-hosted.mdx`, `router/search.mdx`, `router/matching.mdx`, `router/event-matching.mdx`. 24 hostname mentions reviewed across all docs; 3 edited across 2 files (plus the canonical section + rate-limits clarification). Every other mention was the host being called in a code example or named in a flow diagram — those stay.
15+
516
## [2.50.7] - 2026-06-18
617

718
### Fixed

docs/authentication.mdx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@ title: Authentication
33
description: "API keys, SDK setup, and venue credentials."
44
---
55

6+
## Hosts
7+
8+
PMXT serves two hostnames.
9+
10+
- `api.pmxt.dev` — reads, catalog search via Router, MCP server, venue passthrough (`/api/*`).
11+
- `trade.pmxt.dev` — hosted writes (build / submit / cancel) and hosted account state (orders, positions, balances, trades) via `/v0/trade/*`, `/v0/user/*`, and `/v0/orders/*`.
12+
13+
The same `pmxt_api_key` authenticates against both — no separate credentials.
14+
15+
Reads and writes have different latency and availability profiles; the trading host is the hot path for signed-order submission and is operated independently.
16+
617
## API key
718

819
Every request to `https://api.pmxt.dev` needs a Bearer token. Get one

docs/introduction.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ New to prediction markets? Start at the [101](/concepts/prediction-markets-101)
2020

2121
It runs two ways:
2222

23-
- **Hosted (default)**`api.pmxt.dev` and `trade.pmxt.dev` give you a
23+
- **Hosted (default)**PMXT's [hosts](/authentication#hosts) give you a
2424
shared catalog, cross-venue search, and end-to-end [hosted
2525
trading](/concepts/hosted-trading) with [PreFundedEscrow](/concepts/prediction-markets-101#prefundedescrow) custody. Set
2626
an API key and the SDK is fully operational.
@@ -34,7 +34,7 @@ The code is identical either way:
3434
```python
3535
import pmxt
3636

37-
# Hosted (default): talks to api.pmxt.dev / trade.pmxt.dev
37+
# Hosted (default): talks to PMXT's hosts — see /authentication#hosts
3838
poly = pmxt.Polymarket(pmxt_api_key="pmxt_live_...")
3939

4040
markets = poly.fetch_markets(query="fed rate cut", limit=5)

docs/rate-limits.mdx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ description: "How much traffic your API key gives you."
66
Every API key includes the full surface — cross-venue search, unified
77
schema, and the complete venue pass-through.
88

9+
Limits are **per API key** and apply across both hosts (`api.pmxt.dev`
10+
and `trade.pmxt.dev`) — see [hosts](/authentication#hosts).
11+
912
## Limits
1013

1114
{/* HOSTED-AUTOGEN:rate-limits-table:START */}
@@ -15,8 +18,10 @@ schema, and the complete venue pass-through.
1518
| `/api/*` | 60 | 25,000 |
1619
{/* HOSTED-AUTOGEN:rate-limits-table:END */}
1720

18-
Every request to `/v0/*` or `/api/*` counts as **1 request**, regardless
19-
of how much data it returns. Health checks are free.
21+
The `/v0/*` row covers both `api.pmxt.dev/v0/*` (Router) and
22+
`trade.pmxt.dev/v0/*` (trading) — the same per-key limits apply across
23+
both hosts. Every request to `/v0/*` or `/api/*` counts as **1 request**,
24+
regardless of how much data it returns. Health checks are free.
2025

2126
## Rate limit responses
2227

docs/sdk/server.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ description: "The SDK auto-spawns and manages pmxt-core when running self-hosted
55

66
<Note>
77
This page covers the **self-hosted** local server. If you're using a
8-
`pmxt_api_key`, you can ignore this page — the SDK talks to
9-
`api.pmxt.dev` / `trade.pmxt.dev` directly and never spawns a local
8+
`pmxt_api_key`, you can ignore this page — the SDK talks to PMXT's
9+
[hosts](/authentication#hosts) directly and never spawns a local
1010
process. See [Hosted trading](/concepts/hosted-trading).
1111
</Note>
1212

0 commit comments

Comments
 (0)