Direct Link: Reconciliation, Settlement, and Edge Cases

This page is for the part of a Direct Link integration that keeps a user's books straight after the order is placed: what a fill record looks like, how fees land, how settlements and corrections show up, and how to catch up after a disconnect. Everything here was verified against the matching engine; where behavior is per-account it says so.


1. Sizing rules

RuleValue
quantity unitUS dollars risked. Rounded to 2 decimals (cents) on submission — no finer increment.
Minimum per order$1
Maximum per orderNo meaningful single-order ceiling
What actually constrains sizeAggregate open exposure: a user's total unmatched (resting) quantity can't exceed a multiple of their cash balance (50× at the default tier). Build sizing logic around that cap, not a per-order max.
priceInteger American price on the ladder from get_price_ladder. Values in (−100, +100) don't exist.

Rounding, wherever it happens (quantity, fee, profit), is round-half-up: $0.005 → $0.01.


2. Fill records (get_order_matched_detail, get_trades)

One row per execution — one match event — never an aggregate.

FieldSemantics
idStable and globally unique (not scoped to the order or account); never reused. Use it as your execution key.
order_idThe parent order (partner_…).
quantityDollars risked on this execution only. Rows for an order sum to the order's filled_quantity.
priceAmerican price this execution matched at.
matched_atISO 8601, UTC. Up to microsecond precision, but trailing zeros are trimmed, so the string width varies (.123456Z, .12Z, or no fraction). Compare as a parsed timestamp, never as a string.
status, winning_statusThe execution's own state. Can change later (void, correction, settlement).

Worked example — a fillOrKill order for quantity: 100 gets two executions (32.50 and 18.00) before the remainder is killed:

  • get_order / get_order_history: quantity: 50.50, original_quantity: 100, open_quantity: 0, status: "open", matching_status: "fully_matched"
  • get_order_matched_detail?order_id=…: two rows, quantity: 32.50 and quantity: 18.00

Reconciling executions against the order

Summing execution quantity to the order's filled_quantity is necessary but not sufficient, because fill rows are rewritten in place, not appended, when something changes later: a void or a settlement correction updates the existing row's status/profit while id and matched_at stay the same. So:

  • Re-poll by order_id periodically and diff against what you stored; a changed status/profit on a known id is a correction.
  • Rows are never removed within any realistic window. (A retention job archives wagers roughly a year after they leave the open state.) If a re-fetch for the same order_id returns fewer rows than before, treat it as a real signal to investigate, not pagination noise.
  • Page by order_id, not by date range, for exact reconciliation — date-range paging can have small boundary effects at the edges of the range.
  • get_order_matched_detail returns a top-level last_synced_at: the reporting store's freshness watermark. Don't call an order's reconciliation final until last_synced_at is past that order's completion time.

3. Fees

Fees are configured per account; the figures below are the platform defaults, and a specific account can differ. Confirm the rate for an account with your integration contact before hard-coding it.

Settlement commission (default model): charged at settlement as a percentage (default 2%) of net proceeds per market — profit and loss across both outcomes and all fills in that market are netted first, then the rate is applied once. Rounded to the nearest cent, no minimum charge, and no fee at all if the market nets to zero or a loss.

Worked example: in one market a resting order on one outcome wins +$120 and a resting order on the other outcome loses −$45. Net market profit is $75; fee = 2% × $75 = $1.50.

Two rounding steps happen in sequence: profit is rounded to the cent first, then the fee is computed on that rounded figure and rounded again.

Where it shows: as a fee-type row in get_transactions, and summarized on the order as fee in get_order_history. Accounts on the per-fill maker/taker model instead see the fee accrue per execution on the order's fee field; the mechanics above (netting) don't apply to that model.


4. Settlement, corrections, and catching up

  • Settlement posts a settlement-type transaction against the order and flips winning_status (profit, loss, push, …). status moves to settled → closed (or manually_settled).
  • Corrections / resettlement: there is no distinct "correction" transaction type. A corrected position is resettled through the same pipeline, so the signal is a second settlement (or void) transaction appearing against an order you'd already seen settle. The fill row's status/profit is rewritten in place at the same time (see §2).
  • After a disconnect: the WebSocket does not replay missed events on reconnect — there's no sequence-numbered backfill, only the heartbeat. The reliable catch-up path is GET /v4/mm/get_transactions with its next_cursor from your last-seen point; it surfaces every settlement, fee, void, and adjustment you missed. Pair it with a get_order_history sweep on updated_at for order-state changes.

5. Order states you'll see that aren't fills

The full enum is on Meaning of Enums; the ones that trip up integrators:

  • invalid — failed validation at activation and never reached the book. Overwhelmingly: insufficient cash at the moment of activation (balance is checked at activation, not at submission).
  • wiped — removed by the engine, not by you. Common causes: an event moving from pre-match to live (all pre-match resting orders are wiped), a cross against your own resting order on the same account (self-matching prevention), or an ALO order that would have taken liquidity.
  • void — removed by ProphetX operations (regulatory or data reasons); any filled portion is refunded via a void transaction.

There is no reason field on invalid/wiped orders today — the API doesn't say why. If you see a burst of wiped/invalid orders, check the account's cash balance and whether the event just went live before anything else, and contact your integration contact with order ids if it's neither.


6. Event identity edge cases

  • Doubleheaders (MLB): each game has its own sport_event_id, but identical team names and tournament. There is no game-number field today; distinguish them by scheduled start time.
  • Postponed / suspended / interrupted / resumed games: sport_event_id, market_id, and strike_id are all preserved across the status change — you'll see the event's status flip (live, suspended, postponed, interrupted, and back) on the same ids. But a postponement or interruption can trigger automatic voiding of open, unmatched orders on that event, so don't assume resting orders survive just because the identifiers do.
  • The fillOrKill timer is independent of in-play delay. It's a fixed ~2 seconds measured from when the order becomes eligible to match (not from the HTTP request), and it isn't read from any in-play setting. As of October 2026 the in-play delay is 0s everywhere, so the two coincide in practice.

Did this page help you?