Decentralized Exchange Metrics
DEX metrics have been migrated to a new framework, with new data starting from May 5, 2022. Data between February 9, 2017 and May 5, 2022, is sourced from the old framework (Available DEXs for old framework). Although older data remains accessible through the API, we do not recommend its use.
Description
Decentralized exchanges, or DEXs, revolutionize cryptocurrency trading by eliminating the need for a central authority. Operating on blockchain technology, these exchanges empower users with direct peer-to-peer transactions, enhancing security and control over funds. DEXs embody the principles of transparency and trustlessness, offering users a more resilient and inclusive financial ecosystem.
List of decentralized exchanges: Available Decentralized Exchanges.
Additionally, there is a label unknown
for DEXs that haven't been labeled.
Metrics are divided into four groups:
Trade volume in USD segmented by DEX:
total_trade_volume_by_dex
- Total trading volume in USDeth_based_trade_volume_by_dex
- Trading volume in USD involving ETH-based tokens1stablecoin_trade_volume_by_dex
- Trading volume in USD involving Stablecoins2other_trade_volume_by_dex
- The trading volume in USD involving tokens not falling into any of the above categories
Number of trades segmented by DEX:
total_trade_amount_by_dex
- Number of all tradeseth_based_trade_amount_by_dex
- Number of trades involving ETH-Based tokens1stablecoin_trade_amount_by_dex
- Number of trades involving Stablecoins2other_trade_amount_by_dex
- Number of trades involving tokens not falling into any of the above categories
Trade volume segmented by DEX and asset:
eth_trade_volume_by_token
- Trading volume in ETH between ERC20 token and ETH-Based tokens1stablecoin_trade_volume_by_token
- Trading volume in USD between ERC20 token and Stablecoins2
Token price in ETH segmented by DEX and asset:
token_eth_price_by_dex_5m
- Token price in ETH segmented by DEX for trades between given ERC20 token and ETH-based tokens 1
ETH Based Tokens
ETH, WETH, ETH Kyber, ETHWrapped and Bancor ETH.
USD-based Stablecoins
Tether, USD coin, DAI, Binance USD, TrueUSD and other stablecoins.
Access
Measuring Unit
total_trade_volume_by_dex
,eth_based_trade_volume_by_dex
,stablecoin_trade_volume_by_dex
,other_trade_volume_by_dex
- Amount in USDtotal_trade_amount_by_dex
,eth_based_trade_amount_by_dex
,stablecoin_trade_amount_by_dex
,other_trade_amount_by_dex
- Number of tradeseth_trade_volume_by_token
- Amount in ETHstablecoin_trade_volume_by_token
- Amount in stablecoinstoken_eth_price_by_dex_5m
- Amount in ETH
Data Type
Frequency
Latency
Available Assets
total_trade_volume_by_dex
,eth_based_trade_volume_by_dex
,stablecoin_trade_volume_by_dex
,other_trade_volume_by_dex
: multi-collateral-daitotal_trade_amount_by_dex
,eth_based_trade_amount_by_dex
,stablecoin_trade_amount_by_dex
,other_trade_amount_by_dex
: multi-collateral-daieth_trade_volume_by_token
,stablecoin_trade_volume_by_token
,token_eth_price_by_dex_5m
: ERC20 assets
Note:
<>_trade_volume_by_dex
and<>_trade_amount_by_dex
metrics are not asset-based. They are related to DEX data andmulti-collateral-dai
is placeholder for the data.
SanAPI
Trade volume metrics: total_trade_volume_by_dex
, eth_based_trade_volume_by_dex
,
stablecoin_trade_volume_by_dex
and other_trade_volume_by_dex
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
{ getMetric(metric: "total_trade_volume_by_dex") { timeseriesData( selector: { slug: "multi-collateral-dai" owner: "bancor_v3" label: "decentralized_exchange" } from: "2023-01-01T00:00:00Z" to: "2023-01-07T00:00:00Z" interval: "5m" ) { datetime value } } }
Number of trades metrics: total_trade_amount_by_dex
, eth_based_trade_amount_by_dex
,
stablecoin_trade_amount_by_dex
and other_trade_amount_by_dex
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
{ getMetric(metric: "total_trade_amount_by_dex") { timeseriesData( selector: { slug: "multi-collateral-dai" owner: "sushi_v2" label: "decentralized_exchange" } from: "2023-01-01T00:00:00Z" to: "2023-01-07T00:00:00Z" interval: "5m" ) { datetime value } } }
Trade volume between ERC20 token and ETH-based tokens: eth_trade_volume_by_token
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
{ getMetric(metric: "eth_trade_volume_by_token") { timeseriesData( selector: { slug: "chainlink" owner: "uniswap_v2" label: "decentralized_exchange" } from: "2023-01-01T00:00:00Z" to: "2023-01-07T00:00:00Z" interval: "5m" ) { datetime value } } }
Trade volume between ERC20 token and stablecoins: stablecoin_trade_volume_by_token
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
{ getMetric(metric: "stablecoin_trade_volume_by_token") { timeseriesData( selector: { slug: "wrapped-bitcoin" owner: "uniswap_v3" label: "decentralized_exchange" } from: "2023-01-01T00:00:00Z" to: "2023-01-07T00:00:00Z" interval: "5m" ) { datetime value } } }
Token ETH Price by DEX: token_eth_price_by_dex_5m
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
{ getMetric(metric: "token_eth_price_by_dex_5m") { timeseriesData( selector: { slug: "usd-coin" owner: "uniswap_v3" label: "decentralized_exchange" } from: "2023-01-01T00:00:00Z" to: "2023-01-07T00:00:00Z" interval: "5m" ) { datetime value } } }