boomer77Untitled Query
    Updated 2022-01-23
    with torune as (select date(block_timestamp) as dt, from_asset, to_amount, tx_id -- in rune
    from thorchain.swaps
    where to_asset = 'THOR.RUNE'
    ),

    fromrune as (select date(block_timestamp) as dt, to_asset, from_amount, tx_id --in rune
    from thorchain.swaps
    where from_asset = 'THOR.RUNE'
    )

    final as (select a.dt, a.from_asset, a.to_amount, b.to_asset, b.from_amount
    from torune a
    left outer join fromrune b on a.tx_id = b.tx_id)

    Run a query to Download Data