Coins: 18,022
Exchanges: 1,481
Market Cap: $2.522T 3.3%
24h Vol: $115.74B
Gas: 0.242 GWEI
Premium
API Case Studies
TABLE OF CONTENTS

How 0x Supports 200K+ Trading Pairs with Reliable Pricing

5.0
| by
CoinGecko
|
Edited by
CoinGecko
-

0x API Case Study

0x launched the first decentralized exchange protocol in 2017 and has since become a core infrastructure provider for Web3. Its Swap API enables developers to embed swaps into their applications, aggregating liquidity across more than 15 chains to ensure trades route along the optimal path. Today, 0x powers swaps for over 500 businesses and supports 9 million users across leading applications like Coinbase Wallet, Phantom, MetaMask, and Robinhood Wallet.

To achieve this scale, 0x relies on CoinGecko API for reliable and comprehensive token pricing. CoinGecko’s data powers 0x's internal pricing data infrastructure, which in turn supports its suite of API products, ensuring token values remain accurate across hundreds of thousands of trading pairs.

Key Metrics At A Glance

  • 0x has scaled from supporting approximately 30K unique trading pairs in 2023 to more than 200K pairs today, with all pairs priced consistently using data from CoinGecko API.

  • This expanded coverage has helped 0x reach over 60 million transactions and more than $154 billion in all-time trading volume.

  • 0x now serves over 9 million users and 500+ businesses, cementing its role as the industry’s go-to DEX and swap aggregator.

Enterprise Grade Crypto API

The Challenge: Pricing a Fragmented Market at Scale

As the number of tokens, decentralized exchanges, and chains grew, liquidity became increasingly fragmented. For 0x, this created a significant challenge to deliver accurate pricing across a rapidly expanding landscape of trading pairs.

To maintain reliable swaps for millions of users and hundreds of partner applications, 0x needed a crypto market data provider with the widest token coverage, spanning both major and long-tail assets. That is why 0x chose to integrate the CoinGecko API, which met all these requirements while also offering robust scam filtering features and a 99.9% uptime SLA to support 0x’s mission-critical data infrastructure.

How 0x Leverages CoinGecko API

0x integrated the CoinGecko API to provide accurate pricing for over 200,000 unique trading pairs across its internal data pipelines, which in turn power its API products such as its Swap API and Trade Analytics API.

Swap API

0x aggregates quotes across multiple on-chain liquidity sources, while CoinGecko’s pricing data provides a reliable reference to normalize token values and backfill long-tail assets. To achieve this, 0x leverages CoinGecko API’s /simple/price, /simple/token_price, and /onchain/networks/{network}/tokens/{token_address}/pools endpoints to fetch aggregated real-time token prices and on-chain liquidity data. Together, they help ensure the Swap API is able to consistently and reliably offer the best swap quotes across a wide range of trading pairs.

0x Swap API Interface

0x’s Swap API in action

0x Swap API in action

Trade Analytics API

The Trade Analytics API gives developers programmatic access to historical trade data, enabling deeper business intelligence. Similar to the Swap API, 0x uses CoinGecko API’s token price endpoints to ensure that metrics like fees and volumes are priced accurately.

"CoinGecko has been instrumental in allowing us to accurately price our internal data pipelines. In 2023, 0x saw about 30K unique trading pairs. Today we see upwards of 200K unique pairs, all of which need pricing from CoinGecko."

— Eric Wong, Product Manager at 0x

What’s Next On The Roadmap?

0x is extending its infrastructure to meet the next phase of Web3 growth. The team is expanding to Monad, where it will aggregate both order book and AMM liquidity. In parallel, 0x is building towards cross-chain swaps that will enable any-to-any token exchanges across multiple L1s, L2s, and bridges.

By combining CoinGecko’s reliable pricing with 0x’s deep liquidity routing, the ecosystem is well-positioned to support the increasing demand for on-chain swaps.

Get In Touch

Ready to supercharge your crypto project? Fill in the form below to connect with our API Sales team for a custom CoinGecko API plan tailored to enterprise needs.

 

This article was written in collaboration with 0x team.

