Glossary
The words the integration uses, in one place, each linked to the page that defines it in full.
Quote
A quote binds contract, side, size, price, fee and quantity together and tells your ledger what to reserve. It is the record an order is checked against. A buy is sized by its stake, a sell in contracts. Read expiresAt rather than starting your own timer. See Quotes.
Reserve
Holding the customer's funds in your own ledger: you reserve authorizationAmount from the quote, then say so. An order recorded and waiting for it is reserve_pending: nothing is debited, and it cannot execute until you confirm. See Orders and reserves.
Confirm
POST /api/v1/orders/{id}/confirm-reserve tells Parity the customer's funds are held. The order moves from reserve_pending to pending_venue_execution, cleared to execute. It is idempotent: the same confirmation twice returns the same order with idempotentReplay: true. On a live account, confirming clears an order to execute but does not send it; in the sandbox it fills the order at the accepted price. See Orders and reserves.
Release
The part of an authorization you hand back to the customer: releaseAmount. Both identities hold exactly: authorizationAmount = actualDebit + releaseAmount and actualDebit = tradeAmount + platformFee + operatorFee + venueFee. Cancelling an order that has not reached a venue returns the exact release instruction. Never release while the outcome of an order is unknown. See The money contract.
Fill
An execution of an order. A fill opens or extends a position, with real weighted averages, and carries actualDebit to take and releaseAmount to hand back. Book money from the order, not per fill. See Orders and reserves.
Partial fill
A fill for less than the authorization covered. On a partial fill the release is non-zero: a venue that took $12.30 of a $25.00 authorization leaves $12.70 to hand back, and an operator that debits the full stake instead is keeping money that is not theirs. In the sandbox, arm one with the sandbox-only control POST /api/v1/sandbox/scenarios. See Sandbox.
Position
What a customer holds. A fill folds into a position. Positions are held per player, per contract, per side, and are readable and exitable over the API. quantity is the contracts held; each settles at $1.00 or $0.00. See Positions and exits.
Exit
Selling a position before it resolves. An exit is an ordinary quote then order, with action: "sell", sized in contracts. Entries and exits share one execution path, which means one set of safety rules, one idempotency index and one money contract. See Positions and exits.
Void
A resolution that neither wins nor loses. It is credited from voidCredit: an annulled market's refund, fee included, or a split result's payout. See Settlement.
Split
A void the source settled by dividing the payout between both sides. It pays each contract its side's share of a dollar, carried in voidCredit with the platform fee kept. See Settlement.
Settlement
How a resolved event becomes a settlement record, and how that record reaches your ledger exactly once. Each record carries the exact amount to credit. Apply it once, keyed on the settlement id, and page until there is no more. See Settlement.
Settlement credit
settlementCredit: a winning position's payout, as an exact decimal string. Exactly one of settlementCredit and voidCredit is non-zero on a settlement. Credit it as given rather than recomputing it from a price and a quantity. See Settlement.
Combo
One trade of 2 to 50 legs, each one side of one contract, that pays only if every leg wins. Optional, and off for every operator until Parity enables combos for yours. See Combos (optional).
Reconciliation
Checking your ledger against Parity's. Two endpoints: a point-in-time statement (GET /api/v1/reconciliation) and an append-only feed of every money fact recorded for you (GET /api/v1/reconciliation/feed), which is totally ordered and resumable. See Reconciliation.
dedupeKey
The natural key of a webhook's fact, not of the attempt to report it, for example position.settled:<positionId>. Delivery is at least once and unordered, so key your own processing on it. See Webhooks.
Idempotency key
Idempotency is keyed on clientOrderId rather than on a header. It is your id for the order: derive it from the reservation in your ledger, not from a clock or a random value. Re-posting the same id returns the same order with idempotentReplay: true; the same id for a different order is 409 idempotency_conflict. For a settlement credit, the settlement id is the key. See Orders and reserves.
Sandbox
The production pipeline with the execution layer simulated: live prices, simulated fills and simulated money. Sandbox is a property of the tenant, not of a request or a host name. Sandbox keys are minted pk_test_. Read simulated on every response. See Sandbox.
Live
A tenant that trades for real: a live order fills once it is transmitted. Live keys are minted sk_live_; the key spaces do not overlap. Parity enables live execution for your account at go-live, and from then on sends each confirmed order automatically, inside your live caps. See Going live.
Operator
You: the business integrating Parity. The API key identifies the operator, and X-Parity-User identifies the end user. The operator owns its customers' cash ledger; Parity holds no player funds. See Authentication.
Embed session
A short-lived token a browser may hold, minted from your API key with POST /api/v1/embed-sessions. It authorises the embedded customer experience for one operator and one customer and nothing else. Minting requires markets:read, quotes:write and orders:write together. See Embed integration.