> ## 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.

# Introduction

> AGG unifies prediction market liquidity, funding, routing, and market data into one integration

# 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.

Partners pick the layer that fits their app and get everything below it for free.

## Next Steps

<CardGroup cols={2}>
  <Card title="Components" href="/components/overview">
    Browse the component docs and find the live Storybook catalog.
  </Card>

  <Card title="Customize UI" icon="paintbrush" href="/components/customization">
    Learn the supported CSS variable, font, label, formatting, and slot APIs.
  </Card>

  <Card title="Packages" icon="cube" href="/packages/overview">
    Explore the SDK, hooks, UI components, and auth adapters.
  </Card>

  <Card title="Setup Guide" icon="gear" href="/api/setup">
    Get up and running with installation, provider config, and code examples.
  </Card>

  <Card title="Funding & Withdrawals" href="/recipes/deposits">
    Learn how omni-chain deposits, managed balances, and withdrawals work.
  </Card>

  <Card title="Authentication" icon="key" href="/recipes/authentication">
    SIWE, SIWS, Google, Twitter, Apple, and email magic link recipes.
  </Card>

  <Card title="REST API" icon="code" href="/api/overview">
    Authentication, markets, orderbooks, charts, users, and execution workflows.
  </Card>

  <Card title="WebSocket Protocol" icon="brackets-curly" href="/api/websocket">
    Orderbook, trade, heartbeat, and authenticated user-event streaming.
  </Card>
</CardGroup>