CoinGecko's Content Editorial Guidelines
CoinGecko’s content aims to demystify the crypto industry. While certain posts you see may be sponsored, we strive to uphold the highest standards of editorial quality and integrity, and do not publish any content that has not been vetted by our editors.
Learn more
Want to be the first to know about upcoming airdrops?
Subscribe to the CoinGecko Daily Newsletter!
Join 600,000+ crypto enthusiasts, traders, and degens in getting the latest crypto news, articles, videos, and reports by subscribing to our FREE newsletter.
Tell us how much you like this article!
Vote count: 8
CoinGecko
CoinGecko
CoinGecko's editorial team comprises writers, editors, research analysts and cryptocurrency industry experts. We produce and update our articles regularly to provide the most complete, accurate and helpful information on all things cryptocurrencies. Follow the author on Twitter @coingecko

Related Articles

Select Currency
Suggested Currencies
USD
US Dollar
IDR
Indonesian Rupiah
TWD
New Taiwan Dollar
EUR
Euro
KRW
South Korean Won
JPY
Japanese Yen
RUB
Russian Ruble
CNY
Chinese Yuan
Fiat Currencies
AED
United Arab Emirates Dirham
ARS
Argentine Peso
AUD
Australian Dollar
BDT
Bangladeshi Taka
BHD
Bahraini Dinar
BMD
Bermudian Dollar
BRL
Brazil Real
CAD
Canadian Dollar
CHF
Swiss Franc
CLP
Chilean Peso
CZK
Czech Koruna
DKK
Danish Krone
GBP
British Pound Sterling
GEL
Georgian Lari
HKD
Hong Kong Dollar
HUF
Hungarian Forint
ILS
Israeli New Shekel
INR
Indian Rupee
KWD
Kuwaiti Dinar
LKR
Sri Lankan Rupee
MMK
Burmese Kyat
MXN
Mexican Peso
MYR
Malaysian Ringgit
NGN
Nigerian Naira
NOK
Norwegian Krone
NZD
New Zealand Dollar
PHP
Philippine Peso
PKR
Pakistani Rupee
PLN
Polish Zloty
SAR
Saudi Riyal
SEK
Swedish Krona
SGD
Singapore Dollar
THB
Thai Baht
TRY
Turkish Lira
UAH
Ukrainian hryvnia
VEF
Venezuelan bolívar fuerte
VND
Vietnamese đồng
ZAR
South African Rand
XDR
IMF Special Drawing Rights
Cryptocurrencies
BTC
Bitcoin
ETH
Ether
LTC
Litecoin
BCH
Bitcoin Cash
BNB
Binance Coin
EOS
EOS
XRP
XRP
XLM
Lumens
LINK
Chainlink
DOT
Polkadot
YFI
Yearn.finance
SOL
Solana
Bitcoin Units
BITS
Bits
SATS
Satoshi
Commodities
XAG
Silver - Troy Ounce
XAU
Gold - Troy Ounce
Select Language
Popular Languages
EN
English
RU
Русский
DE
Deutsch
PL
język polski
ES
Español
VI
Tiếng việt
FR
Français
PT-BR
Português
All Languages
AR
العربية
BG
български
CS
čeština
DA
dansk
EL
Ελληνικά
FI
suomen kieli
HE
עִבְרִית
HI
हिंदी
HR
hrvatski
HU
Magyar nyelv
ID
Bahasa Indonesia
IT
Italiano
JA
日本語
KO
한국어
LT
lietuvių kalba
NL
Nederlands
NO
norsk
RO
Limba română
SK
slovenský jazyk
SL
slovenski jezik
SV
Svenska
TH
ภาษาไทย
TR
Türkçe
UK
украї́нська мо́ва
ZH
简体中文
ZH-TW
繁體中文
Welcome to CoinGecko
Welcome back!
Login or Sign up in seconds
or
Sign in with . Not you?
Forgot your password?
Didn't receive confirmation instructions?
Resend confirmation instructions
Password must contain at least 8 characters including 1 uppercase letter, 1 lowercase letter, 1 number, and 1 special character
By continuing, you acknowledge that you've read and agree fully to our Terms of Service and Privacy Policy.
Get Price Alerts with CoinGecko App
Forgot your password?
You will receive an email with instructions on how to reset your password in a few minutes.
Resend confirmation instructions
You will receive an email with instructions for how to confirm your email address in a few minutes.
Get the CoinGecko app.
Scan this QR code to download the app now App QR Code Or check it out in the app stores
Add NFT
CoinGecko
Better on the app
Real-time price alerts and a faster, smoother experience.
You’ve reached the limit.
Guest portfolios are limited to 10 coins. Sign up or log in to keep the coins listed below.