
NEW
We're hiring! Help us build the future of decentralized trading
Transactions
Volume USD
Unique wallets
Composable DeFi building blocks designed to work seamlessly together.
Track key trading and revenue metrics with in-depth charts and data from onchain trades.
Quickly review API usage and spot spikes in errors.
Create new apps in minutes and manage them all from your dashboard.
Gain actionable insights into user trading behavior in real-time.
Add new products to each one of your apps with just one-click.
Instantly generate and manage API keys directly from the dashboard.
Build your app in days, not months
with seamless app integration.
Best-in-class liquidity aggregation and smart order routing. Try it live on Matcha.
Fastest way to tap into 130+ exchanges.
Secure and audited DEX infrastructure with 99.82% uptime.
Embed crypto trading in your app with just a few lines of code.
Play
const main = async () => {
const sellAmount = parseUnits("1000", await usdc.read.decimals());
// fetch quote
const quoteParams = new URLSearchParams({
chainId: client.chain.id.toString(),
sellToken: usdc.address,
buyToken: weth.address,
sellAmount: sellAmount.toString(),
taker: client.account.address,
});
const quoteResponse = await fetch(
"https://api.0x.org/swap/permit2/quote?" + quoteParams.toString(),
{
headers,
}
);
const quote = await quoteResponse.json();
console.log("Quote to swap 1000 USDC for WETH: ", quote);
}
main();
Play
const main = async () => {
const sellAmount = parseUnits("1000", await usdc.read.decimals());
// fetch quote
const quoteParams = new URLSearchParams({
chainId: client.chain.id.toString(),
sellToken: usdc.address,
buyToken: weth.address,
sellAmount: sellAmount.toString(),
taker: client.account.address,
});
const quoteResponse = await fetch(
"http://api.0x.org/gasless/quote?" + quoteParams.toString(),
{
headers,
}
);
const quote = await quoteResponse.json();
console.log("Quote to swap 1000 USDC for WETH: ", quote);
}
main();
Get started in less than five minutes! To get started, simply create an account on the 0x Dashboard, choose a plan, set up your app, and generate your API keys.
0x offers two options for monetizing your order flow so you can build a sustainable Web3 business. You can set a percentage fee and a fee recipient on trades initiated within your application via Swap API requests. Additionally, you may take the positive slippage generated from your swaps. You can find details on both approaches in our API references.
0x supports Ethereum, Base, Arbitrum, Optimism, Polygon, Binance Smart Chain, Avalanche, Scroll, Linea, Blast, Mode and Mantle.
We offer two transparent, flexible tiers for Web3 businesses of all sizes. You can get started with them here. If you are a high volume app or have a unique business model, please contact us to discuss a custom plan.
© ZeroEx Holdings, Inc. All rights reserved.