adriaparcerisasTop Flow tokens by MarketCap
    Updated 2025-04-14
    WITH parsed_data AS (
    SELECT
    dateadd(ms, market_caps.value[0], to_timestamp('1970-01-01')) AS date,
    'FLOW' as token,
    avg(market_caps.value[1]) AS market_cap,
    avg(prices.value[1]) AS price,
    avg(total_volumes.value[1]) AS volume
    FROM
    (
    SELECT livequery.live.udf_api(
    'https://api.coingecko.com/api/v3/coins/flow/market_chart?vs_currency=usd&days=30&interval=daily') as resp
    ),
    lateral flatten(input => resp:data:market_caps) AS market_caps,
    lateral flatten(input => resp:data:prices) AS prices,
    lateral flatten(input => resp:data:total_volumes) AS total_volumes
    where date<current_date
    group by 1,2

    UNION

    SELECT
    dateadd(ms, market_caps.value[0], to_timestamp('1970-01-01')) AS date,
    'REVV' as token,
    avg(market_caps.value[1]) AS market_cap,
    avg(prices.value[1]) AS price,
    avg(total_volumes.value[1]) AS volume
    FROM
    (
    SELECT livequery.live.udf_api(
    'https://api.coingecko.com/api/v3/coins/revv/market_chart?vs_currency=usd&days=30&interval=daily') as resp
    ),
    lateral flatten(input => resp:data:market_caps) AS market_caps,
    lateral flatten(input => resp:data:prices) AS prices,
    lateral flatten(input => resp:data:total_volumes) AS total_volumes
    where date<current_date
    group by 1,2
    Last run: 14 days ago
    TOKEN
    MarketCap 24h
    Price 24h
    Trading volume 24h
    MarketCap 7d
    Price 7d
    Trading volume 7d
    MarketCap 30d
    Price 30d
    Trading volume 30d
    1
    FLOW569030328.9356860.3851505604818412.903249834569030328.9356860.3851505604166137819.359716690978594.0387410.3851505604688285251.63311
    2
    RLY4513515.240469280.0010014000942811.9815743764513515.240469280.001001400094570832.2595983725924552.291916090.0010014000942364876.5040504
    3
    REVV1412062.065873440.0012647321774452.7656328851412062.065873440.001264732177903911.4234757161412062.065873440.0012647321773744775.89725654
    3
    456B
    45s