SELECT date_trunc('day',block_timestamp) as date,
median(to_amount/from_amount)
FROM terra.core.ez_swaps
WHERE from_currency = 'uluna' and to_currency = 'ibc/B3504E092456BA618CC28AC671A71FB08C6CA0FD0BE7C8A5B5A3E2DD933CC9E4'
GROUP by date
ORDER by date DESC