abr
Returns DEX trades on Ethereum, where quote currency is 0xc02a…6cc2, base currency is 0xbe04…5bd6 and time since 2023-08-30: quote price, expression, base amount, base currency address, base currency symbol, quote amount, quote currency address and quote currency symbol.
What it returns
- quote price
- expression
- base amount
- base currency address
- base currency symbol
- quote amount
- quote currency address
- quote currency symbol
Filters
- quote currency is 0xc02a…6cc2
- base currency is 0xbe04…5bd6
- time since 2023-08-30
- time till 2023-08-30
The query
query ($network: EthereumNetwork!, $from: ISO8601DateTime, $to: ISO8601DateTime){
ethereum(network: $network) {
dexTrades(
quoteCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
baseCurrency: {is: "0xbe042e9d09CB588331Ff911c2B46FD833A3E5bd6"}
time: {since: $from, till: $to}
) {
quotePrice
USDPrice: expression(get: "quoteAmountUSD / baseAmount")
baseAmountUSD: baseAmount(in: USD, calculate: sum)
baseAmount(calculate:sum)
baseCurrency {
address
symbol
}
quoteAmountUSD: quoteAmount(in: USD, calculate: sum)
quoteAmount(calculate:sum)
quoteCurrency {
address
symbol
}
}
}
}
Variables
{
"network": "ethereum",
"from": "2023-08-30T01:00:00Z",
"to": "2023-08-30T01:01:00Z"
}
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