rajsCbridge Bridge Volume
    Updated 2022-07-01
    with blocto_price as
    (
    SELECT
    date_trunc('day', timestamp) as date,
    avg(price_usd) as blocto_price
    from flow.core.fact_prices
    where asset_id = '12182'
    and timestamp >= '2022-04-19'
    group by 1
    )
    ,

    rally_price as
    (
    SELECT
    date_trunc('day', hour) as date,
    avg(price) as rally_price
    from ethereum.core.fact_hourly_token_prices
    where token_address = '0xf1f955016ecbcd7321c7266bccfb96c68ea5e49b'
    and hour >= '2022-04-19'
    group by 1
    )
    ,

    flow_price as
    (
    SELECT
    date_trunc('day', timestamp) as date,
    avg(price_usd) as flow_price
    from flow.core.fact_prices
    where asset_id = '4558'
    and timestamp >= '2022-04-19'
    group by 1
    )
    ,

    Run a query to Download Data