Skip to content

Predictions

Predictions is OrbiSportbook’s second product: binary (yes/no) prediction markets on politics, economy, crypto, sports and world events. It runs as its own service, and you can offer it in two ways:

  • Inside the sportsbook (no extra integration): a Predictions tab of the sportsbook you already embed, paid from the same seamless wallet. The sportsbook launches it and bridges its money movements to your four wallet endpoints, so you implement nothing new. See Inside the sportsbook.
  • Standalone (separate integration): its own iframe, SDK, launch API and wallet webhook, integrated next to the sportsbook following the predictions service’s own documentation. See Standalone integration.

The service was formerly called OrbiPrediction. Its documentation and v1 identifiers still use that name: Orbit.mount, orbit:* events and orb_sk_ keys.

  • Catalogue and prices from Polymarket. The top active events by 24-hour volume, normalized to binary markets. Prices stream continuously from the public Polymarket order book (CLOB WebSocket); a quote that is stale, crossed or disconnected cannot take a bet. Market titles and rules keep their original language.
  • Real-money bets on your wallet. Players bet with the balance they hold on your site. The service sends signed events to your wallet webhook. It holds no player funds, takes no deposits or withdrawals and places no orders on Polymarket.
  • Bet delay and cash-out. A real-money bet waits 8 seconds on sports markets (3 seconds on the others) and is declined if the live price moved against it in the meantime. Early cash-out is quoted from the live order book, behind the same delay.
  • Fictitious-credit sandbox. An isolated wallet with 10,000 fictitious credits per player, to certify your integration before real balances.
  • B2B tenants and aggregators. Each operator is a client with its own branding, allowed origins and keys; an aggregator provisions its clients, wallets and launches centrally.
  • Languages and themes. Portuguese, English and Spanish, and a structured theme (presets, colours, fonts, rounding, density).
What Source Role
Catalogue, rules, order book Polymarket (Gamma + CLOB WebSocket) The market and its price
Sports consensus OpticOdds, through the sportsbook API The guard on sports game markets
Results Polymarket (UMA) and, for guarded markets, OpticOdds Two independent sources must agree

Polymarket stays the source of every market: OpticOdds has no politics or crypto. For a sports game market (“Flamengo vs. Palmeiras”, “Lakers vs. Celtics”), the OpticOdds consensus of about 240 books, with sharp books weighted three times, is the reference the Polymarket price must agree with. OpticOdds relays Polymarket and Kalshi as books too, but they never vote in the consensus, so the check is independent of the price it checks.

A market is a game market when its category is sports and its event title names two sides (A vs. B, A vs B, A @ B). It matches an OpticOdds fixture when both sides match the fixture’s home and away teams (accents, case, punctuation and club suffixes such as FC, SC, CF or EC are ignored; abbreviations count) and the fixture starts within 36 hours of the market’s end date. A game market with no match, or with two, is unmatched.

Futures and outrights (no two sides) are not game markets: the guard does not apply to them, nor to non-sports markets.

The consensus used is the main full-time moneyline (the 3-way result in football, 2-way elsewhere). Outcomes map to it as follows:

  • outcomes named after the two teams: each outcome is its team’s side;
  • Yes/No on “Will Team win…”: Yes is the team’s side, No is one minus it;
  • Yes/No on “…end in a draw”: Yes is the draw.

Only those full-time result markets are guarded. Spreads, totals, props, exact scores and map winners on the same game have no consensus price: the guard does not apply to them, and they trade on Polymarket’s own checks as before. A full-time result market that cannot be matched to a single fixture is refused in enforce mode.

With the guard in enforce mode (operator wallet and sandbox), a game market takes a bet only when all of these hold:

  • it is matched to a fixture, and the consensus is fresh (the fixture list is less than 120 seconds old and the source reports healthy);
  • its moneyline is tradable and of tier A or B (tier A only in play);
  • the outcome’s Polymarket ask is within the tolerance of the consensus probability:
Situation Maximum gap
Pre-match, tier A 4 percentage points
Pre-match, tier B 6 percentage points
In play (tier A only) 3 percentage points

Otherwise the bet is refused:

Code Meaning
CONSENSUS_UNAVAILABLE No usable consensus: unmatched market, stale or unhealthy source, line not tradable, fixture not open for betting, or tier not allowed.
CONSENSUS_DIVERGENCE The Polymarket ask is further from the consensus than the tolerance.

The locked odds are computed from max(ask, consensus): the player never gets a better price than either source offers. The bet’s snapshot keeps the fixture id, side, tier and consensus probability.

