Skip to content
Dune Analytics

@0x / 0x Volume (USD), Daily, by Pair

0x Volume (USD), Daily, by Pair

Loading
 

About queries and results

Dune Analytics lets you explore, create, and share Ethereum analytics. You can find an endless amount of great queries and dashboards on Dune.

We have decoded Ethereum smart contract data so you can do powerful analysis with simple SQL queries and visualise the query results into beautiful graphs.

Dune Analytics is free for everyone forever. If you want extra features like private queries, export your results and more check out our Pro plan.

SQL query

1WITH v3_fills_no_bridge AS (
2      SELECT fills.evt_tx_hash AS tx_hash
3          , fills.evt_index
4          , evt_block_time AS block_time
5          , fills."makerAddress" AS maker
6          , fills."takerAddress" AS taker
7          , SUBSTRING(fills."takerAssetData",17,20) AS taker_token
8          , SUBSTRING(fills."makerAssetData",17,20) AS maker_token
9          , fills."takerAssetFilledAmount"  AS taker_token_amount_raw
10          , fills."makerAssetFilledAmount"  AS maker_token_amount_raw
11          , CASE
12            WHEN fills."feeRecipientAddress" IN ('\x1000000000000000000000000000000000000011'::BYTEA, '\x86003b044f70dac0abc80ac8957305b6370893ed'::BYTEA) THEN '0x API'
13            WHEN fills."feeRecipientAddress" = '\xa258b39954cef5cb142fd567a46cddb31a670124'::BYTEA THEN 'Radar Relay'
14            WHEN fills."feeRecipientAddress" = '\xc898fbee1cc94c0ff077faa5449915a506eff384'::BYTEA THEN 'Bamboo Relay'
15            WHEN fills."feeRecipientAddress" IN ('\x6f7ae872e995f98fcd2a7d3ba17b7ddfb884305f'::BYTEA,'\xb9e29984fe50602e7a619662ebed4f90d93824c7'::BYTEA) THEN 'Tokenlon'
16            WHEN fills."feeRecipientAddress" IN ('\x68a17b587caf4f9329f0e372e3a78d23a46de6b5'::BYTEA) THEN '1inch Exchange'
17            WHEN fills."feeRecipientAddress" IN ('\x55662e225a3376759c24331a9aed764f8f0c9fbb'::BYTEA,'\x0000000000000000000000000000000000000000'::BYTEA) THEN 'Unknown'
18            ELSE 'Other'
19        END AS relayer
20          , 'v3' as protocol_version
21      FROM zeroex_v3."Exchange_evt_Fill" fills
22      WHERE SUBSTRING("makerAssetData",1,4) != '\xdc1600f3'::BYTEA
23    )
24    , v2_1_fills AS (
25      SELECT  fills.evt_tx_hash AS tx_hash...

SQL query results

Loading