x
stringclasses
8 values
y
dict
SELECT token_bought_symbol FROM dex.trades_v1 WHERE block_day_and_time >= (now() - toIntervalYear(1)) AND block_day_and_time < (now() - toIntervalYear(1) + interval '1 day') GROUP BY token_bought_symbol ORDER BY sum(token_bought_amount_in_tokens) DESC LIMIT 1
{ "dex_versions": null, "dexes": null, "dextrades_date": null, "dextrades_days": 365, "pricesusd_date": null, "pricesusd_days": null, "tokens": null }
SELECT token_bought_symbol, price FROM dex.trades_v1 JOIN prices.usd_v1 ON dex.trades_v1.token_bought_symbol = prices.usd_v1.token_symbol WHERE block_day_and_time = now() - toIntervalDay(730) ORDER BY token_bought_amount_in_tokens DESC LIMIT 1
{ "dex_versions": null, "dexes": null, "dextrades_date": null, "dextrades_days": 730, "pricesusd_date": null, "pricesusd_days": null, "tokens": null }
SELECT price FROM prices.usd_v1 WHERE token_symbol = 'WETH' ORDER BY block_hour DESC LIMIT 1
{ "dex_versions": null, "dexes": null, "dextrades_date": null, "dextrades_days": null, "pricesusd_date": null, "pricesusd_days": null, "tokens": [ "WETH" ] }
SELECT max(swap_value_in_usd) as highest_value_swap FROM dex.trades_v1 WHERE toDate(block_day_and_time) = '2022-12-25'
{ "dex_versions": null, "dexes": null, "dextrades_date": "2022-12-25", "dextrades_days": null, "pricesusd_date": null, "pricesusd_days": null, "tokens": null }
SELECT eth_price.price / btc_price.price AS ratio FROM (SELECT price FROM prices.usd_v1 WHERE token_symbol = 'WETH' AND block_hour = (now() - toIntervalDay(2))) AS eth_price, (SELECT price FROM prices.usd_v1 WHERE token_symbol = 'WBTC' AND block_hour = (now() - toIntervalDay(2))) AS btc_price
{ "dex_versions": null, "dexes": null, "dextrades_date": null, "dextrades_days": null, "pricesusd_date": null, "pricesusd_days": 2, "tokens": [ "WETH", "WBTC" ] }
SELECT price FROM prices.usd_v1 WHERE token_symbol = 'GRT' AND block_hour = toDate('2020-02-28')
{ "dex_versions": null, "dexes": null, "dextrades_date": null, "dextrades_days": null, "pricesusd_date": "2022-02-28", "pricesusd_days": null, "tokens": [ "GRT" ] }
SELECT * FROM dex.trades_v1 WHERE dex_name = 'uniswap' AND dex_version = '2' ORDER BY block_day_and_time DESC LIMIT 1
{ "dex_versions": [ "2" ], "dexes": [ "uniswap" ], "dextrades_date": null, "dextrades_days": null, "pricesusd_date": null, "pricesusd_days": null, "tokens": null }
SELECT * FROM dex.trades_v1 WHERE dex_name = 'uniswap' AND (dex_version = '2' OR dex_version = 'x') ORDER BY block_day_and_time DESC LIMIT 2
{ "dex_versions": [ "2", "x" ], "dexes": [ "uniswap", "uniswap" ], "dextrades_date": null, "dextrades_days": null, "pricesusd_date": null, "pricesusd_days": null, "tokens": null }
README.md exists but content is empty.
Downloads last month
30