ETH/DAI
Returns DEX trades on Ethereum, where quote currency is 0x6b17…1d0f, base currency is ETH and date is 2021-01-28: minute, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address, quote amount and 4 more fields.
What it returns
- minute
- base currency symbol
- base currency address
- base amount
- quote currency symbol
- quote currency address
- quote amount
- count
- quote price
- minimum of block
- maximum of block
Filters
- quote currency is 0x6b17…1d0f
- base currency is ETH
- date is 2021-01-28
- price asymmetry is below 0.7
The query
query(
$baseAddress: String
$quoteAddress: String
$interval: Int
) {
ethereum(network: ethereum) {
dexTrades(
baseCurrency: { is: $baseAddress }
quoteCurrency: { is: $quoteAddress }
date: { is: "2021-01-28" }
priceAsymmetry: { lt: 0.7 }
any: [
{tradeAmountUsd: { gt: 0.00001 }},
{tradeAmountUsd: { is: 0 }}
]
) {
timeInterval {
minute(format:"%FT%TZ", count: $interval)
}
baseCurrency {
symbol
address
}
baseAmount
quoteCurrency {
symbol
address
}
quoteAmount
trades: count
high: quotePrice(calculate: maximum)
low: quotePrice(calculate: minimum)
open: minimum(of: block, get: quote_price)
close: maximum(of: block, get: quote_price)
}
}
}
Variables
{
"interval": 5,
"baseAddress": "ETH",
"quoteAddress": "0x6b175474e89094c44da98b954eedeac495271d0f"
}
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