How Parity works
The two integration shapes in full, where the money sits, how an order becomes a fill, the API surface, and who owns what.
Two ways to integrate
| Parity Embed (recommended) | Parity Headless | |
|---|---|---|
| What you ship | An <iframe> and one server endpoint. | Your own UI over the API and the price stream. |
| Who draws it | Parity draws the market list, the ticket and the positions. | You do. |
| Server work | Mint a session; reserve, confirm and release against your ledger. | All of that, plus catalogue, pricing, quoting and position rendering. |
| Time to first order | Days. | Weeks. |
| Built for | Casinos, sportsbooks and wallets adding a Predictions tab. | Operators and fintechs that already have a trading UI. |
| Read | Embed integration | Quickstart |
Swipe the table sideways for more columns.
Most operators choose Embed. It is the fastest route to a working Predictions tab, and Parity builds and maintains the market list, ticket, price animations, positions view and cashout flow. Headless suits teams whose UI is the product. Everything below applies to both.
The money architecture
You keep the only cash ledger
Parity holds no player balance and has no deposit or withdrawal screens: players fund and cash out with you. Parity never holds a player's funds and has no route that pays one out.
Every money-moving response carries the exact amount to apply to your books: reserve authorizationAmount, debit actualDebit, release releaseAmount, credit sellProceeds on an exit and settlementCredit on a resolution. They are exact decimal strings, never floats. Apply them as given; if you recompute one, your books and ours can disagree.
An example used throughout these docs: a customer has $100 with you and stakes $25.
- Parity quotes it.
operatorMoney.authorizationAmountis"25.00". - You reserve $25 in your ledger. The customer sees
$75 availableand$25 reserved. The money stays with you. - You tell Parity whether the reserve succeeded. Parity handles the order from there: routing, fills, positions, cashout, settlement, fees and reconciliation.
- If you cannot reserve it, you decline. Parity shows an insufficient-funds state, invents no fill, and transmits nothing to a venue.
| Parity owns | Parity never owns |
|---|---|
| Catalogue, live pricing, quote, order, routing, fills, positions, cashout, settlement, fees, reconciliation, and the exact money instructions. | Player deposits, withdrawals, the general cash balance, the casino wallet, the customer account, KYC, support. |
Swipe the table sideways for more columns.
Partial fills, exits and the two exact identities are on The money contract.
The execution path
An order is recorded before it can execute, and becomes executable when you confirm the customer's funds are held. Parity writes the row first because an execution that succeeds upstream but is never recorded cannot be recovered. The reserve handshake expresses that order, which is why reserve_pending and pending_venue_execution are states you can read.
An order is not a fill
executionIntent: "simulate" produces an immediate simulated fill and position. It is sandbox behaviour, the default only for a declared simulation tenant, and is not the production order path. Read simulated on the response instead of assuming. See Sandbox and Going live.
Both paths use the same normalised catalogue, live pricing from real upstream books, real quote expiry, the durable order record, idempotency, the reserve handshake, cancellation and release, collateral, settlement records and reconciliation. State names are the same in the sandbox and live, so your integration does not change when the key does.
Parity does not hold event risk. A position rests against the connected liquidity pool's order book, and Parity earns an explicit fee instead of taking the other side.
The API surface
/api/v1/* is the partner API and requires an operator key. /api/* serves the public catalogue and demo and takes no credentials. Do not integrate against /api/*.
These figures come from the OpenAPI document at build time, and CI checks that document against the app router.
clientOrderId.The full list, with parameters and response fields, is in the API reference, which CI checks against the route handlers. The machine-readable spec is at /openapi.json, and a typed client is at TypeScript SDK.
Who owns what
| You | Parity | Liquidity pool |
|---|---|---|
| The customer relationship and the brand | Catalogue normalisation across sources | Order matching |
| The wallet, the balance and the cash ledger | Reference and execution pricing | Contract terms |
| KYC, AML and support | Quote, order and position records | Resolution of the contract |
| Deciding who may see the vertical | Fee calculation and settlement instructions | Venue-side settlement |
Swipe the table sideways for more columns.
Note
Custody and regulatory responsibility depend on the commercial agreement for your account and on your jurisdiction. Going live lists what that covers.