Skip to content
Dune Analytics

@slash125 / Daily put-options volume

Daily put-options volume

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 eth.day IS NULL THEN wbtc.day
3            ELSE eth.day
4        END) AS day_new,
5       daily_volumne_eth,
6       daily_volumne_wbtc
7FROM
8  (SELECT date(call_block_time) AS DAY,
9          sum(amount / 1e18) AS daily_volumne_eth
10   FROM hegic."HegicETHOptions_call_create"
11   WHERE call_success = 'true'
12     AND "optionType" = 1.00
13   GROUP BY DAY
14   ORDER BY DAY) eth
15FULL OUTER JOIN
16  (SELECT date(call_block_time) AS DAY,
17          sum(amount / 1e8) AS daily_volumne_wbtc
18   FROM hegic."HegicWBTCOptions_call_create"
19   WHERE call_success = 'true'
20     AND "optionType" = 1.00
21   GROUP BY DAY
22   ORDER BY DAY) wbtc ON eth.day = wbtc.day
23ORDER BY day_new

SQL query results

Loading