AI-powered edge detection for prediction markets. Probability estimation, mispricing analysis, and gasless execution across politics, legal, crypto, and economics.
Prediction markets are among the most accurate forecasting mechanisms ever created, consistently outperforming polls, pundits, and expert panels. Yet most traders operate without systematic tools to identify mispricings, relying instead on gut instinct and manual research.
Precedence is an AI-powered prediction market terminal that estimates true probabilities for every market outcome, compares them to current prices, and shows traders exactly where the edge is. By combining GPT-4o analysis with Polymarket's Central Limit Order Book and gasless trading infrastructure, Precedence transforms prediction market trading from intuition-driven to intelligence-driven.
"Our AI estimates true probabilities, detects market mispricing, and shows you exactly where the edge is."
Prediction markets on platforms like Polymarket process hundreds of millions of dollars in volume across thousands of simultaneous markets. However, individual traders face several challenges:
With thousands of active markets across politics, legal, crypto, economics, and culture, no human can systematically evaluate every market for mispricing. High-value edge opportunities are buried beneath the noise of high-profile, efficiently priced markets.
Traditional trading terminals show prices and order books but offer no opinion on whether those prices are correct. Traders must form their own probability estimates through manual research — a time-intensive process that doesn't scale across thousands of markets.
Court cases, SCOTUS rulings, regulatory battles, and criminal trials represent some of the most intellectually rigorous prediction challenges. Yet legal markets receive far less attention than political or crypto markets, creating persistent mispricings for those with domain expertise.
Most prediction market platforms require gas fees, complex wallet management, and multiple transaction signatures. This friction discourages participation, particularly from users new to blockchain-based trading.
Precedence addresses each of these challenges through four integrated capabilities:
GPT-4o estimates true probabilities for every market outcome, calculates the edge versus market price, and identifies the best value opportunities.
For markets with 2 to 100+ outcomes, AI ranks every candidate with probability estimates, market price comparisons, and mispricing flags.
CourtListener integration provides access to millions of court cases. AI analyzes judge behavior, case precedents, and legal patterns to predict outcomes.
Polymarket Builder program enables zero-gas-fee trading through Gnosis Safe smart wallets. Users trade with one signature, no ETH required.
The core innovation of Precedence is the AI Edge Detection Engine — a system that transforms raw market data into actionable trading intelligence.
For each market, the engine performs a multi-step analysis:
For YES/NO markets, the engine returns a single probability estimate with edge calculation, bull and bear cases, and key factors analysis.
For markets with multiple outcomes (e.g., "Who will win the 2028 Presidential Election?" with 30+ candidates), the engine:
Example Output
Market: "Democratic Presidential Nominee 2028"
AI Estimate: Gavin Newsom at 30% (market price: 27%) — +3% edge
Best Value: Alexandria Ocasio-Cortez at 15% (market price: 10%) — +5% edge
Confidence: 70% | Risk: Medium
For court cases searched via CourtListener, a specialized legal analysis pipeline activates:
Precedence is built as a multi-service architecture deployed across Vercel (frontend) and Railway (backend + database).
PRECEDENCE PLATFORM ARCHITECTURE Frontend (Next.js 16) Vercel - Dashboard + trending markets www.precedence.fun/app - Markets (5 category filters) - AI Market Analysis - Case search + LLM analysis - Portfolio + positions - Profile + wallet management Backend (FastAPI) Railway - /api/markets/* endpoints PostgreSQL database - /api/predictions/* (GPT-4o) - /api/cases/* (CourtListener) - /api/users/* (profiles) Trading (Frontend-side) Polymarket Builder - Safe wallet deployment Gasless via Relayer - Credential derivation HMAC-signed orders - CLOB order placement Session caching External APIs - Polymarket Gamma API (market data) - Polymarket CLOB API (trading + order books) - Polymarket Relayer (gasless transactions) - CourtListener API (legal case data) - OpenAI GPT-4o (AI market + case analysis) - Privy (wallet authentication)
| Layer | Technology |
|---|---|
| Frontend | Next.js 16, TypeScript, Tailwind CSS, Recharts |
| Backend | FastAPI (Python 3.11+), SQLAlchemy |
| Database | PostgreSQL on Railway |
| AI/ML | OpenAI GPT-4o, structured JSON responses |
| Authentication | Privy (email, Google, wallet login) |
| Trading | Polymarket CLOB Client, Builder SDK, Relayer |
| Wallets | Gnosis Safe smart wallets (gasless deployment) |
| Charts | Recharts (price history, multi-outcome) |
| Fonts | Instrument Serif, DM Sans, JetBrains Mono |
Precedence leverages Polymarket's Builder Program to deliver a zero-gas-fee trading experience. Users never need ETH or MATIC to trade.
The system uses two wallets per user, each with a distinct role:
| Wallet | Purpose | Contains |
|---|---|---|
| EOA (Externally Owned Account) | Signing only — proves user intent | No funds |
| Safe (Gnosis Safe Smart Wallet) | Holds funds, executes trades | USDC for trading |
This separation enables gasless trading: the user signs with their EOA, and Polymarket's Relayer executes the transaction from the Safe wallet, paying gas on the user's behalf.
Target: 1 signature per trade for returning users.
Session credentials cached for 30 days in localStorage.
Precedence was founded with a legal-first thesis: court cases, regulatory battles, and criminal trials are among the most underserved and inefficiently priced markets in the prediction market ecosystem.
Through the CourtListener API, Precedence provides access to millions of federal court cases across all circuits:
When a user triggers AI Analysis on a case, the system:
The output includes plaintiff win probability, defendant win probability, settlement probability, judge ideology assessment, key legal factors, and a confidence score.
Precedence surfaces legal prediction markets that are typically buried beneath high-volume political markets. Active legal markets include:
A dedicated Legal filter tab on the Markets page ensures these markets are always accessible, regardless of their trading volume relative to political markets.
Precedence organizes markets into five filterable categories, each with keyword-based classification:
| Category | Examples | Keywords |
|---|---|---|
| Legal | SCOTUS tariff ruling, Weinstein prison time, Epstein charges | court, trial, guilty, scotus, charged, prison, verdict |
| Politics | Presidential nominees, Fed Chair, elections | election, president, congress, nominee, primary |
| Crypto | Bitcoin price, MegaETH FDV, MetaMask token | bitcoin, ethereum, crypto, solana, token |
| Economics | Fed rate cuts, tariff revenue, inflation | fed, interest rate, inflation, gdp, recession |
| All Markets | Everything above + culture, geopolitics | No filter applied |
The dashboard Trending Markets section uses a diversification algorithm to ensure representation across categories, rather than displaying only the highest-volume markets (which skew heavily toward politics).
Precedence generates revenue through two mechanisms:
A 1% fee is applied to all SELL orders, collected in USDC and transferred to the Precedence treasury via gasless relay. This fee is transparent and displayed in the trading interface.
As a Polymarket Builder, all trading volume attributed to Precedence is tracked via HMAC-signed order headers. Polymarket's Builder program shares a percentage of protocol revenue with builders based on their attributed volume.
| Revenue Stream | Rate | Mechanism |
|---|---|---|
| Platform Fee | 1% on sells | USDC transfer via Relayer |
| Builder Revenue | Variable | Polymarket volume attribution |
Founder & Developer
Full-stack builder. Designed and built the entire Precedence platform — from AI analysis engine to gasless trading infrastructure to the frontend terminal experience.