Inspiration for building with Swap API

Explore the wide range of use-cases and integrations possible with Swap API, including the vast ecosystem of projects and companies already building with Swap API, from large enterprises to growth-stage startups.

June 8, 2023

Learn & Build

Building in Web3 has become increasingly difficult as the number of ecosystems, DEX protocols, and tokens has grown. And in DeFi, liquidity is fragmented across dozens of sources, making it difficult for users to find the best prices.

Swap API solves this by providing access to deep liquidity without the infrastructure overhead - making it easy for teams, big and small, to tap into aggregated liquidity from 100+ exchanges with a single integration. Swap API has become the go-to endpoint for DEX liquidity for leading teams across the Web3 ecosystem, including Coinbase, Robinhood, Matcha, Zapper, Zerion, and many more.

In this article, we will explore the wide range of use-cases and integrations possible with Swap API, highlighting the vast ecosystem of projects and companies already building with Swap API, from large enterprises to growth-stage startups, along the way.

Benefits of building with Swap API

Deep liquidity for thousands of tokens: Swap API fetches available quotes from across the liquidity supply to help users quickly find the best price for a given trade. It aggregates liquidity from 100+ exchanges, including the most popular AMMs and private market makers, across the most popular chains - allowing you to easily tap into the deepest liquidity with one simple integration.

Multi-chain support: The API supports 8-EVM compatible chains, including Ethereum, Polygon, Binance Smart Chain, Optimism, Fantom, Celo, Avalanche, Arbitrum (full list here). Default multi-chain support enables users to seamlessly navigate between different chains.

Slippage and MEV protection: Our infrastructure is designed to minimize the impact of sandwich attacks and MEV. When Slippage Protection is enabled, users save an average of ~50-80% on slippage.

Smart Order Routing: 0x smart order routing splits up transactions across multiple liquidity sources to find the most efficient order execution path based on the traded tokens and transaction size.

Unlock new revenue streams: Integrating with Swap API can open up additional revenue streams for Web3 businesses. By leveraging the feeRecipient and buyTokenPercentageFee parameters in a Swap API request, apps can generate income from the trading activities of their users.

And best of all, it’s easy to use! With Swap API, you can enable crypto trading in your app with just a few lines of code.

Integration showcase

Swap API caters to a diverse range of teams and developers within the crypto trading ecosystem, including enterprises and growth-stage startups. Let’s dive into each of these and take a look at some examples of how they benefit from Swap API’s capabilities.

Enterprises

Enterprises in the cryptocurrency industry are typically large-scale businesses, financial institutions, or established players in the traditional finance sector that have ventured into the Web3 space. These entities have a significant user base and require robust trading solutions to cater to their customers' needs.

Centralized exchanges

Centralized exchanges (CEX) are platforms that act as intermediaries between buyers and sellers, facilitating the trading of cryptocurrencies. Swap API can be integrated by centralized exchanges to expand the trading options available to users.

How they use Swap API

Centralized exchanges can utilize Swap API to enhance their liquidity pool by aggregating DEX liquidity alongside their own. By integrating Swap API, these exchanges can offer their users access to a broader range of trading pairs and better price execution. Additionally, smart order routing functionality ensures that trades are efficiently routed to the most suitable liquidity sources, optimizing trade execution.

Examples

Coinbase, one of the leading cryptocurrency exchanges, chose to integrate Swap API into its platform because it fit Coinbase’s enterprise-grade requirements and offered users access to unrivaled liquidity and the best executed price.

Robinhood, a popular investment and trading platform, leveraged 0x in the Robinhood Wallet to expand its trading options beyond its traditional offerings. One major source of friction in Web3 is the need for a user to hold and maintain balances for each chain’s native token in order to pay for transactions. By combining Swap API and Tx Relay API, 0x abstracts away the complexities related to approvals, allowances, and swaps. This allows developers to build more intuitive user interfaces for their applications, making it easier for them to onboard the next wave of users into Web3.

Fintechs and TradFi

Fintech companies and traditional financial (TradFi) institutions are increasingly exploring opportunities in the crypto space. These entities often have existing user bases and financial infrastructure, making them well-positioned to integrate crypto trading into their offerings.

How they use Swap API

By integrating with Swap API, fintechs and traditional financial institutions can enable seamless cryptocurrency transactions for their users, expanding the offerings available within their platforms. As a crypto-native company, we handle liquidity infrastructure and offer custom solutions to help fintechs navigate the complexities of launching Web3 products from zero to scale.

