Demo, Devnet and Live modes
This deployment runs in Demo Mode on Solana Devnet.
- Demo Mode — you connect a real wallet and prove ownership by signing a message. Each verified wallet receives 1,000 demo credits. Trades are executed by the same pricing engine as the on-chain program, recorded on OFTAN's beta ledger, and move real market prices — but credits have no monetary value and cannot be withdrawn.
- Devnet Mode — trades are Solana devnet transactions signed by your wallet against the OFTAN program, using test tokens.
- Live Mode — real funds. Disabled until legal, regulatory, security and operational reviews are complete.
OFTAN never switches your wallet's network. Check that your wallet is on the network shown in the header.
Writing a good market
- · Ask one yes/no question ending in “?” — e.g. Will X happen before DATE?
- · Use measurable thresholds (“at or above $80,000”), never subjective words (“moon”, “significant”, “popular”).
- · Name a primary source and how to treat conflicting data. Headlines alone are never a source.
- · State the deadline and time zone. Trading must close on or before the deadline.
- · State when the market is cancelled (resolves INVALID at 0.5 per share).
- · Markets about private individuals, violence, or anything unlawful are removed.
Near-duplicate questions are rejected automatically. Rules lock once a market is active. Create a market →
Public API
JSON over HTTPS. Rate-limited per IP.
- GET /api/markets?q=&category=&status=&sort=&page=
- GET /api/markets/:id
- GET /api/markets/:id/quote?action=BUY&side=YES&amount=10
- GET /api/markets/:id/feed
- GET /api/categories · /api/stats · /api/leaderboard?period=week
- GET /api/stream?market=:id (Server-Sent Events)
- GET /api/oracle · /api/governance · /api/token · /api/health
- GET /api/events · /api/events/:id
- GET /api/markets/:id/news · /api/markets/:id/comments
- GET /api/logos/search?q= · /api/logos/resolve?kind=&key=
Authenticated endpoints (trade, create, claim, dispute, vote, comment, like, report, watchlist) require a Sign-In With Solana session cookie.
Resolution & disputes
After trading closes, a resolver proposes an outcome with evidence from the declared sources. Traders in that market can dispute within 48 hours. Disputed outcomes are reviewed and either confirmed or overturned. See the Oracle page for the trust model and full log.
Development status
| Universal categories, discovery, search & filters | Fully implemented |
| Market detail, chart from real trade history, trading panel | Fully implemented |
| FPMM pricing engine (server-validated) | Fully implemented |
| Demo-credit trading ledger | Demo only |
| Market creation, validation, duplicate check, moderation | Fully implemented (off-chain) |
| Portfolio, leaderboard, achievements | Fully implemented (demo ledger data) |
| Wallet connect (Wallet Standard, Phantom, Solflare), SOL/SPL balances | Fully implemented |
| Sign-In With Solana sessions | Fully implemented |
| PostgreSQL persistence (Prisma) | Requires external service configuration |
| CoinGecko, Pyth, Open-Meteo, GDELT feeds | Fully implemented (no key needed) |
| FRED, API-Football, NewsAPI, RAWG feeds | Requires API credentials |
| Real-time updates (SSE) | Fully implemented |
| Oracle: proposals, disputes, finalization, audit log | Partially implemented (centralized operator) |
| Anchor program (markets, trading, resolution, claims) | Requires smart contract deployment (devnet, unaudited) |
| Governance | Demo only — on-chain voting requires governance program |
| $OFTAN token data | Requires token deployment |
| Real-money trading | Disabled pending legal, regulatory and security review |
Logos & trademarks
Every market shows a logo of its subject, loaded at runtime from an authoritative source: coin logos from CoinGecko, flags from flagcdn, competition and club crests from API-Football's media CDN, and organisation icons via logo.dev (when configured) or Google's favicon service. Each image has alt text and a tooltip naming its source; when a logo can't be loaded OFTAN shows a monogram instead. Photos of real people are never used.
Logos and trademarks belong to their respective owners and are used only to identify the subject or data source of a market. OFTAN is not affiliated with or endorsed by them.
Embedding markets
Any market can be embedded with <iframe src="/embed/markets/:id?theme=dark|light">. The widget shows the live YES price (Server-Sent Events) and a “Trade on OFTAN” link. Only /embed/* may be framed by other sites; every other page sends X-Frame-Options: DENY. Each market page has a snippet generator.
Keyboard shortcuts
/focus search ·⌘Kcommand palette ·?helpgthenmmarkets ·gthenpportfolioy/nselect YES / NO on a market page
Risk & compliance
Prediction markets can be treated as gambling, derivatives or securities depending on where you live. Blockchain settlement does not make a market lawful. OFTAN restricts access from configured jurisdictions and will not enable real-money trading until the required reviews are complete. Nothing on OFTAN is financial, legal or tax advice. Only trade what you can afford to lose.