Pre-trade risk auditor for prediction markets. It reads fine-print resolution rules, flags hidden traps, and returns safety scores to protect AI agents before they place bets.


BetAudit is a pre-trade safety auditor built for prediction markets like Polymarket.
While AI betting bots read headline titles, prediction markets pay out based on complex fine-print rules. BetAudit acts as an automated risk check before any money is spent.
How It Works:
Fine-Print Analysis: Fetches live resolution rules and uses AI to identify tricky clauses, hard deadlines, and multi-source requirements.
Transparent Risk Scoring: Assigns a 0–100 risk score and clear verdict (PROCEED, CAUTION, or ABORT_TRADE), breaking down every point added to the score.
Zero-Custody Execution Handshake: For safe bets, it generates a ready-to-sign EIP-712 order payload so agents can execute directly without giving up key control.
Marketplace Integration: Operates as a machine-to-machine service on the OKX AI Marketplace (Agent #6141) via REST, MCP endpoints, and optional x402 pay-per-call.
Progress During Hackathon:
Built the live Polymarket resolver (
app/resolvers/polymarket.py) and OpenAI clause parser (app/llm/parser.py) for automated rule extraction.Created a deterministic factor-based risk engine (
app/engine.py) that falls back gracefully if dependencies offline.Implemented zero-custody EIP-712 execution payload generation for passing audits (
app/execution.py).Integrated OKX X Layer x402 pay-per-call micro-payments (
app/payments/).Built a custom Solidity execution gate contract suite with 32 passing tests (
contracts/).Deployed production web console and API to custom domain (betauditmcp.xyz) and registered on the OKX AI Marketplace (Agent #6141).
BetAudit is currently self-funded / bootstrapped and has not raised external venture capital.