The liquidity endpoint for DeFi

0x API is a professional grade liquidity aggregator enabling the future of DeFi applications

Focus on your product.
Let 0x find the best prices.

Our smart order routing splits up your transaction across decentralized exchange networks to be filled with the lowest slippage possible.

Sell 1,500 DAI for ETH
Best price!
50% Balancer
25% 0x Mesh
25% Uniswap

All the popular DEX networks

Don't ever worry about adding new sources, we have it covered.

Uniswap
Oasis
Dodo
Balancer
Mooniswap
Curve
Bancor
mStable
more

...Plus exclusive 0x liquidity

Professional Market Makers
Offer competitive pricing through 0x's RFQ system
0x’s Open Orderbook
Enables free limit orders and true peer to peer liquidity
Private Liquidity Pools
Access AMM liquidity that you can’t get anywhere else

Best in class performance

Better prices, faster response times, and lower revert rates than any other aggregator on the market. See the data

99.9%
Uptime
Available when you need it
2%
Revert Rate
10x lower than competitors
1.5s
Response Time
2.7% faster than competitors

Swap tokens with a few lines of code

Automatically create orders that can be passed directly through your smart contracts to be settled on-chain.

Fetch Quotes
Create Market & Limit Orders
Swap Arbitrary Tokens
Get Price Quote
Copy to clipboard
curl
https://api.0x.org/swap/v1/quote
buyAmount
100
buyToken
DAI
sellToken
USDC
{
  "message": "No API key provided. Please visit https://0x.org/pricing to get a free API key or sign up to a paid plan",
  "request_id": "1358247a22e73f12c0e6731e3c315a4b"
}

Matcha by 0x

Matcha is the global search engine for liquidity and markets that enables users to trade tokens at the best price through a world class interface.

Ready to build on 0x?

Get Started

Want help from the 0x team?