datavortexMonthly Borrowing Volume
    Updated 2025-04-16
    WITH monthly_volume AS (
    SELECT
    DATE_TRUNC('month', block_timestamp) AS month,
    SUM(amount_usd) AS "monthly borrowed(usd)"
    FROM gnosis.defi.ez_lending_borrows
    GROUP BY month
    )
    SELECT
    month,
    "monthly borrowed(usd)",
    ("monthly borrowed(usd)" - LAG("monthly borrowed(usd)") OVER (ORDER BY month)) / NULLIF(LAG("monthly borrowed(usd)") OVER (ORDER BY month), 0) * 100 AS percentage_change,
    SUM("monthly borrowed(usd)") OVER (ORDER BY month) AS "cumulative borrowed volume"
    FROM monthly_volume
    ORDER BY month;





    /*WITH weekly_volume AS (
    SELECT
    DATE_TRUNC('month', block_timestamp) AS borrow_week,
    SUM(amount_usd) AS weekly_borrowed_usd
    FROM gnosis.defi.ez_lending_borrows
    WHERE amount_usd IS NOT NULL
    GROUP BY borrow_week
    )
    SELECT
    borrow_week,
    weekly_borrowed_usd,
    (weekly_borrowed_usd - LAG(weekly_borrowed_usd) OVER (ORDER BY borrow_week)) / NULLIF(LAG(weekly_borrowed_usd) OVER (ORDER BY borrow_week), 0) * 100 AS pct_change
    FROM weekly_volume
    ORDER BY borrow_week;
    */

    Last run: 19 days ago
    MONTH
    monthly borrowed(usd)
    PERCENTAGE_CHANGE
    cumulative borrowed volume
    1
    2022-01-01 00:00:00.00044
    2
    2022-04-01 00:00:00.0001904034.76476007691904038.76
    3
    2022-05-01 00:00:00.0001938756.011.8235617723842794.77
    4
    2022-06-01 00:00:00.0002914377.6750.3220443926757172.44
    5
    2022-07-01 00:00:00.0001566571.94-46.2467765898323744.38
    6
    2022-08-01 00:00:00.0001262916.39-19.3834411469586660.77
    7
    2022-09-01 00:00:00.00016239704.61185.88913158425826365.37
    8
    2022-10-01 00:00:00.0002529230.29-84.42563856728355595.66
    9
    2022-11-01 00:00:00.0001039271.06-58.90959142429394866.72
    10
    2022-12-01 00:00:00.0001488535.243.22877421430883401.92
    11
    2023-01-01 00:00:00.000870603.3-41.51275025331754005.22
    12
    2023-02-01 00:00:00.0001362730.0756.52709678433116735.29
    13
    2023-03-01 00:00:00.0001419447.064.1620120734536182.35
    14
    2023-04-01 00:00:00.0001048816.8-26.11088996935584999.15
    15
    2023-05-01 00:00:00.0005081784.16384.52543475740666783.31
    16
    2023-06-01 00:00:00.0004056523.75-20.17520574944723307.06
    17
    2023-07-01 00:00:00.0006341775.9956.33523629751065083.05
    18
    2023-08-01 00:00:00.0001160565.77-81.69967258752225648.82
    19
    2023-09-01 00:00:00.000817620.98-29.54979363253043269.8
    20
    2023-10-01 00:00:00.0008195501.96902.35954806361238771.76
    38
    2KB
    1s