Sportsbook9 areas · 45 features

From the price to the settled ledger

A sports catalog, trading, wagers, grading, settlement, responsible gaming and dual-control approvals in source you own.

Try the demo
models from catalog to double-entry ledger
143
models from catalog to double-entry ledger
MCP data tools that run as the operator
9
MCP data tools that run as the operator
provider connection kinds, from sports data to tax
13
provider connection kinds, from sports data to tax
015 features

Catalog

Build the board

Sports, competitions, seasons, events, markets and selections give operators the structure behind every price. Traders manage market status and prices from the dashboard.

Catalog

Catalog

EventStatusMarket
Home vs AwayLIVEOPEN
Rivals, SatSCHEDULEDOPEN
Cup tieSUSPENDEDSUSPENDED
  • Operators work in a tenant-scoped catalog.
  • Markets and selections carry prices and status.
  • Event pages and the bet slip read from the same catalog.
  • Provider data arrives through normalized adapter records.
025 features

Wagers

Accept a bet only when the gates are open

Customers build a bet slip and place straight and combination wagers. Acceptance gates, wager terms and cash-out economics live in domain code rather than page logic.

Bet slipCustomer

Bet slip

Structure
PARLAY
Price change
ACCEPT_BETTER
Status
QUOTED

Betting opens only with an active licence, payment connection and jurisdiction policy.

  • The storefront opens only with an active licence, payment connection and jurisdiction policy.
  • Until then pages show that betting is closed.
  • Customer data flows through REST routes, not GraphQL.
  • Accepted wager terms are kept as a record.
035 features

Results & settlement

From official result to ledger entry

Operators enter and approve official results, grade markets and settle wagers into a double-entry ledger. Resettlement and disputes have their own records.

Settlement

Settlement

ResultStatus
Home vs AwayAPPROVED
Cup tiePENDING
RunTriggerStatus
#318RESULT_APPROVEDCOMPLETED
#319CORRECTIONRUNNING
  • Results require approval before grading.
  • Money is held in integer minor units.
  • Journals, holds and reconciliation share one ledger model.
  • Settlement and recovery requests run through a separate worker process.
045 features

Compliance

Know the customer. Keep the evidence.

Verification, location, AML and integrity cases give compliance staff dedicated queues. Restricted evidence is separated from ordinary operator records.

Compliance & integrity

Compliance & integrity

VerificationTypeStatus
VC-2210KYCPENDING
VC-2211AGEAPPROVED
VC-2207ADDRESSREJECTED
AML caseRiskStatus
AML-044HIGHREVIEW
AML-041LOWCLOSED
  • Verification cases cover KYC, age and address.
  • AML cases carry risk bands and an owner.
  • Privacy review has its own workspace.
  • Audit records can be anchored by the worker.
055 features

Responsible gaming

Limits the customer can rely on

Player limits, safer-play controls and self-exclusion are part of the model rather than an afterthought. Customers set limits and operators review them in a dedicated workspace.

Responsible gaming

Responsible gaming

LimitPeriodType
DepositWEEKLYDEPOSIT
StakeDAILYSTAKE
SessionDAILYSESSION
Self-exclusion
ACTIVE
Account closure
BLOCKED_FUNDS
  • Customers register, verify and manage their own account.
  • Customer sessions are separate from operator sessions.
  • Support cases and disputes are tracked in the dashboard.
  • Closures and exclusions have their own workflows.
065 features

Payments

Deposits in, withdrawals reviewed

Deposits run through Authorize.net when installed and configured. Withdrawals go through an operator queue, and reconciliation, safeguarding and tax have their own workspaces.

Licences & payments

Payouts

IntentTypeStatus
PI-9041DEPOSITSUCCEEDED
PI-9044WITHDRAWALREVIEW
PI-9039WITHDRAWALPROCESSING
ReconciliationStatus
Safeguarding, OctMATCHED
Provider, Nov 2SHORTFALL
  • Authorize.net is the payment adapter in the source.
  • Provider webhooks are verified and replay-protected.
  • Promotions and bonuses are tracked as records.
  • Finance staff run reconciliation and ledger adjustments.
075 features

Dual control

A second operator decides

Sensitive changes are requested by one operator and decided by a different operator with approval authority. Custom operations also require an operator session with verified two-factor assurance.

Approval inbox

Approval inbox

RequestStatus
Raise stake limitPENDING
Ledger adjustmentPENDING
Reopen marketAPPROVED

Requested by one operator, decided by another. Bound to a payload hash.

  • Approval requests are bound to a payload hash.
  • Approvals can expire.
  • Role flags separate trading, risk, compliance and finance.
  • Row-level policies scope records to the tenant.
085 features

Operations

Run the book, not just the page

A separate worker drains outbox, inbox and scheduled jobs and writes heartbeats. Health, readiness and metrics endpoints support deployment, with provider queues and recovery tools in the dashboard.

Dead-letter queue

Dead-letter queue

MessageStatus
Odds updateDEAD
Result feedPROCESSING
SettlementCOMPLETED
FeedHealth
Sports dataHEALTHY
Odds feedDEGRADED
  • Provider connections cover thirteen kinds, from sports data to tax.
  • Provider connections span thirteen kinds, from sports data to tax.
  • Dead letters and inbound messages can be replayed.
  • Outbound webhooks are HTTPS-only and host-restricted.
095 features

Developer

Pricing, grading and the ledger in your repository

Next.js, Keystone, Prisma and Postgres with a domain layer for pricing, grading, settlement and ledger work. Changes go through named mutations rather than direct edits.

Terminal/sportsbookShell
$ npm run dev
# keystone build, migrate, next dev
$ npm test
# tsx --test features/sportsbook
# named mutations, not direct edits
  • 143 models cover the catalog, wagers, the ledger, compliance and operations.
  • An assistant works through nine data tools that run with the operator's permissions.
  • Licences, payment connections and jurisdiction policy gate every live bet.
  • Read the documentation for licensing and jurisdiction gates.