Environments
Sandbox is a property of the tenant, not of a request or a host name. Read simulated on every response rather than inferring the environment from the URL you happen to be pointed at.
What each layer does
| Layer | State | What that means for you |
|---|---|---|
| Market catalogue | Live | Real questions, real outcomes, normalised and de-duplicated across sources. |
| Prices | Live | Streamed or polled from upstream books. Age is published on every quote. |
| Quotes | Live pricing, real expiry | Priced from a real book where one exists. Expiry is enforced on the stored timestamp: 30 seconds by default (configurable between 5 and 300), 10 seconds on a contract trading live or near its close, and 5 seconds on a five-minute contract. Read expiresAt instead of assuming. |
| Orders | Live | A durable Parity order id, real idempotency, a real state machine and real collateral. The row is written before anything is sent, and the reserve handshake is what makes an order executable. |
| Fills and positions | Real rows | A fill opens or extends a position, with real weighted averages. A tenant whose execution ceiling is simulated (the usual sandbox set-up) gets a locally produced fill by default, written to the same tables in the same shape. Asking for `executionIntent: "simulate"` on a tenant whose ceiling is above simulated is refused with 422 simulation_not_permitted, and a tenant without a simulated ceiling records the order as an intent instead of filling it. A recorded intent on a sandbox tenant with a simulated ceiling fills when its reserve is confirmed, at the accepted price. A live order fills once it is transmitted: Parity enables live execution for your account at go-live, and from then on sends each confirmed order automatically, inside your live caps. Read `transmissionState`. |
| Settlement | Real | Positions settle against their contract’s resolution and the credit is computed once, on our side. |
| Money movement | Yours | Parity returns exact debit, release and credit instructions. Your ledger applies them. |
| Webhook delivery | Per endpoint | Events are durable rows, delivered signed and retried to every endpoint your account team registers for you. `/api/v1/reconciliation` is the authoritative record: poll it alongside. |
Swipe the table sideways for more columns.
Who holds the money
In sandbox and live alike, the operator owns its customers' cash ledger and Parity never holds player funds. Parity returns exact instructions for your ledger: authorizationAmount to reserve, actualDebit to take, releaseAmount to give back, sellProceeds to credit on an exit, settlementCredit or voidCredit when a position resolves.
Those amounts are exact decimal strings on the wire ("25.00"), never JSON numbers. The float fields beside them (stake, notional, platformFee, averagePrice) are for display.
Some endpoints are sandbox-only
The sandbox has simulated money so you can learn the flow. Test funds arrive as a SANDBOX_CREDIT movement from house equity, and the balance and movement reads show it. Parity tops up test players on request.
| Endpoint group | In live mode |
|---|---|
GET /api/v1/users/{id}/balance | 403 sandbox_only |
GET /api/v1/users/{id}/ledger | 403 sandbox_only |
/api/v1/funding/* | 403 sandbox_only |
/api/v1/sandbox/* | 403 sandbox_only. The scenario and resolution test controls |
Swipe the table sideways for more columns.
A Parity-held balance is not the production integration path
These endpoints model a per-user balance in Parity's own ledger. That is useful in the sandbox but wrong for a live operator, because Parity does not hold your players' funds. They refuse in live mode. Build against the instructions on quotes, orders and settlements, and your wallet decides what a player may stake.
The simulated flag
Every quote, order and settlement carries simulated, always present, so you can tell a simulated fill from a real one.
"simulated": true // this fill was produced locally; no order reached a venueRead this
simulated: true is the answer wherever a fill was produced locally: every sandbox response, and every response to a caller that asked for executionIntent: "simulate". It answers “was this fill real”; transmissionState answers “did this order reach a venue”.
A live order that has not been transmitted has no fill at all, so neither flag describes it. Before you confirm the reserve it reads status: reserve_pending; after confirm-reserve it reads status: pending_venue_execution, transmissionState: not_transmitted and settlementState: pending. Hold the authorization and do not treat the absence of simulated: true as evidence a venue took it.
It is a fact about that order, not about the platform
One platform serves sandbox and live accounts at once, so simulated is set per order from the venue that answered it. Two orders seconds apart can differ. Read it on each order; do not infer it from the host name, your key prefix or an earlier order.
Routing, stated precisely
Parity groups questions across sources by exact match. The grouping is for display: two listings ask the same question, but the contracts are not interchangeable. Cutoff times, resolution sources and edge cases differ.
- An order is bound to the contract that was quoted. The quote reports
routing.consideredVenues, how many sources could have competed, androuting.routable, whether any actually may. - The alternatives are never listed, and no partner-facing payload identifies a source.
routableisfalseuntil a human has verified a group as equivalent.- Parity does not claim best execution across sources.
Sandbox and production hosts
Sandbox and live accounts share one platform and one host, issued to you with your sandbox key. A key does not encode a host. Configure the host as a variable, not in code.
PARITY_BASE=https://<issued-to-you>
PARITY_KEY=pk_test_... # sandbox tenant. Live keys are sk_live_...Sandbox is a property of the tenant
The mode is stored on the operator record and every request inherits it. No header, URL or parameter can reach the other environment, so a test key cannot place a live order.
A key's prefix follows the tenant's mode when it is minted: pk_test_ on a sandbox tenant and sk_live_ on a live one. New tenants are created in sandbox mode. Parity moves your account to live as a managed step, once the checks on Going live pass and the commercial terms are agreed.
The sandbox runs the production pipeline
Live prices, real quote expiry, real idempotency, real settlement, the same tables and code. Only the fill is produced locally (at once for a simulated order, and when you confirm the reserve for a recorded intent), and the money endpoints above are open. What you prove there about idempotency, recovery and settlement holds in production.
Health and status
GET /api/health is unauthenticated and says whether the platform can serve. It is a liveness check, not a status page.
{
"status": "ok",
"timestamp": "2026-08-20T04:43:02.980Z"
}200with"ok"means the platform can serve, even if one upstream feed is degraded.503means it cannot serve, and the body'sstatussays why in one word (for exampleunhealthy).- The detailed report (feed freshness, queues, webhook sender) is internal and not part of the partner contract. Monitor your integration by the responses it receives, and ask Parity if you need a figure.