QueryMarketStats
Get Market Stats between two dates
Returns DEX trades on Ethereum, where base currency is 0x7866…B4F4, trade amount USD is above 10 and price asymmetry is below 0.05: base currency symbol, base currency address, base amount, quote currency symbol, quote currency address, quote amount, count and 3 more fields.
What it returns
- 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
- base currency is 0x7866…B4F4
- trade amount USD is above 10
- price asymmetry is below 0.05
The query
query GET_MARKETS_STATS($base: String!, $dates: [ISO8601DateTime!]) {
ethereum(network: ethereum) {
dexTrades(
baseCurrency: {is: $base}
date: {between: $dates}
tradeAmountUsd: {gt: 10}
priceAsymmetry: {lt: 0.05}
) {
baseCurrency {
symbol
address
}
baseAmount
baseAmountUSD: baseAmount(in: USD)
quoteCurrency {
symbol
address
}
quoteAmount
quoteAmountUSD: quoteAmount(in: USD)
trades: count
maximum_price: quotePrice(calculate: maximum)
minimum_price: quotePrice(calculate: minimum)
open_price: minimum(of: block, get: quote_price)
close_price: maximum(of: block, get: quote_price)
}
}
}
Variables
{
"base": "0x7866E48C74CbFB8183cd1a929cd9b95a7a5CB4F4",
"dates": ["2021-01-01", "2021-03-01"]
}
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