Query editor
with------------------------------ STRK Price ------------------------------prices as (selectdate_trunc('day', minute) AS date,avg(price) as pricefromprices.usdwhereblockchain = 'ethereum'and contract_address = 0xca14007eff0db1f8135f4c25b34de49ab0d42766group by1),------------------------------ STRK Sales -------------------------------- swaps_from as (-- select-- date(block_timestamp) as date,-- count(distinct swapper) as swappers,-- sum(token_sold_amount) as volume,-- avg(token_sold_amount_usd) as volume_usd-- from-- dune.caravanserai.result_starknet_swaps-- where-- date(block_timestamp) >= current_date - interval '180' day-- and token_bought_symbol in ('DAI', 'USDC', 'USDT')-- and token_sold_symbol = 'STRK'-- group by-- 1-- ),swaps_from as (selectdate(block_time) as date,count(distinct swapper_address) as swappers,sum(from_amount) as volume,avg(from_amount_usd) as volume_usdfromdune.caravanserai.result_starknet_swap_transactionswheredate(block_time) >= date('2024-02-20')and from_token_symbol = 'STRK'and to_token_symbol in ('DAI', 'USDC', 'USDT')group by1),------------------------------ STRK Purchases -------------------------------- swaps_to as (-- select-- date(block_timestamp) as date,-- count(distinct swapper) as swappers,-- sum(token_bought_amount) as volume,-- avg(token_bought_amount_usd) as volume_usd-- from-- dune.caravanserai.result_starknet_swaps-- where-- date(block_timestamp) >= current_date - interval '180' day-- and token_bought_symbol = 'STRK'-- and token_sold_symbol in ('DAI', 'USDC', 'USDT')-- group by-- 1