# FAQ

Common questions from partners integrating PAX. If your question is not here, email [Request access](https://docs.predictasiax.com/request-access).

## Access & onboarding

### How do I get an API key?

For a sandbox key: hit `POST /v1/sandbox-keys` — anonymous self-serve, returns an `sk_live_` bearer tagged `tier=sandbox` with $10 per-order + $100 daily caps. See the [Sandbox page](https://docs.predictasiax.com/sandbox/) for the curl. For an org-tagged key with attribution wired in, submit an [application](https://docs.predictasiax.com/request-access) via `POST /v1/apply` — all 20 tracks (app / agent / data / distribution / market / liquidity / oracle / reviewer / operator / self_serve + 8× rfb-* + `genesis` + `institutional`) auto-provision a live `sk_live_*` in seconds. There is no human-review queue — every track returns `status: "approved"` with `auto_provisioned: true` on the `self_serve` tier. Higher tiers (`read_live`, `trade_capped`, `trade_full`, `partner`) are reached automatically by 30-day volume; `genesis` (uncapped API keys and 1.5× builder points) is a live top-20 ranking, auto-granted — none of these require an upgrade request.

### How much does the API cost?

Read endpoints (`/v1/markets`, `/v1/portfolio`, market data) are free at every tier. Trades use the **PAX Adaptive Fee Curve (PAF)**: taker fee follows `clamp(PAF_BASE × 4 × p × (1−p), PAF_FLOOR, PAF_CEILING)`. With defaults `PAF_BASE_BPS = 20`, `PAF_FLOOR_BPS = 8`, `PAF_CEILING_BPS = 25`, the effective per-fill range is **8–20 bps** — peaking at 20 bps at 50/50 uncertainty (raw curve maxes at PAF_BASE because `4·p·(1−p) ≤ 1`), flooring at 8 bps near 0¢/100¢. The 25 bps ceiling is a configurable safety cap that is dormant unless PAF_BASE is raised above 20. Maker rebate is 5–20% of the taker fee of each fill, by a tier set daily from the maker's 30-day share of weighted maker volume. 7-way split at PAF centre, the same at every tier (each actor's absolute bps scales proportionally with the effective clamped fee): `acquisition_builder` 0 / `execution_builder` 0 / `operator` 0 / `market_creator` 3 / `mm_stipend_pool` 5 / `lp` 2 / `platform_net` 10. Builders earn the builder fee they charge on orders they place for other accounts ([Builder fee](https://docs.predictasiax.com/builders#builder-fee)). No monthly subscription. Attribution is written to `financial_event` on every fill (idempotent via unique key). The `mm_stipend_pool` bucket funds per-market daily payouts to MMs via the Liquidity Quality Framework (LQF) — a proximity² × balance × continuity score computed every 60 s. See [Fee Architecture](https://docs.predictasiax.com/fee-architecture) for the full model.

### When can I use sandbox?

**Right now, no waiting.** Sandbox is a per-key tier on the production API host. Mint a sandbox key at `POST /v1/sandbox-keys` — the response includes your key, tier caps, and expiry (30 days). Orders are validated against the same rules and tier caps as production, then filled in a simulation: the key starts with 1,000 virtual USDT and fills at the market's current price. Responses carry `is_simulated: true`. Real fills need a production key. See [Sandbox](https://docs.predictasiax.com/sandbox/) for the full flow.

### Geographic restrictions?

PAX API is available worldwide except in jurisdictions where prediction markets are restricted by local law. Partners are responsible for validating their end-users' compliance with local rules.

## Authentication

### Which auth scheme should I use?

- **Bearer `sk_live_*`** (`Authorization: Bearer sk_live_…`) — machine-to-machine, read-only aggregators, creator profiles, trading bots. This is the live path for standard integrations.
- **OAuth 2.1 + PKCE** — for apps acting on a PAX builder account. Get an access token via [connect.predictasiax.com](https://connect.predictasiax.com) (builder account sign-in) and send it as a Bearer. To trade for regular users on their own accounts, use [App connections](https://docs.predictasiax.com/builders#app-connections) (`on_behalf_of=pxu_...`).
- **HMAC (`PAX-ADDRESS` / `PAX-TIMESTAMP` / `PAX-NONCE` / `PAX-SIGNATURE`)** — live per-request signing for any active API key (`POLY-*` header aliases accepted). No ops provisioning. The signing secret is the key's own `sk_live_…` value; keys issued before launch rotate once to enable. See [Auth → HMAC](https://docs.predictasiax.com/auth#hmac).

### Why does my key start with `pax_` instead of `sk_live_`?

`pax_*` is the original prefix (still valid — grandfathered forever). New keys use `sk_live_*`. Sandbox and production keys share the same prefix and host — capability is differentiated by the `tier` flag on the key (`sandbox` for sandbox keys with $10/$100 caps, `read_live` / `trade_capped` / `trade_full` / `genesis` / `partner` for production). This lets you promote a sandbox integration to production by upgrading the key's tier — no code changes, no host switch.

### How do I rotate a leaked key?

Mint a new key, deploy it to your infra, then `DELETE /api/v1/keys/{key_id}` the old one. Revocation propagates cluster-wide within 5 seconds. See [Auth guide → Revoking](https://docs.predictasiax.com/auth#revoke).

### How much clock skew does HMAC tolerate?

±300 seconds (5 minutes) from server time, and the presented value is a UNIX **seconds** epoch — not milliseconds. Sync your machine's clock via NTP. Outside the window returns `401 TIMESTAMP_SKEW`. Nonces are cached 600s and bound into the signature to guard against replay (`401 NONCE_REUSED`). HMAC signing is live for any active API key — see [Auth → HMAC](https://docs.predictasiax.com/auth#hmac).

## Trading

### How do I safely retry a failed order?

Always send `client_order_id` (unique per intent, e.g., UUID). PAX guarantees idempotency for 24 hours — retrying with the same ID returns the original order rather than creating a duplicate.

### Can I guess a market ID?

No. IDs are `m_<sha256[0:16]>` where the sha256 input includes a server-side pepper. Even knowing (template, params, creator) you cannot pre-compute the ID. Use `GET /v1/markets` to enumerate.

### What's the min/max bet?

Per template. Fetch `GET /v1/markets/templates` and check each template's `min_bet` / `max_bet` fields. Typical: 1 USDT min, 10,000 USDT max.

## Rate limits & support

### I hit 429 — what do I do?

Wait the `Retry-After` header (seconds until the 60-second window resets; the body has the same wait in milliseconds as `error.details.retry_after_ms`). Pace on `X-RateLimit-Remaining` to avoid the 429 in the first place. Standard exponential backoff otherwise. See [Rate limits → Backoff code](https://docs.predictasiax.com/rate-limits#backoff-code). Rate limits are identical at every tier and do not rise as you graduate; for sustained high throughput, a dedicated load-test window can be arranged via [Request access](https://docs.predictasiax.com/request-access).

### Why 503 READ_ONLY_MODE?

Ops team has temporarily gated write endpoints for safety (e.g., during release / incident). Reads and WebSocket subscriptions remain available. If persistent (>30 minutes), email [Request access](https://docs.predictasiax.com/request-access).

### Where do I check for incidents?

Poll `GET /v1/status` (no auth). It returns `status` (`online` or `degraded`), the API `version`, a timestamp and the latest audit checkpoint (batch number, Merkle root, batch time, events sealed in the last 24h). For historical outages, follow the [Changelog](https://docs.predictasiax.com/changelog), or email [Request access](https://docs.predictasiax.com/request-access) with your request_id from `meta`.

### Is there an SLA?

The API is provided best-effort — there is no contractual uptime SLA on any tier, and access is not gated behind a signed agreement. Live availability is machine-readable at `GET /v1/status`; incident history is in the [Changelog](https://docs.predictasiax.com/changelog). If formal uptime terms are introduced later, this page will be updated.

## Data & retention

### How far back does trade / candle history go?

Trade tape: 30 days rolling. Candles (1m/5m/15m/30m/1h/4h/1d): 90 days rolling. Fast-round history: 30 days on-line + long-term cold storage on request. Older data via CSV export upon request.

### Do you return my counterparty's email / wallet?

No. External-facing responses strip PII (email, phone, IP) by default. Self-view paths (`/v1/account`, `/v1/account/*`) return only YOUR PII. The `X-PII-Redacted` response header always tells you whether redaction was applied.

## SDKs & languages

### When are Python / TypeScript SDKs coming?

when v1.1 ships (coming). Meanwhile codegen from the OpenAPI spec — see [Downloads](https://docs.predictasiax.com/downloads). openapi-generator supports 50+ target languages with production-quality clients out of the box.

### Can I reuse HMAC-based exchange API code?

Yes. A bot that speaks `Authorization: Bearer` ports over as-is — the `sk_live_*` key is a Bearer token. If you prefer per-request signing, PAX accepts `PAX-ADDRESS / PAX-TIMESTAMP / PAX-NONCE / PAX-SIGNATURE` (with `POLY-*` aliases): keep your existing headers and repoint the canonical string to PAX's five newline-joined fields. See [Auth → HMAC](https://docs.predictasiax.com/auth#hmac) for the exact signing string, headers, and a worked example.

## Contact

Partners team: [Request access](https://docs.predictasiax.com/request-access) · Twitter: the [Changelog](https://docs.predictasiax.com/changelog)

Source: https://docs.predictasiax.com/faq
