eg query
Returns 10000 DEX trades on Ethereum and BNB Chain, where quote currency is 0xbb4C…095c, base currency is not 0xe9e7…7d56, 0x55d3…7955 or 4 more and exchange name is Pancake v2, sorted by exchange name: hour, exchange name, address address, base currency symbol, base currency address, decimals, quote currency symbol and 10 more fields.
What it returns
- hour
- exchange name
- address address
- base currency symbol
- base currency address
- decimals
- quote currency symbol
- quote currency address
- base amount
- quote amount
- quote price
- count
- trade amount
- buy amount
- sell amount
- minimum of block
- maximum of block
Filters
- quote currency is 0xbb4C…095c
- base currency is not 0xe9e7…7d56, 0x55d3…7955 or 4 more
- exchange name is Pancake v2
- time since 2021-09-29
- time till 2021-09-29
- trade amount USD is above 10
The query
{
ethereum(network: bsc) {
dexTrades(
options: { asc: ["exchange.name"], limit: 10000 }
time: { since: "2021-09-29T22:00:00Z" , till: "2021-09-29T22:59:59Z" }
exchangeName: { in: ["Pancake v2"] }
quoteCurrency: { is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c" }
baseCurrency: { notIn: ["0xe9e7cea3dedca5984780bafc599bd69add087d56","0x55d398326f99059ff775485246999027b3197955","0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82","0x2170ed0880ac9a755fd29b2688956bd959f933f8","0x7130d2a12b9bcbfae4f2634d864a1ee1ce3ead9c","0x3ee2200efb3400fabb9aacf31297cbdd1d435d47"] }
tradeAmountUsd: { gt: 10 }
) {
timeInterval {
hour(count: 1)
}
exchange {
name
}
smartContract {
address { address }
}
baseCurrency {
symbol
address
decimals
}
quoteCurrency {
symbol
address
}
baseAmount
quoteAmount
quotePrice
trades: count
tradeAmountUsd: tradeAmount(in: USD)
buyAmountUsd: buyAmount(in: USD)
sellAmountUsd: sellAmount(in: USD)
maxPrice: quotePrice(calculate: maximum)
minPrice: quotePrice(calculate: minimum)
openPrice: minimum(of: block, get: quote_price)
closePrice: maximum(of: block, get: quote_price)
}
}
}
Similar queries
- Latest DODO DEX swaps on BSC · BNB Chain · DEXTrades
- Top DODO liquidity pools by 24h volume on BSC · BNB Chain · DEXTrades
- trades · Ethereum · DEXTrades
- metric_v1_bsc · BNB Chain · DEXTrades
- bsc_tessera · BNB Chain · DEXTrades