All_pair_first_price_and_last_price_for_24_hours(New)
Returns 1000 DEX trades on Ethereum, where date since 2023-04-18 and date till 2023-04-18, sorted by final, highest first: address address, minimum of block, maximum of block, expression, base currency symbol, base currency address, quote currency symbol and 3 more fields.
What it returns
- address address
- minimum of block
- maximum of block
- expression
- base currency symbol
- base currency address
- quote currency symbol
- quote currency address
- trade amount
- full name
Filters
- date since 2023-04-18
- date till 2023-04-18
The query
query ($network: EthereumNetwork!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
ethereum(network: $network) {
dexTrades(
date: {since: $from, till: $till}
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
}
tradeAmount(in: USD, calculate: sum)
exchange {
fullName
}
}
}
}
Variables
{
"network": "ethereum",
"from": "2023-04-18T00:00:01",
"till": "2023-04-18T23:59:59",
"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