Orders
An order spends a quote and returns an exact instruction for your ledger: what to debit, and what to give back. Every surface (a mobile sheet, a desktop panel, your API client) enters the same pipeline at the same point.
The pipeline
- 1Quote
- 2Confirm
- 3Order
- 4Route
- 5Fill
- 6Position
Confirmation is a step in this pipeline, not a way around it. The order row is written before anything is sent, because an execution that succeeds upstream but is never recorded cannot be recovered.
The lifecycle
POST /quotes
│
▼ POST /orders { executionIntent: "record_intent" }
reserve_pending recorded, awaiting your reserve
│
│ you reserve authorizationAmount in YOUR ledger
▼ POST /orders/{id}/confirm-reserve
pending_venue_execution reserve confirmed, cleared to execute
│
▼
submitted ─▶ filled | partially_filled | rejected
│
└─▶ unknown after timeout ─▶ 409 reconciliation_requiredThe diagram starts before submitted because an order is recorded and funded before it can execute. A caller sending executionIntent: "simulate", the default for a sandbox tenant, skips the reserve states and goes straight to a simulated fill. A sandbox tenant sending executionIntent: "record_intent" walks the reserve states as live does, and its order fills in the confirm-reserve call instead of resting at pending_venue_execution.
| status | settlementState | What your ledger does |
|---|---|---|
filled | settled | Debit actualDebit, release releaseAmount (zero on a full fill, except the unused part of a live buy’s venue fee reservation). Done. |
partially_filled | pending | While the venue is still working the order (transmissionState unknown): debit nothing beyond actualDebit and hold the rest. More can still fill. |
partially_filled | settled | Once the venue has closed the order (transmissionState resolved): debit actualDebit and release the non-zero releaseAmount. Debiting the full stake would keep the customer’s money. |
rejected | settled | Closed in full, in one step: actualDebit is 0.00 and the whole authorization comes back. rejectReason says why. |
reserve_pending | pending | You have not confirmed the reserve. Nothing is debited, and the order cannot execute until you do. Confirm, or cancel and release. |
pending_venue_execution | pending | Your hold is confirmed and the order is cleared to execute. Keep holding: an order is not a fill. |
pending | pending | Not resolved. Hold the authorization and poll. |
submitted | pending | Not resolved. Hold the authorization and poll. This is the reconciliation case. |
cancelled | settled | Terminal, nothing debited. |
Swipe the table sideways for more columns.
settlementState answers the one question a wallet has: is the money final, or must I hold and check again? Switch on it and submitted is never mistaken for terminal. An order awaiting execution is pending because it may still execute, like an unresolved one; transmissionState tells the two apart.
A live fill
An order filled at a venue reports partially_filled as fills arrive, however complete they look, because only the venue can say it is finished. It is final when transmissionState is resolved and settlementState is settled; apply actualDebit and releaseAmount then. While a fill's venue fee is being read, the order stays open and the remainder stays held, so the release never contains money the venue kept.
Parity asks the venue for a live order's result within seconds of sending it. A fill is booked, and order.filled sent, only once its trade is confirmed. Until then the order reads submitted (or partially_filled once a first fill is booked) with transmissionState: unknown and settlementState: pending. Keep holding.
A rejection closes the order in full
A rejection closes the order in one step: status rejected, transmissionState: resolved, settlementState: settled, and on a buy an actualDebit of 0.00 with the whole authorization as releaseAmount. This includes orders Parity staff reconcile by hand. One closed by hand because the venue shows no fill carries the fixed rejectReason “Closed unfilled: the venue shows no fill for this order.”, never a staff note.
Submit an order
orders:write, plus X-Parity-User.{
"quoteId": "fc3be731-98dc-4c03-80ac-23576a708d9c",
"clientOrderId": "ticket-9031", // YOUR id. The idempotency key.
"executionIntent": "simulate", // optional: record_intent | simulate
"reserveReference": "hold-77120", // optional: your id for a hold already placed
"maxSlippage": 0 // optional: adverse price allowance, 0 to 0.05
}| Field | Type | Meaning |
|---|---|---|
quoteId | string, 1 to 100 | The quote to spend. Spendable once. |
clientOrderId | string, 1 to 200 | Your id for the order, and the idempotency key. Reuse it on every retry of the same intent. |
executionIntent | record_intent | simulate | Optional. The default follows your tenant: record_intent for a live tenant (the order is recorded and waits for your reserve), simulate for a sandbox tenant (a simulated fill). simulate on a tenant above the simulated ceiling is 422 simulation_not_permitted. |
reserveReference | string, up to 200 | Optional. Your id for a hold you have already placed on the customer’s funds. Present, the reserve is confirmed in this call and the order comes back pending_venue_execution (filled, in the sandbox); absent, it comes back reserve_pending and waits for confirm-reserve. |
maxSlippage | number, 0 to under 1 | Optional, default 0. How much worse than the quoted price you will accept, in price units, in the adverse direction only. Clamped to the platform maximum (0.05) rather than refused. |
Swipe the table sideways for more columns.
{
"orderId": "3dd27f36-7780-4aa7-8af2-1a6854fbf8cb",
"clientOrderId": "ticket-9031",
"executionRef": "Parity_Best_7K2M9QH4TR8DXZ", // quote this to Parity support
"status": "filled",
"contractId": "ctr_9f31c2…",
"side": "YES",
"action": "buy",
"filledQuantity": 68.6111,
"averagePrice": 0.72,
"platformFee": 0.6,
"platformFeeBps": 120,
"notional": 49.4,
"stake": 50,
"rejectReason": null,
"simulated": true,
"createdAt": "2026-08-20T04:43:40.282Z",
"idempotentReplay": false,
"routing": { "reason": "only_venue", "consideredVenues": 1 },
"settlementState": "settled", // settled | pending. Read this first
"transmissionState": "resolved", // not_transmitted | unknown | resolved
"operatorMoney": {
"currency": "USD",
"authorizationAmount": "50.00", // what you reserved
"actualDebit": "50.00", // TAKE THIS
"releaseAmount": "0.00", // GIVE THIS BACK
"tradeAmount": "49.40",
"platformFee": "0.60",
"operatorFee": "0.00",
"venueFee": "0.00",
"venueFeeKnown": false
},
"operatorExitMoney": null
}operatorMoney is what your ledger acts on
The float fields above (stake, notional, platformFee, averagePrice) are for display. The money object carries exact decimal strings and two identities that hold on every buy:
authorizationAmount = actualDebit + releaseAmountactualDebit = tradeAmount + platformFee + operatorFee + venueFee
Check both before you post, and do not parse "12.30" as a float.
On a live buy the venue's taker fee is inside the stake: the quote reserved room for it and only the tradeAmount is sent, so actualDebit never exceeds authorizationAmount. On the order, venueFee is the venue fee charged to the customer (with venueFeeKnown: true), capped at the room the authorization has left after the trade; Parity absorbs anything above it, from its own platformFee first. Whatever the venue did not charge or use comes back as releaseAmount, even on a full fill.
The order POST also carries its receipt figures
The response to POST /api/v1/orders (a 201, or a 200 replay) carries five more fields beside the order, from the same money block, in dollars: spent (actualDebit), fees (platformFee plus venueFee, summed in cents by Parity), venueFee with venueFeeKnown, and released (releaseAmount once the order is filled, rejected or cancelled, or a part fill the venue has closed, and 0 before that, because what has not been spent is still held). On a cancelled or rejected order platformFee is the fee charged, which is 0, never the quoted fee. For a customer's confirmation of a trade, read GET /api/v1/orders/{id}/confirmation. They are for display, so a receipt can be drawn from the POST alone; your ledger still acts on operatorMoney. A sell carries none of them, and reading an order back by id omits them.
A sell is a credit, and carries a different object
On an exit operatorMoney is null and operatorExitMoney.sellProceeds is what to credit, already net of the platformFee and venueFee beside it. With one object for both directions, a wallet would see an authorizationAmount on a sale and debit the player for selling their own position.
On a live cash out, sellProceeds is what the sale actually returned after the venue's fee and the platform fee, rounded down to the cent. It can differ from the estimate on the quote, and the order's figure is the one to credit.
A sell is routed on the side of the book it trades against: a cash out fills against the bids, so a market with bids and no offers can still be exited.
| Field | Meaning |
|---|---|
status | The state machine above. A partial fill is a real state, not an error. |
filledQuantity | Contracts held. This, not the quote’s contracts, is what the player owns. |
averagePrice | Volume-weighted fill price, 0-1. Display only. |
platformFeeBps | The rate this order was struck at, copied from its quote, so you can reconcile the charge against your agreed terms. |
routing | reason and consideredVenues: why an order was routed as it was, and how many venues were considered. The venue is never named. |
idempotentReplay | true when this response replayed an order that already existed. |
rejectReason | Populated when status is rejected. Null otherwise. Where the refusal text would quote an order id from the market Parity routed to, it quotes executionRef instead. An order Parity staff close by hand because the venue shows no fill for it reads exactly “Closed unfilled: the venue shows no fill for this order.”, never the staff member’s own note. |
executionRef | The Parity execution reference: Parity_Best_ followed by 14 characters, stable for the life of the order. Quote it to Parity support when you report a problem. Support accepts it in any letter case, with or without the prefix. It is also on every order webhook, on reconciliation feed items, and on an order refusal that closed a recorded order. |
Swipe the table sideways for more columns.
201, or a 200 replay
| Status code | When |
|---|---|
201 | The order was created by this call. |
200 | This call replayed an existing order: idempotentReplay: true, and the body is the original order verbatim, including its original averagePrice and its original money. Never a re-quote. |
Swipe the table sideways for more columns.
clientOrderId is unique per operator and player, enforced by a database index. Two requests arriving together produce one order; the second reads back the first.
- Derive the key from the reservation in your ledger. A random value per attempt gives no protection, because a retry must send the same string, and a clock gives a key you cannot reproduce after a crash.
- A rejected order still consumes its key. Retrying a spent key after a rejection must not open a second live order, so the rejected record stays.
When the venue does not answer
409 reconciliation_required is not a rejection
Parity is still confirming whether the venue took the order. Collateral stays committed: hold the authorization and do not release it.
Releasing an order that did execute leaves a real position with no cash behind it, and nothing would flag the mistake later. So the API answers “unknown” until reconciliation resolves it.
# 1. You have an orderId. Poll it.
GET /api/v1/orders/{orderId}
→ { "status": "submitted", "settlementState": "pending", "transmissionState": "unknown",
"operatorMoney": { "actualDebit": "0.00", "releaseAmount": "50.00", … } }
# 2. You never received a response at all. Look the order up by YOUR id.
GET /api/v1/orders?externalUserId=user-4471&clientOrderId=ticket-9031
→ { "orders": [ { "orderId": "3dd27f36-…", "status": "submitted",
"settlementState": "pending", "transmissionState": "unknown", … } ],
"count": 1, "nextCursor": null, "hasMore": false }
# 3. That row is the same read as step 1: settlementState, transmissionState
# and the order's intent all arrive on it, so act on it directly.clientOrderIdsurvives a crash mid-request because you chose it before sending. Parity'sorderIdexists only in a response you may not have received.- It is unique within a user, so send it with
externalUserId. On its own it is400 invalid_request, because it could match more than one order. - The lookup is a filter on the list route, so one call serves both “this order” and “everything since 09:00”.
- The list route returns
settlementStateandtransmissionStateon every order, computed by the same serializer asGET /api/v1/orders/{id}. The lookup byclientOrderIdalso carries the order'sintent(the reserve confirmation and, once withdrawn, the release instruction), so it is a complete recovery read on its own. Only paged results, withoutclientOrderId, omitintent. - While unresolved, the read reports
actualDebitof"0.00"with the whole authorization asreleaseAmount. That describes an unfinished order and is not an instruction to release;settlementStatetells you whether to act.
import { ReconciliationRequiredError } from './parity-sdk'; // the client Parity provides
try {
const order = await player.submitOrder({ quoteId, clientOrderId: 'ticket-9031' });
ledger.settle(order.operatorMoney);
} catch (err) {
if (err instanceof ReconciliationRequiredError) {
// err.holdAuthorization === true. Keep the hold.
const found = await player.findOrderByClientOrderId('ticket-9031');
if (!found) return schedulePoll(); // not visible yet: hold and retry
// The list row carries settlementState too; reading the order itself
// is equivalent and also returns the fills when asked for.
const order = await player.getOrder(found.orderId);
if (order.settlementState === 'pending') return schedulePoll();
return apply(order.operatorMoney);
}
throw err;
}Reading orders back
orders:read.| Parameter | Notes |
|---|---|
externalUserId | Your own id for a player. |
clientOrderId | Your own id for one order. Requires externalUserId; resolves to that single order. |
status | pending | reserve_pending | pending_venue_execution | submitted | partially_filled | filled | cancelled | rejected. Not validated: an unknown value returns an empty page. |
since / until | Inclusive ISO-8601 bounds on createdAt. A value that does not parse is ignored rather than refused. |
limit | 1 to 200, default 50. Clamped, never refused: above 200 reads as 200. |
cursor | Opaque. Echo nextCursor from the previous page. |
Swipe the table sideways for more columns.
Paging is keyset because orders arrive while you page. With an offset, an order placed between two requests could push an older one past the page boundary, and you would never see it.
orderId, with settlementState. orders:read. Add ?fills=true for the individual executions.- Every order uses the same serialiser as the POST response, so a stored POST response and a later GET describe the order identically.
- An order belonging to another partner returns the same
404 unknown_orderas one that does not exist, so the route cannot confirm a guessed id.
Why fills are nested under an order
There is no top-level fills feed. A fill has no money contract of its own: operatorMoney belongs to the order and covers the whole execution, so booking per fill double-counts when a venue fills an order in two pieces. Fills are reconciliation detail (fillId, quantity, price, filledAt), off by default because the order already carries the average price, filled quantity and money.
The reserve handshake
An order is recorded before it is executable, and becomes executable when you confirm the customer's funds are held. executionIntent: "record_intent" on POST /api/v1/orders asks for this handshake and is the default for a live tenant. A sandbox tenant defaults to a simulated fill.
The order comes back with a Parity orderId and an actualDebit of 0.00, with the whole authorization as releaseAmount: nothing has been spent yet.
The sequence
POST /api/v1/ordersrecords the order and reserves against it. Statusreserve_pending. It cannot execute: Parity never sends an order whose reserve you have not confirmed.- You place the hold on your customer's funds, for the exact
authorizationAmountwe returned. POST /api/v1/orders/{id}/confirm-reserve, optionally with your ownreserveReference. Statuspending_venue_execution: the order is now cleared to execute. If you reserve before calling Parity, sendreserveReferenceon the order itself and skip a round trip.- A live order whose reserve you do not confirm within an hour is withdrawn: it ends
cancelledand you receiveorder.cancelledwith thereleaseAmountto hand back.
When confirm-reserve refuses
| Status | error | What happened | What to do |
|---|---|---|---|
409 | order_cancelled | The order was cancelled before you confirmed. | Release the authorization. Nothing stands behind it. |
409 | not_an_intent | The order is not awaiting a reserve. It is already at a venue, filled or rejected. | Do not absorb it. Read the order back with GET /api/v1/orders/{id} and act on its own settlementState and operatorMoney. |
Swipe the table sideways for more columns.
Release only on order_cancelled
A cancellation has already issued its exact releaseAmount, so releasing is right. After not_an_intent the order has moved on, so read it back before you touch the hold.
Every step recovers from your own id
If the order POST times out, resend it: the same clientOrderId replays the original instead of opening a second. If the confirmation times out, resend it, or read the order back with GET /api/v1/orders?externalUserId=&clientOrderId=, which reports reserve_pending or pending_venue_execution.
How long an order sits in pending_venue_execution
Confirming the reserve clears an order to execute. On a live account Parity's order lane then sends it to the market on its next pass, normally within a few seconds, while the order stays pending_venue_execution with transmissionState: not_transmitted. Parity enables live execution for your account as part of going live; after that there is no step per order, for you or for Parity.
An order the lane may not send is withdrawn rather than left waiting: for example, it would exceed one of the caps below, trading is paused, or it has waited longer than the lane allows (five minutes by default). It ends cancelled, the collateral and your customer's hold are released together, and you receive order.cancelled with the releaseAmount to hand back. Nothing reached the market. Until the order is sent or withdrawn it can also be cancelled by you, with an exact release.
Live caps: per order, per player and overall
Under your live operator policy, every buy is checked against your agreed caps before it is sent: a maximum stake per order; per player, a maximum open exposure and a maximum number of live orders in the trailing 24 hours; and the same two figures across all players, where an overall cap is set. A player cap refuses only that player; an overall cap refuses everyone. A sell (cash out) is never checked against these caps and does not count towards a player's orders.
An order that breaks a cap is withdrawn before it reaches a venue: status cancelled, transmissionState: not_transmitted, and its hold released, which your ledger applies like any other cancellation. The same happens to an order waiting to be sent while your trading pause is on. Your account team can tell you the caps in force.
transmissionState, and the question it answers
settlementState answers “may I apply the money yet?”. transmissionState answers whether the order reached a venue:
| transmissionState | What it means | What to do |
|---|---|---|
not_transmitted | Provably nothing was sent to a venue. | You may cancel and receive a release instruction. |
unknown | It may or may not be at a venue. We asked and have no answer. | Hold the authorization. Do not release or cancel. Poll. |
resolved | The venue answered or refused. | Apply operatorMoney and move on. |
Swipe the table sideways for more columns.
Cancelling, exactly once
orders:write. Returns a cancellation object: a cancellationId, a currency and an exact releaseAmount, with actualDebit of 0.00 so authorizationAmount = actualDebit + releaseAmount closes here exactly as it does on a fill.- A second call returns
200with the samecancellationId, the samereleaseAmountandidempotentReplay: true, so a resend cannot credit a customer twice. - It refuses any order whose
transmissionStateis notnot_transmitted, and in particularreconciliation_required, where a venue has not answered and a release could return money backing a real position. The409carriestransmissionState: "unknown": keep holding and wait for reconciliation.
When an order is refused
| Status | error | What happened | What to do |
|---|---|---|---|
404 | quote_not_found | No such quote. | Quote again. |
409 | quote_expired | The quote passed expiresAt before this call landed. | Re-quote and re-confirm the new price with the player. |
409 | quote_already_used | That quote was spent by a different order. A resend of your own clientOrderId would replay as a 200 instead. | Read orderId on the body, the order that spent the quote, with GET /api/v1/orders/{id}. Then quote afresh for whatever is still unfilled. Your own clientOrderId finds nothing here. |
409 | price_stale | On a live account: Parity's own read of the venue's book, taken in this request, is older than the router will trade on. A book resting unchanged is not stale; only the age of our read counts. The price you were quoted is still the limit sent to the venue. | Re-quote and send again. |
409 | reconciliation_required | The venue did not answer in time. | Hold the authorization and poll. Never release, never re-quote. |
409 | price_moved | The venue's live book has moved off the quoted price, read at the moment of confirm. Adverse moves, and for a buy on a fast up-or-down window a move either way past the larger of 5 cents and 10% of the quoted price, where adverseCents is negative for a move in the player's favour. priceMove carries fromCents, toCents and adverseCents, the live price exactly as toPrice, and the live book that read saw as liveBook. | Show the new number and let the player decide. You do not have to re-quote blind. |
409 | price_unverified | Parity could not reach the venue to confirm the price, so the order was not accepted. Unlike price_stale, this is not about the age of a price Parity holds. | Retry in a moment. Nothing was accepted, so it is safe. |
409 | line_not_available | The outcome being bought is executable above the wagerable ceiling; the other outcome is judged on its own price. Buys only, so a holder of the near-certain side can still exit. detail names the offending price. | Re-quote. It clears when the book moves back inside the band. |
409 | idempotency_conflict | This clientOrderId already belongs to a different order. | Do not retry. Reconcile your own reservation against the order that holds the key. |
403 | quote_not_yours | The quote belongs to another operator. | A quote is an offer to one party. Quote it yourself. |
403 | market_not_offered | The contract exists; your operator is not offered it. | This is commercial, not technical. Escalate. |
422 | market_unavailable | The contract closed or resolved between quote and submit, or it settles on a protocol Parity does not trade (detail: “This market is not available to trade yet.”). | Stop offering it. |
422 | no_eligible_venue | No source is configured to execute this contract. A configuration problem. | Escalate: it will not resolve on its own. |
422 | insufficient_position | The sell is larger than the position held free to sell, checked again here under the position lock. | Re-read the position and size the exit in contracts. |
403 | sell_not_available | A sell on a live account while cashing out before settlement is turned off. Checked again here, because a quote stands for up to thirty seconds. | Release nothing (a sell holds no authorization). The position stays open and settles normally. |
403 | cash_out_paused | A sell while cash outs are paused. Checked again here, and a sell accepted before the pause and still waiting to be sent is withdrawn. | Release nothing. The position stays open until the market settles. |
503 | trading_paused | The trading pause on your account is on. Checked again here, before anything is reserved or written. | Release your hold. Re-quote once the pause is lifted. |
503 | live_execution_unavailable | Live execution is unavailable for this account right now. Nothing was placed. | Release your hold and retry later. |
503 | order_in_progress | Another request with this clientOrderId is still being placed, or (with queued: true) Parity was too busy to start this one. Retry-After is set. | Keep your hold. Resend the identical request, same quoteId and clientOrderId. Do not re-quote or change the key. |
422 | insufficient_collateral | The execution layer has no collateral for this order. | Release the authorization and escalate. |
422 | simulation_not_permitted | You sent executionIntent: "simulate" and your tenant's execution mode does not allow it. | Send executionIntent: "record_intent", or have the ceiling raised. |
403 | user_suspended | You suspended this player. This comes from your configuration, not your credentials. | Not retryable. Lift the suspension on your side. |
403 | over_order_limit | Above the maximum order size configured for your operator. detail names the ceiling and the figure. | Your own configuration refused it. Send a smaller order, or have the ceiling changed. |
403 | over_wager_limit | Above a maximum wager in force for this account (checked again at order time). | Re-quote at a smaller stake. |
403 | over_period_limit | This account has staked its allowance for a rolling window. | Wait: the allowance refills with time. |
409 | over_tenant_exposure | Your operator has committed its aggregate stake for the current window. | Wait for the window to roll over, then re-quote. |
422 | insufficient_funds | The player’s own balance cannot back the order. Only raised where Parity holds the wallet (the sandbox included); where you hold it, the funds check is yours. | Tell the customer. Not the same as insufficient_collateral, which is the operator’s float. |
422 | rejected | The execution layer refused. detail carries the reason: price_moved when the book passed the accepted price. | Release the authorization and re-quote. |
Swipe the table sideways for more columns.
price_stale and no_eligible_venue differ
price_stale resolves on the next tick; no_eligible_venue needs a person.
Price protection
The quoted price is a ceiling. If the book has moved past it when the order is submitted, the order is rejected, because a worse fill is not the trade the player confirmed.
After the order
A filled order opens or extends a position, readable at GET /api/v1/positions and GET /api/v1/positions/{id}. A position carries operatorMoney.costBasis and operatorMoney.realisedPnl, which are facts, not instructions: cash already debited and P&L already booked. There is no mark-to-market, because a ledger cannot reconcile against a moving number; quote a sell to get the exit value.
Every money fact an order produces also lands on the reconciliation feed (order.state_changed, order.filled, fee.assessed, collateral.moved), totally ordered and resumable. See Reconciliation.
Combos are optional. A combo is placed on its own endpoints and reported on its own webhooks, so an integration that does not use them sees no change on this page. See Combos (optional).