About queries and results
Dune Analytics lets you explore, create, and share Ethereum analytics. You can find an endless amount of great queries and dashboards on Dune.
We have decoded Ethereum smart contract data so you can do powerful analysis with simple SQL queries and visualise the query results into beautiful graphs.
Dune Analytics is free for everyone forever. If you want extra features like private queries, export your results and more check out our Pro plan.
1select "put_or_call", volume_wbtc, volume_eth 2from 3(select (CASE 4WHEN "optionType" = 1 THEN 'put' 5ELSE 'call' 6END ) as "put_or_call", sum(amount / 1e8) as volume_wbtc 7FROM hegic."HegicWBTCOptions_call_create" 8where call_success = 'true' 9group by "optionType") wbtc 10inner join 11(select (CASE 12WHEN "optionType" = 1 THEN 'put' 13ELSE 'call' 14END ) as "optionType", sum(amount / 1e18) as volume_eth 15FROM hegic."HegicETHOptions_call_create" 16where call_success = 'true' 17group by "optionType") eth 18on wbtc."put_or_call" = eth."optionType"