Tobi_1whole-jade
Updated 2024-09-28
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
›
⌄
⌄
WITH token_price AS (
-- Step 1: Get the most recent price of the token
SELECT
PRICE,
SYMBOL,
HOUR
FROM
base.price.ez_prices_hourly;
WHERE
TOKEN_ADDRESS = '0x532f27101965dd16442e59d40670faf5ebb142e4'
ORDER BY
HOUR DESC
LIMIT 1 -- Get the latest price
)
-- Step 2: Calculate market cap using a static circulating supply
SELECT
t.SYMBOL,
t.PRICE,
9910236395 AS CIRCULATING_SUPPLY, -- Replace with actual circulating supply
(t.PRICE * 9910236395 ) AS market_cap -- Replace with actual circulating supply
FROM
token_price t;
QueryRunArchived: QueryRun has been archived