A guarded bet settles only when the Polymarket result is confirmed (the usual rules: two matching observations at least 60 seconds apart and a fresh check) and OpticOdds reports the fixture completed with the same winner. While OpticOdds has no final result the bet waits (pending). Otherwise it goes to Wallet reviews, where nobody can type an amount or choose a winner:

Review reason When
CONSENSUS_RESULT_UNAVAILABLE 48 hours after kick-off without a final OpticOdds result.
CONSENSUS_RESULT_MISMATCH Polymarket and OpticOdds report different winners.
CONSENSUS_FIXTURE_CANCELLED OpticOdds reports the fixture cancelled.

The public catalogue carries a consensus object per market, whose state is verified, diverged, unmatched, stale or not_applicable. Verified markets show a “Verified by OpticOdds” mark with the consensus probability in the player UI.

The tab is the simplest way to offer Predictions: players open it from the sportsbook menu, with the session they already have, and bet with the balance of the same wallet.

What you do. Nothing new. Your sportsbook integration (sessions, embed and the four wallet endpoints) stays as it is. The OrbiSportbook platform team activates Predictions for your brand, then Operation → Features → Predictions in the back office shows or hides the tab.

Requirements.

  • A seamless brand: the tab debits and credits your wallet through the sportsbook.
  • A two-decimal currency (for example BRL, USD, EUR): Predictions does not pay in JPY, BHD or crypto.
  • A real test player of yours, for the wallet check during activation (a balance call only: nothing is debited).

How it runs.

  1. The player opens the tab. The sportsbook asks its API for a Predictions launch for that player (your externalPlayerId, the session currency and language) and frames it at once. A launch is single use; a Predictions session lasts one hour, and the tab starts a new one when it ends or the player comes back.
  2. The Predictions page may be framed by the sportsbook inside your casino page (casino → sportsbook → Predictions): the sportsbook passes your embed origins along, so the nested frame loads. Your Content Security Policy needs no new entry: your page frames only the sportsbook, as today.
  3. Every stake, win, refund, cash-out and close reaches your wallet as a sportsbook movement on the endpoints you already serve (below). When the player leaves the tab, the sportsbook reads the balance again.

What your wallet sees. The calls, signature, retries and idempotency are those of the wallet API. Predictions movements are told apart by their ids:

Predictions event Call txId kind
Balance check /balance balance:<uuid> balance
Stake /debit pred:<transactionId> bet
Win /credit pred:<transactionId> payout
Void /credit (the stake) pred:<transactionId> refund
Cash-out /credit pred:<transactionId> cashout
Loss (close) /credit, amount 0 pred:<transactionId> payout

betId is pred:<betId> on every movement of a Predictions bet. A stake debit whose outcome is unknown is never sent again: it is rolled back (/rollback, ref = the debit’s txId), as for a sportsbook stake. Details in Predictions movements.

The alternative to the tab: Predictions on its own page of your site, with its own contracts. It follows the same model as the sportsbook: your server creates a launch, your page embeds the iframe, and the service calls your wallet webhook for every money movement. The contracts are published by the predictions service on its own origin (today https://orbiprediction.com; OrbiSportbook confirms the origin for your environment):

Resource Path on the predictions origin
Integration guide (PT/EN/ES), including aggregators, sandbox, wallet and themes /docs
OpenAPI 3.0 /openapi.json
Wallet webhook contract /wallet-webhook.md (also /wallet-webhook.pt-BR.md, /wallet-webhook.es.md)
Fictitious-credit sandbox contract /sandbox-wallet.md
iframe SDK /sdk/v1/orbit.js
Agent-readable index /llms.txt

In short:

  1. Launch. Your backend calls POST /api/v1/launch (or the aggregator route) with its API key and the player’s external ID, and gets a signed launch link: single use, valid for 120 seconds. Only origins in your allowlist can frame it.
  2. Embed. Your page mounts the link with the SDK.
  3. Wallet. The service sends balance_check, prediction_bet (debit), prediction_win (gross return, or exactly the stake on a void) and prediction_close (loss, no movement) to your HTTPS webhook, signed with x-orbi-signature: t=<unix seconds>,v1=<HMAC-SHA256>. Apply each transactionId exactly once. There is no rollback event: a refund is a prediction_win.
  4. Certify. Run the fictitious-credit sandbox before enabling real balances.

Predictions is a per-tenant feature (features.predictions), off by default. It is switched on in the back office under Operation → Features → Predictions. For the tab inside the sportsbook, the platform team first activates the brand (its Predictions client and the wallet check); the switch then decides whether players see the tab.