/ Open Interest in USD @slash125
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 results
SQL query
1WITH x AS
2 (WITH ETH AS
3 (WITH DATA AS
4 (WITH cre AS
5 (SELECT amount/10^18 AS amount,
6 call_tx_hash,
7 "output_optionID",
8 "optionType"
9 FROM hegic."HegicETHOptions_call_create"
10 WHERE call_success = TRUE),
11 exe AS
12 (SELECT "optionID"
13 FROM hegic."HegicETHOptions_call_exercise"
14 WHERE call_success = TRUE),
15 cre_exe AS
16 (SELECT *
17 FROM cre c
18 LEFT JOIN exe e ON c."output_optionID" = e."optionID"
19 WHERE e."optionID" IS NULL),
20 cre_exe_exp AS
21 (SELECT *
22 FROM cre_exe
23 LEFT JOIN hegic."HegicETHOptions_evt_Expire" exp ON cre_exe."output_optionID" = exp.id
24 WHERE exp.id IS NULL),
25 cas AS...