Examples

Digital banks: By integrating Swap API, digital banks can offer users access to decentralized exchanges and crypto trading directly within their platforms.

Global payments companies: These entities typically process payments between the banks of merchants and the card-issuing banks or credit unions of the purchasers who use their credit cards, debit cards, and prepaid cards to make payments. These companies can integrate Swap API to enable their network of merchants and users to send and receive cryptocurrencies.

Growth-stage startups

Growth-stage startups have already passed the early stages of development and have achieved notable market traction. These companies have moved beyond initial ideation and funding phases and are focused on scaling their business operations, customer base, and revenue to solidify their position in the industry.

Crypto wallets

Crypto wallets are essential tools that allow users to store, manage, and transact with their cryptocurrencies. Web3 startups often focus on developing innovative and user-friendly wallet solutions to cater to the increasing demand for secure and accessible storage options.

How they use Swap API

Developers can integrate Swap API into their crypto wallet applications to enhance the trading capabilities of their users. By integrating Swap API, these startups can provide users with seamless access to decentralized exchanges, enabling them to trade cryptocurrencies directly from their wallets. This integration empowers users with greater control over their assets, offering a comprehensive solution for both storage and trading.

Examples

MetaMask, a popular Ethereum wallet and browser extension, has integrated Swap API to provide users with an in-wallet trading feature. This integration allows users to easily trade cryptocurrencies directly from their wallets.

Phantom, a user-friendly wallet that started on the Solana blockchain, leverages Swap API to enable its users to swap Ethereum and Polygon tokens directly in their wallets without having to visit exchanges. 

Brave Wallet, a secure, self-custody crypto wallet built directly into the Brave browser, can be used to safely store and swap your assets. Swap API powers crypto trading directly in the Brave wallet.

Portfolio management apps

Portfolio management apps in the cryptocurrency space are platforms that specialize in providing a convenient way to build and manage a portfolio of tokenized assets. These apps often offer additional features such as direct token swaps, automatic liquidation protection, liquidity mining, and yield farming.

How they use Swap API

Portfolio management apps can integrate Swap API into their platforms to enhance the efficiency and effectiveness of their portfolio tracking and management tools. By leveraging Swap API's DEX aggregation and smart order routing capabilities, these apps can access a wide range of liquidity sources, enabling their users to find the best prices and execute trades seamlessly.

Examples

DeFi Saver is a management dashboard for decentralized finance protocols featuring automatic liquidation protection. Users can combine various DeFi actions, create unique protocol interactions and execute them in a single transaction. DeFiSaver utilizes Swap API to automate users’ positions for the best execution results. 

Zapper is a social Web3 explorer that enables users to follow the blockchain journey of other individuals in NFTs, DeFi, and DAOs and keep track of their assets, in one place. Users can manage their DeFi assets, liabilities and information directly from their Zapper dashboard. Token swaps in the Zapper app are powered by Swap API. 

Zerion is an all-in-one interface that allows technical and non-technical users to acquire, track and manage their DeFi assets. Zerion allows users to tap into liquidity across every major DEX, liquidity pool, and chain via Swap API.  

Investment strategies

DeFi (Decentralized Finance) investment strategies refer to the various approaches and methodologies employed by investors to generate returns and manage risk within the decentralized finance ecosystem. These strategies encompass a wide range of activities, including yield farming, liquidity provision, arbitrage, options trading, and more.

How they use Swap API

DeFi apps can benefit from integrating Swap API into their platforms and processes. By utilizing Swap API's DEX aggregation and smart order routing capabilities, investors can access a diverse range of liquidity sources, ensuring optimal execution for their investment strategies. Whether it's executing complex trading strategies, rebalancing portfolios, or optimizing yield generation, Swap API provides the necessary infrastructure for seamless and efficient trade execution.

Examples

On-chain index funds: Phuture builds crypto index funds to make crypto investing simple and accessible to anyone. Every month, the Phuture DeFi Index is rebalanced to ensure the index is adhering to its strategy and methodology regardless of market conditions. This rebalancing event is executed through Swap API to ensure the best executed price and improve returns for users. Learn more about how Phuture relies on 0x Swap API as an essential part of its product architecture to improve the performance of its on-chain index funds here.

