Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Fabric DEX Aggregator

The Fabric DEX Aggregator simplifies swap execution across multiple liquidity sources while optimizing for stability, latency, accuracy, and price. It provides a single API for quoting that returns wallet-ready fill plans, allowing developers to quickly implement robust swap functionality.

Who should integrate Fabric?

Developers building meta-aggregators or applications that require low latency quoting.

If you are looking for a single, feature-rich API for quoting, verification, and swap execution across all chains and protocols, consider using spanDEX. spanDEX is a meta-aggregator library (and hosted service) that combines multiple aggregators for redundancy, verification, and best execution.

Goals

Fabric optimizes across four dimensions with the SLAP framework:

  • Stability: high API uptime and low reversion rate.
  • Latency: lowest possible quote latency for better UX and faster inclusion.
  • Accuracy: quoted output matches executed output when no slippage occurs.
  • Price: leverage optimal liquidity sources in optimal proportions.

These goals are jointly optimized for each quote request.

Fabric captures swap intent from GET /v1/quote query parameters and returns a wallet-ready fill plan. It does not execute trades. It computes the best executable route and returns the data for the caller to sign and submit onchain.

Quote-to-Fill Flow

Quote to Fill Flow

Execution Model

  • Fabric is a routing and quoting layer, not an execution agent.
  • The integrator or user submits the transaction onchain.
  • ERC-20 input tokens may require approval before execution.

Fees

  • Integrators can configure fees for themselves and referrers.
  • Surplus fee sharing is supported in the API.
  • Fabric fees are dynamic and negotiable.