Skip to main content
PredictStreet separates trade settlement (the execution of matched orders on-chain) from market settlement (proposing, challenging, and finalizing the real-world outcome of a market).

Trade settlement vs. market settlement

  • Trade settlement (Fills & Orders) occurs continuously as orders match in the off-chain matching engine. Batches are submitted on-chain by the platform’s match-submitter service to CTFExchange (for binary markets) or NegRiskCtfExchange (for neg-risk markets). On-chain transaction confirmation is indexed by chain-watcher and projected via chain.fill_settled events into exchange-service, updating vault balances and trade states.
  • Market settlement (Resolution & Redemption) occurs after the real-world event concludes. Outcomes are proposed, disputed, or finalised on-chain through dedicated oracle contracts (Oracle for binary markets, NegRiskOracle for neg-risk markets). Once finalised, winning and voided positions are redeemed back into USDC inside users’ custody vaults.

Flow

Trade execution lifecycle and propose / challenge / finalize timelines.

Challenges

10 USDC bond, 2h window, override / confirm / void outcomes.

Void / delayed

When automated settlement cannot proceed safely.

Contracts

CTFExchange, Vaults, ConditionalTokens, and Oracles.

Data sources

The platform integrates with multiple match-data providers (for example Stats Perform, API-Football and LSports). By default a market is configured with one source; some markets are configured with additional sources. When a market has several sources, the rule is a strict majority: more than half of the configured sources must report the same outcome (with two sources, both). A market moves to DELAYED when the configured source(s) cannot produce a safe, unambiguous outcome — data is unavailable or ambiguous, there is no strict majority among the configured sources, or the source reports the event cancelled or abandoned (the platform then decides whether to void). See Void & delayed.

Bond + challenge window

Binary and neg-risk markets both settle through the propose → challenge → finalize lifecycle with a bond-backed challenge window. Binary markets use Oracle (keyed by conditionId); neg-risk markets use NegRiskOracle (negRiskOracleGen2 on generation 2; keyed by negRiskMarketId), which settles every outcome of the group in one transaction — see Flow. On both:
  • Challenger bond: 10 USDC (the oracle’s bondAmount(); snapshotted at proposal time as bondSnapshot)
  • Challenge window: 2 hours after proposal by default (the exact deadline is resolution.challengeWindowClosesAt)
  • Only the first challenge per market is accepted
  • Front-running protection: challengers can bind their challenge to the proposal hash via challengeOutcome(conditionId, expectedProposalHash)
Outcomes: See Void & delayed for what the void payout vector means for redemption.

Emergency paths

These exist on both oracles; the id is the conditionId (binary) or the negRiskMarketId (neg-risk).
  • markDelayed(id) / undelay(id) — pause while waiting for data. Calls oraclePauseMarket on the exchanges registered on that oracle.
  • voidMarket(id) / voidMarketWithPayouts(id, payouts, reasonHash) — resolver-authorised void path. On neg-risk, voidMarket is queued first (queueVoidMarket) and is unavailable after any conversion; voidMarketWithPayouts(id, yesPayouts, noPayouts, reasonHash) is a separate path that is not queued and can be used after conversions, if the payouts are solvent, but not while a void is queued — see Void & delayed.
  • initiateProposalClear(id) + executeProposalClear(id) — 7-day timelock path for clearing a stuck or erroneous proposal.
  • executeProposalClearWithConsent(...) — instant proposal clear path requiring co-signatures from the platform and an independent emergency clear guardian (emergencyClearGuardian) within the consent window.

What partners typically need to know

  1. Trade fills settle on-chain in batches submitted by match-submitter to CTFExchange / NegRiskCtfExchange and indexed by chain-watcher. Fills become final on-chain within seconds of matching.
  2. Market payouts are not final until the oracle finalises the market.
  3. Subscribe to market_lifecycle on /ws/market (id = market symbol): market_resolved fires on finalisation, market_disputed on a challenge, and every status change — including VOIDED and DELAYED — arrives as status_changed.
  4. Redemption goes through your vault, which holds the outcome tokens. Auto-redeem, on by default, redeems voided-market refunds and winnings of at least 1 USDC per market for you within a few minutes of the final status via AutoRedeemBackfillService and BatchOrchestratorService multicall. For anything smaller, or with auto-redeem off, use the gasless POST /api/me/positions/redeem, or have the vault owner call Vault.redeemPositions / Vault.redeemPositionsNegRisk (see Redemption). The payout is credited automatically to the USDC row’s available in GET /api/me/balances.