Decentralized prime brokerage: 31Third is a blockchain native asset management platform radically optimizing on-chain execution via multi-asset trades and block execution. Their main product is batch trading, which enables users to trade with two or more assets or rebalance an entire portfolio in a single transaction. Batch trading reduces transaction costs, results in better prices and execution time, and ensures more accurate portfolio weights. 31Third’s batch execution relies on Swap API for access to deep liquidity, including 0x’s exclusive RFQ liquidity.

Crypto trading platforms

Crypto trading platforms are online platforms that enable users to buy, sell, and trade cryptocurrencies. These platforms serve as intermediaries, connecting users to various liquidity sources and providing tools and features for executing trades. Crypto trading platforms cater to both beginner and advanced traders, offering user-friendly interfaces, advanced charting tools, and access to different markets and trading pairs.

How they use Swap API

Crypto trading platforms can integrate Swap API to enhance their trading capabilities and provide users with access to aggregated liquidity from decentralized exchanges. By integrating with Swap API, these platforms can offer users the ability to find the best prices and execute trades seamlessly across multiple DEXs. Swap API helps optimize trade execution, enhances liquidity options, and provides users with a comprehensive trading experience.

Examples

DEX aggregator: Matcha is a popular decentralized exchange (DEX) aggregator that sources liquidity from multiple DEXs to offer users the best prices for their trades. Matcha leverages Swap API to access liquidity from over a hundred DEXs, enabling users to execute trades at the best rates. By utilizing Swap API, Matcha provides a seamless and efficient trading experience for its users.

Aggregator of aggregators: DefiLlama is a platform that tracks the total value locked (TVL) in various DeFi protocols. DefiLlama Swap is an aggregator of DEX aggregators that has integrated Swap API to help users find the best trade price across the ecosystem. 

Perpetuals trading: dYdX is a decentralized derivatives trading platform that allows users to trade perpetual contracts on various cryptocurrencies. Since settlement is only in USDC, dYdX relies on swaps powered by Swap API in order for users to easily trade into USDC from other tokens.

Get started

Swap API is extremely versatile. It has become the go-to endpoint for DEX liquidity for leading teams across the Web3 ecosystem, from centralized exchanges and fintechs to self-custody wallets and DeFi applications.

Interested in building with Swap API? Create a 0x account and get started, for free, in less than five minutes. Enterprise teams looking for custom solutions, please contact us directly.

For in-depth guides and more resources for building with Swap API, check out our developer documentation.

Contents

Subscribe to newsletter

By submitting you're confirming that you agree with our Terms and Conditions.
Yay! You’re signed up.
Oops! Something went wrong, but it's not your fault.

Up next

Fundamentals: Smart Contract Wallets

Oct 15, 2024

Compliance made easy with 0x Address Screening

Sep 26, 2024

0x's next-gen pricing engine is now live

Sep 25, 2024

Introducing state-of-the-art Buy/Sell Tax support

Sep 4, 2024

Take control of your balance sheet with 0x v2

Aug 15, 2024

0x v2 bug bounty program

Jul 30, 2024

What does the "best price" in DeFi really mean?

Jul 23, 2024

Eliminate allowance risk with Permit2

Jul 17, 2024

Introducing 0x's next-gen pricing engine

Jul 15, 2024

0x Dev Digest: May 2024

May 31, 2024

Frame spotlight: Paycaster

May 21, 2024

Frame spotlight: Airstack

May 9, 2024

Power up your Farcaster Frames with 0x swaps

May 2, 2024

0x Dev Digest: April 2024

Apr 30, 2024

Introducing 0x Trade Analytics

Mar 12, 2024

Coinbase Case Study

Jan 30, 2024

Introducing gasless swaps and approvals with Gasless API

Jan 22, 2024

Bitcoin ETFs have arrived

Jan 12, 2024

Building in the open: 0x pricing update

Dec 11, 2023

Matcha leverages Gasless API to bring users the most frictionless trading experience in DeFi

Nov 30, 2023

0x Dev Digest: October 2023

Nov 2, 2023

Monetize crypto trading in your app with Swap API

Oct 26, 2023

0x Dev Digest: September 2023

Oct 3, 2023

A comprehensive analysis of RFQ performance

Sep 26, 2023

Unlock optimal trades in Swap API with 0x RFQ liquidity

Sep 20, 2023

0x Dev Digest: August 2023

Aug 31, 2023

Portal launches swaps in its white label MPC wallet powered by 0x

Aug 16, 2023

0x Swap API is now live on Base

Aug 9, 2023

Introducing paid plans for Swap API

Jul 24, 2023

Decreasing Frictions in DeFi hackathon recap

