For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Contact SupportDiscordGo to dashboard
HomeDocsAPI ReferenceLiquidity IntegrationChangelog
HomeDocsAPI ReferenceLiquidity IntegrationChangelog
  • Introduction
    • Welcome
    • Supported Chains and Providers
    • Demo Apps
    • FAQ
    • API Issues & Error Codes
    • Need Help?
  • Swap API
    • Introduction
    • FAQ
  • Gasless API
    • Introduction
    • Gasless FAQ
  • Cross-Chain API
    • Introduction
    • Learn More
  • Trade Analytics API
    • Introduction
    • Transaction Data
    • Trade Analytics FAQ
  • Core Concepts
    • Introduction to 0x
    • 0x Cheat Sheet
    • Contracts
    • Order Types
    • Glossary
    • White Paper
    • Transaction Data
  • Developer Resources
    • Bounties
    • Rate Limits
    • System Status
  • Upgrading
    • Overview
    • Upgrading to Swap v2
    • Upgrading to Gasless v2
  • Need Help?
    • FAQ
    • API Issues & Error Codes
    • Contact Support
    • Contact Sales
LogoLogo
Contact SupportDiscordGo to dashboard
On this page
  • What is 0x?
  • Why use 0x?
  • ELI5 0x
  • The 0x Ecosystem
  • 0x Tech Stack
  • Makers and Takers
  • Supply Side (Makers)
  • Demand Side (Takers)
  • How does 0x work?
  • What can I build on 0x?
  • Demand-Side Use Cases (Takers)
  • Supply-Side Integrations (Makers)
Core Concepts

What is 0x?

||View as Markdown|
Was this page helpful?
Edit this page
Previous

Access 0x Transaction Data

Next

0x Cheat Sheet

Built with

Prefer to watch a video instead? Checkout the 0x Videos.

What is 0x?

0x allows builders to embed swaps in their onchain apps. Tap into aggregated liquidity from 150+ sources, across 19+ EVM chains with the most efficient trade execution. Our suite of APIs has processed over 60M+ million transactions and $154B+ in volume from more than 9+ million users trading on apps like Matcha.xyz, Coinbase Wallet, Robinhood Wallet, Phantom, Metamask, Zerion, Zapper, and more.

Swap Widget

Why use 0x?

At 0x, we believe all forms of value will eventually be tokenized and settle on-chain. But as more value becomes tokenized, liquidity becomes increasingly fragmented — across chains, across liquidity sources, and across protocols.

0x offers powerful APIs to simplify access to this fragmented liquidity:

  • Swap API - The most efficient liquidity aggregator for ERC20 tokens through a single API.
  • Gasless API - Never lose a user trade because of gas. Easily build frictionless apps with end-to-end gasless infra.
  • Trade Analytics API - Programatically access historical trades initiated through your apps via 0x Swap and Gasless APIs.

0x Routing

ELI5 0x

Just like Google Flights compares prices across airlines to help you find the best flight deal, 0x API scans multiple decentralized exchanges to get you the best price when trading tokens. Instead of hopping between exchanges yourself, 0x does the hard work for you — all through a simple API that developers can plug into their apps. It’s fast, secure, and saves you time and money by finding the best route.

The 0x Ecosystem

0x Tech Stack

0x’s professional-grade APIs are built on the 0x Settler, a secure, audited smart contract. Builders using these APIs are part of the growing 0x ecosystem.

0x Tech Stack

Makers and Takers

Within the 0x Ecosystem, there are two sides to a trade - Makers and Takers:

Supply Side (Makers)

This is the entity who creates 0x orders and provides liquidity into the system for the Demand side (Takers) to consume. 0x aggregates liquidity from multiple sources including:

  • On-chain liquidity - DEXs, AMMs (e.g. Uniswap, Curve, Bancor)
  • Off-chain liquidity - Professional Market Makers, 0x’s Open Orderbook network

Relevant Docs:

  • Market Makers - Professional Market Making With Limit Orders

Demand Side (Takers)

Takers consume token liquidity from Makers. They are applications or agents that initiate trades using the 0x protocol. This includes:

  • Wallets
  • Portfolio trackers
  • SocialFi platforms
  • AI agents
  • Token screeners
  • And more

Relevant Docs:

  • Swap API - The most efficient liquidity aggregator for ERC20 tokens through a single API.
  • Gasless API - enable developers to build frictionless apps with end-to-end gasless infrastructure

How does 0x work?

Here’s how a 0x order is created and settled:

How 0x works

1

Order Creation: A Maker creates a 0x order, a JSON object that follows a standard format.

2

Maker Signature: The Maker signs the order to cryptographically commit to it.

3

Order Sharing: The order is shared with potential Takers (e.g., direcly via an app)

4

Aggregation: 0x API aggregates liquidity across all supply sources and surfaces the best price. - This is done using off-chain relay, on-chain settlement, saving gas and improving flexibility.

5

Order Submissions: A Taker fills the order onchain by signing it and submitting it along with the fill amount.

6

Order Settlement: The 0x Settler verifies the signature, checks trade conditions, and atomically swaps assets between Maker and Taker.

What can I build on 0x?

0x powers a wide variety of web3 applications. Whether you’re building a product where trading is central — like an exchange — or adding seamless token swaps to an app where trading is just one feature, 0x makes it easy to plug in liquidity.

For more inspiration, check out this blog post and our case studies.

Demand-Side Use Cases (Takers)

Exchanges & Marketplaces

  • Decentralized exchange for a specific asset or vertical
  • eBay-style marketplace for digital goods
  • Over-the-counter (OTC) trading desk

Wallets & Interfaces

  • Crypto wallets that support in-app token swaps
  • Portfolio management dashboards
  • Token screeners with built-in trade execution

DeFi Protocols

  • Options, lending, and derivatives platforms needing deep liquidity
  • Investment strategies like DeFi index funds or DCA (dollar-cost averaging) tools
  • Prediction markets

Social & Consumer Apps

  • SocialFi platforms with embedded token swaps
  • Games with in-game currencies or tradable items
  • NFT marketplaces

Data & Analytics

  • Multi-chain analytics dashboards
  • Real-time trade panels

Agents & Automation

  • AI agents or bots that interact with DeFi
  • On-chain automation or smart contract wallets

Supply-Side Integrations (Makers)

Liquidity Sources

  • On-chain order books
  • Automated market makers (AMMs)
  • Proprietary market-making or arbitrage bots