mucrypto2023-10-17 02:08 AM
    Updated 2023-10-16
    with resps as
    (select defillama.get('/protocols', {}) as resp)

    select
    value:category as category,
    sum(value:tvl) as combined_tvl
    from resps,
    lateral flatten (input => resp:data)
    where category = 'Yield'
    group by 1
    Run a query to Download Data