Jul 12, 2023

0x's pricing principles

Jul 3, 2023

0x Dev Digest: June 2023

Jun 30, 2023

App spotlight: tastycrypto

Jun 27, 2023

App spotlight: 31Third

Jun 22, 2023

0x 101: Intro to gasless API

Jun 13, 2023

0x Dev Digest: May 2023

May 31, 2023

Fundamentals: What are gas fees?

May 25, 2023

Decreasing Frictions in DeFi Hackathon

May 12, 2023

Swap API liquidity management

May 18, 2023

0x 101: Getting started with Swap API

May 16, 2023

0x 101: Intro to Swap API

May 9, 2023

0x 101: Intro to 0x Orders

May 4, 2023

0x 101: Intro to 0x Protocol

Apr 27, 2023

A new home for 0x Protocol

Apr 24, 2023

Say hi to the new 0x

Apr 20, 2023

0x Year in Review 2022

Jan 5, 2023

0x Swap API expands to Arbitrum

Sep 22, 2022

Managed liquidity

Apr 23, 2020

0x Smart Order Routing

May 19, 2020

App spotlight: Taho

Mar 8, 2022

Fundamentals: What is a Layer 2 chain?

Apr 19, 2023

Fundamentals: What is the difference between quoted, executed, and adjusted prices?

Apr 19, 2023

Fundamentals: What is price impact?

Apr 19, 2023

Fundamentals: What is slippage?

Apr 19, 2023

Fundamentals: What is an automated market maker (AMM)?

Apr 19, 2023

Fundamentals: What is market making?

Apr 19, 2023

Fundamentals: What is a DEX aggregator?

Apr 19, 2023

Fundamentals: What is liquidity?

Apr 19, 2023

Fundamentals: What is a decentralized exchange (DEX)?

Apr 19, 2023

0x at ETHDenver 2023

Mar 21, 2023

The 0x Mission and Values

Jun 7, 2018

Announcing support for new testnets

Aug 10, 2022

0x Swap API expands to Binance Smart Chain

Mar 17, 2021

Scaling DeFi — Layer One

Sep 1, 2021

Introducing Slippage Protection

Jul 14, 2022

San Francisco Blockchain Week 2022 Recap

Nov 21, 2022

0x Swap API adds new liquidity sources

Jul 11, 2022

Review of slippage performance

Sep 14, 2022

Phuture case study

Oct 20, 2022

Measuring the impact of hidden DEX costs

Apr 14, 2022

Market making in DeFi

Aug 12, 2021

Introducing 0x Labs

Jun 22, 2020

Introducing 0x Explorer

Oct 26, 2022

Growing DeFi with professional market makers

Aug 26, 2020

0x 101: How to Access 0x Data

Apr 25, 2023

GameStop chooses 0x Swap API

Jul 8, 2022

Build on Base with 0x

Feb 23, 2023

A comprehensive analysis on DEX liquidity aggregators’ performance

Oct 1, 2020

Announcing 0x Swap API v1

Oct 1, 2020

Access all DEX liquidity through 0x Swap API

Jan 28, 2020

Announcing the 0xpo Summit 2022

Aug 24, 2022

0x Protocol, a preview of what’s to come

Mar 16, 2023

Update to our Privacy Policy

Mar 14, 2023

Price Impact Protection has arrived

Dec 14, 2022

0x Limit Orders Go Multi-Chain

Dec 23, 2021

0x Labs raises $70M Series B led by Greylock to continue expanding Web3’s core exchange infrastructure

Apr 26, 2022

0x launches Tx Relay API in beta, with Robinhood Wallet as first partner

Mar 1, 2023

0x Labs raises $15M Series A to bring decentralized exchange markets to a global audience

Feb 5, 2021

App spotlight: Zerion

Jun 22, 2022

App spotlight: Matcha

Nov 24, 2021

App spotlight: DexGuru

Jun 17, 2021

App spotlight: DEXTools

Sep 23, 2021

App spotlight: DODO

Aug 10, 2021

App spotlight: DappRadar

Dec 16, 2021

App spotlight: DeFi Saver

Jul 20, 2021

0x + Brave partner to make crypto and DeFi more accessible to everyone

Jul 7, 2021

0x Swap API now supports 0x Protocol v4

Mar 1, 2021

0x Swap API is now available on Fantom

Oct 26, 2021

0x Swap API is now live on Optimism

Jan 11, 2022

0x Swap API is now available on Polygon

May 31, 2021