Access all DEX liquidity through 0x API

Easily integrate with 0x API to swap tokens at the best prices.
0x Labs
by on

We are starting the year (and the decade) with a bang! Today we are excited to introduce 0x API. We designed the 0x API to make it easy for DeFi developers like you to tap into both off-chain and on-chain DEX liquidity in a fast, reliable, and easy to use way so you can focus on what matters: your product.

With a simple GET call, you can use 0x API to fetch the best price available in the DEX ecosystem for any token. Under the hood, we aggregate liquidity from 0x Mesh and other decentralized exchange networks like Kyber, Uniswap and Oasis, and use smart order routing to find the best prices for you — saving you time and connecting you to more liquidity than any single source can provide. As we build more bridge contracts and more liquidity becomes available, the 0x API automatically upgrades without any additional work on your end.

With 0x API you can:

  • Get the best rate in the DEX ecosystem for your desired swap with a simple GET call.
  • Easily execute a swap in your smart contracts with a transaction constructed on your behalf.
  • Contribute to and access liquidity on the 0x Mesh network through a REST API endpoint.
  • Abstract away protocol fees and complete transactions on behalf of your users.
  • Reduce your product development and go to market time.

Leading open finance projects including Nuo, bZx (Fulcrum), Zerion, Topo Finance, DeFi Saver, and more have already begun integrating with 0x API. Join the growing number of projects building on 0x by getting started today at 0x.org/api!

Offering tools that make it easier for you to build and interact with the 0x protocol and the rest of the DEX ecosystem is at the core of what we do. If you are a new developer, 0x API is the easiest way to build exchange functionality into your product while you figure out product-market fit. If you are an advanced developer or have a product with traction, 0x API is the most reliable tool to offer the best prices and reach your user growth goals.

We have started working on improvements for the 0x API and, among many things, very soon you will also be able to:

  • Stream price information.
  • Easily monetize your product by collecting fees.
  • Create an advanced trading interface.
  • Submit orders to Ethereum with meta transactions.

0x API is a superset of all other DEX protocols. Once integrated, you’ll be able to create exchange-like experiences, open margin positions, or mint new index tokens. Unlike other APIs, 0x API doesn’t require you to create an account or generate API keys. To start, simply follow our Swap Tokens with 0x API guide or jump straight into the documentation.

While the 0x Core team provides a free hosted version of the 0x API for developers to hit the ground running, the 0x API codebase is open source and anyone can run their own instance if they want to. Find everything you need here.

Start building today with 0x API at 0x.org/docs/api! 🚀

Questions or feedback about 0x API? Join the conversation in our dedicated Discord channel #0x_API-help.

comments

Sign in or become a 0x Blog member to join the conversation.


Ready to build on 0x?

Get Started

Chat with the community

Join 0x Discord