Skip to content
Dune Analytics

@p0s / Tokenlon Traders Per Month

Tokenlon Traders Per Month

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 results

Loading
 

SQL query

1SELECT 
2    month, 
3    source,
4    sum("Traders") as "Traders"
5FROM(
6
7/* Tokenlon v5 AMM */
8    WITH prices AS (                                                                                       
9        SELECT  date_trunc('day', minute) as day,                                                       
10                contract_address,    
11                decimals,
12                avg(price) as price
13        FROM prices.usd                                                                                    
14        GROUP BY 1, 2, 3                                                                                 
15        ),
16    AMM AS (
17        SELECT  
18            date_trunc('month', evt_block_time) as month,
19            n.contract_address as ca,
20            "makerAssetAmount",
21            "takerAssetAmount",
22            source,
23            CASE
24                WHEN "makerAssetAddr" IN ('\x0000000000000000000000000000000000000000')
25                THEN '\xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'::BYTEA...