# Openfront Sportsbook

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

From the price to the settled ledger.

## At a glance

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

## Links

- [Product overview](https://spec.openship.org/sportsbook): every area and feature on one page
- [Live demo](https://sportsbook.openship.org)
- [Documentation](https://docs.openship.org/docs/openfront/sportsbook)
- [Source code](https://github.com/openshiporg/openfront-sportsbook)
- [Feature film](https://spec.openship.org/sportsbook/video): a 27-second walk through every area

## Areas

### 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. (https://docs.openship.org/docs/openfront/sportsbook/catalog)
- 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.

### 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. (https://docs.openship.org/docs/openfront/sportsbook/operations)
- 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.

### 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. (https://docs.openship.org/docs/openfront/sportsbook/finance)
- 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.

### 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. (https://docs.openship.org/docs/openfront/sportsbook/compliance)
- 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.

### 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. (https://docs.openship.org/docs/openfront/sportsbook/customers)
- 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.

### 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. (https://docs.openship.org/docs/openfront/sportsbook/payment-providers)
- 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.

### 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. (https://docs.openship.org/docs/openfront/sportsbook/overview)
- 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.

### 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. (https://docs.openship.org/docs/openfront/sportsbook/integrations)
- 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.

### 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. (https://docs.openship.org/docs/openfront/sportsbook/api-reference)
- 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.
