All_pair_first_price_and_last_price_for_24_hours
Returns 1000 DEX trades on Ethereum, where quote currency is 0xc02a…6cc2, date is 2023-04-18 and price asymmetry is below 1, sorted by final, highest first: address address, minimum of block, maximum of block, expression, base currency symbol, base currency address, quote currency symbol and quote currency address.
What it returns
- address address
- minimum of block
- maximum of block
- expression
- base currency symbol
- base currency address
- quote currency symbol
- quote currency address
Filters
- quote currency is 0xc02a…6cc2
- date is 2023-04-18
- price asymmetry is below 1
- trade amount USD is above 50
The query
query ($network: EthereumNetwork!) {
ethereum(network: $network) {
dexTrades(
date: {is: "2023-04-18"}
priceAsymmetry: {lt: 1}
tradeAmountUsd: {gt: 50}
quoteCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
options: {limitBy: {limit: 1, each: "smartContract.address.address"}, limit: 1000, desc: "final"}
) {
smartContract {
address {
address
}
}
first_trade_quote_price: minimum(of: block, get: quote_price)
last_trade_quote_price: maximum(of: block, get: quote_price)
diff: expression(get: "last_trade_quote_price - first_trade_quote_price")
div: expression(get: "diff / first_trade_quote_price")
final: expression(get: "div*100")
baseCurrency {
symbol
address
}
quoteCurrency {
symbol
address
}
}
}
}
Variables
{
"network": "ethereum",
"dateFormat": "%Y-%m-%d"
}
Similar queries
- Latest Curve DEX swaps on Ethereum · Ethereum · DEXTrades
- Top Curve liquidity pools by 24h volume on Ethereum · Ethereum · DEXTrades
- STRN_TOKEN_MULTIPLE_DECIMALS_DEX_TRADES · Ethereum · DEXTrades
- USDT DECIMAL SHOWING 0 · Ethereum · DEXTrades
- Trades - 0xEE61159E8A72A08371c52D62c19Efd0C7914f917 · Ethereum · DEXTrades