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