Skip to content
Dune Analytics

@slash125 / Daily put-call volume - WBTC

Daily put-call volume - WBTC

Loading
 

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.

SQL query

1select (CASE
2            WHEN calls.DAY IS NULL THEN puts.DAY
3            ELSE calls.DAY
4        END) AS day_new, daily_volume_calls, daily_volume_puts
5from
6  ((SELECT date(call_block_time) AS DAY,
7          sum(amount / 1e8) AS daily_volume_calls
8   FROM hegic."HegicWBTCOptions_call_create"
9   WHERE call_success = 'true'
10     AND "optionType" = 2.00
11   GROUP BY DAY) calls
12FULL OUTER JOIN
13  (SELECT date(call_block_time) AS DAY,
14          sum(amount / 1e8) AS daily_volume_puts
15   FROM hegic."HegicWBTCOptions_call_create"
16   WHERE call_success = 'true'
17     AND "optionType" = 1.00
18   GROUP BY DAY) puts ON calls.DAY = puts.DAY)
19order by day_new

SQL query results

Loading