We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e72ee8d commit fc6aae4Copy full SHA for fc6aae4
dune/base/_price.sql
@@ -0,0 +1,11 @@
1
+(
2
+ SELECT date_trunc('day', minute) AS day, contract_address AS token, AVG(price) AS price
3
+ FROM prices.usd
4
+ GROUP BY 1, 2
5
+
6
+ union all
7
8
+ select date_trunc('day', hour) AS day, contract_address AS token, AVG(median_price) AS price
9
+ FROM dex.view_token_prices
10
11
+ ) as prices on b.day = prices.day
0 commit comments