Documentation Index
Fetch the complete documentation index at: https://docs.agg.market/llms.txt
Use this file to discover all available pages before exploring further.
AGG — Prediction Market Aggregator
AGG is a white-label prediction market aggregator that unifies fragmented venues into a single trading and market data surface. Partners integrate one system for market discovery, funding, routing, execution, and account UX instead of stitching together venue-specific infrastructure.Fees
For all build partners who launch on AGG to leverage our APIs and execution layer before the end of Q2 ‘26, we’re offering no up-front or recurring fees. Projects can choose the additional fee they want to charge users in the AGG admin, and we take 20% of those fees.Omni-chain wallet system
AGG lets users deposit on supported chains without choosing a specific venue account up front. We provision deposit addresses, track managed balances, and automatically rebalance funds across accounts when needed so users do not have to make venue-by-venue deposits or know where liquidity will ultimately execute.Canonical market matching
AGG matches venue-specific events and markets into canonical markets so partner apps can show one market instead of a fragmented venue list. Matching combines deterministic heuristics, in-house LLM scoring, and manual verification for edge cases and high-value ambiguities, giving users normalized orderbooks, charts, and liquidity across venues.Rust market data engine
AGG’s market data infrastructure runs on a sharded Rust engine that ingests live venue feeds, maintains in-memory orderbooks, computes candles, and serves aggregated market data. The system is designed for low-latency updates with integrity, and correctness-focused aggregation across venues.Verified cross-venue, cross-chain routing
AGG performs cross-venue, cross-chain order routing that accounts for for all variables in a users trade, then verifies each proposed route with a certificate before execution. The routing model is formalized in Lean 4, implemented in Rust, and reinforced with differential fuzzing, giving partners the best quote mathematical guaranteed.Integration at every layer
AGG is designed to meet partners wherever they are. The product ships as a stack of packages at increasing levels of abstraction:- SDK — Full control for vanilla TypeScript, Node.js, or React Native apps. Make raw API calls, manage state yourself.
- Hooks — React hooks with built-in caching, WebSocket subscriptions, and state management. Bring your own UI.
- UI Components — Drop-in React components for orderbooks, charts, trading forms, and event pages. Themed and ready to ship.
- Auth — Pluggable authentication adapters (SIWE, SIWS, Google, Twitter, Apple, email) with a pre-built connect/sign-in UI.
Next Steps
Components
Browse the component docs and find the live Storybook catalog.
Packages
Explore the SDK, hooks, UI components, and auth adapters.
Setup Guide
Get up and running with installation, provider config, and code examples.
Funding & Withdrawals
Learn how omni-chain deposits, managed balances, and withdrawals work.
Authentication
SIWE, SIWS, Google, Twitter, Apple, and email magic link recipes.
REST API
Authentication, markets, orderbooks, charts, users, and execution workflows.
WebSocket Protocol
Orderbook, trade, heartbeat, and authenticated user-event streaming.