Haisenbergdai-swaps
    Updated 2025-03-09
    SELECT
    date_trunc('month', block_timestamp) as date,
    --pool_name as pool,
    count(DISTINCT tx_hash) as num_swaps,
    sum(num_swaps) over (ORDER BY date) as cum_swaps,
    count(DISTINCT sender) as swappers,
    sum(swappers) over (ORDER BY date) as cum_swappers,
    sum(CASE when token_in = lower('0xd586E7F844cEa2F87f50152665BCbc2C279D8d70') then amount_in end ) as volume_in,
    sum(volume_in) over (ORDER BY date) as cum_volume_in,
    sum(CASE when token_out = lower('0xd586E7F844cEa2F87f50152665BCbc2C279D8d70') then amount_out end) as volume_out,
    sum(volume_out) over (ORDER BY date) as cum_volume_out,
    volume_in + volume_out as total_volume,
    sum(total_volume) over (ORDER BY date) as cum_total_volume,
    volume_in - volume_out as net_volume
    FROM
    avalanche.defi.ez_dex_swaps
    WHERE
    token_in = lower('0xd586E7F844cEa2F87f50152665BCbc2C279D8d70')
    OR token_out = lower('0xd586E7F844cEa2F87f50152665BCbc2C279D8d70')
    GROUP BY
    1
    ORDER BY
    1 DESC
    Last run: about 2 months ago
    DATE
    NUM_SWAPS
    CUM_SWAPS
    SWAPPERS
    CUM_SWAPPERS
    VOLUME_IN
    CUM_VOLUME_IN
    VOLUME_OUT
    CUM_VOLUME_OUT
    TOTAL_VOLUME
    CUM_TOTAL_VOLUME
    NET_VOLUME
    1
    2025-03-01 00:00:00.000673116878327218424357749.3679942883032812685.5431273895.2858261183104729233.64361631644.6538204076137541919.1867183854.08216817
    2
    2025-02-01 00:00:00.000198071681101104183521264205.917309833032454936.17512022743.347685693104455338.357793286949.264995526136910274.53289-758537.430375864
    3
    2025-01-01 00:00:00.00016431166129485182482179375.91837753031190730.257792470843.76956513102432595.01014650219.68794266133623325.26789-291467.851187594
    4
    2024-12-01 00:00:00.00015256164486398181632514401.736919433029011354.339423268000.534535763099961751.240535782402.271455196128973105.57995-753598.797616335
    5
    2024-11-01 00:00:00.0007848162960787180652393861.975892393026496952.60252357594.606598853096693750.7064751456.582491236123190703.308536267.369293537
    6
    2024-10-01 00:00:00.000371316217596917978545014.1659233613024103090.6266501456.5705259573094336156.09941046470.736449326118439246.7260143557.595397404
    7
    2024-09-01 00:00:00.000289016180466717909616986.9844855113023558076.46068627007.9305504743093834699.528871243994.915035996117392775.98956-10020.946064963
    8
    2024-08-01 00:00:00.0005061161515677178421577515.375409553022941089.476191699801.547121473093207691.598323277316.922531026116148781.07452-122286.171711924
    9
    2024-07-01 00:00:00.0005214161009582177651503360.249205153021363574.100791716876.120312423091507890.05123220236.369517576112871464.15199-213515.871107277
    10
    2024-06-01 00:00:00.0005804160488194176832140210.377146143019860213.851582689709.048539473089791013.930894829919.425685616109651227.78247-549498.671393335
    11
    2024-05-01 00:00:00.00062101599077122175892608980.153418953017720003.474432846602.87347053087101304.882355455583.026889446104821308.35679-237622.720051548
    12
    2024-04-01 00:00:00.00095711592867139174674700556.017959643015111023.321015658339.752581593084254702.0088810358895.77054126099365725.3299-957783.734621949
    13
    2024-03-01 00:00:00.000150101583296159173287016046.431434443010410467.303067713946.701717363078596362.256314729993.13315186089006829.55935-697900.27028292
    14
    2024-02-01 00:00:00.000111101568286148171693615726.878571893003394420.871623388782.443174123070882415.554587004509.3217466074276836.4262226944.435397771
    15
    2024-01-01 00:00:00.000110431557176166170215637196.692065722999778693.993056540833.980288623067493633.1114112178030.67235436067272327.10446-903637.288222906
    16
    2023-12-01 00:00:00.000131651546133121168555450335.30037092994141497.300986343535.326050483060952799.1311211793870.62642146055094296.4321-893200.025679576
    17
    2023-11-01 00:00:00.000135301532968126167343475767.153781542988691162.000613583313.643599463054609263.805077059080.7973816043300425.80568-107546.489817918
    18
    2023-10-01 00:00:00.00075481519438133166082357705.752091112985215394.846832353151.74116373051025950.161474710857.493254816036241345.00834554.010927418
    19
    2023-09-01 00:00:00.00094041511890112164752760494.801111292982857689.094742873931.599658213048672798.42035634426.40076956031530487.51505-113436.79854692
    20
    2023-08-01 00:00:00.000136181502486123163632913327.829303912980097194.293633646115.556731353045798866.820656559443.386035266025896061.11428-732787.72742744
    45
    7KB
    9s