select
DATE_TRUNC('day', block_timestamp) as day,
avg(msg_value:execute_msg:swap:belief_price) as whiteWhale_price
from terra.msgs
where msg_value:contract = 'terra1v4kpj65uq63m4x0mqzntzm27ecpactt42nyp5c'
and msg_value:execute_msg:swap is not null and tx_status='SUCCEEDED' and block_timestamp >= CURRENT_DATE-60
group by 1