Index Candle Data v2
Returns DEX trades on Ethereum and BNB Chain, where base currency is 0x4c48…7460, quote currency is 0xbb4C…095c and exchange name is ApeSwap, sorted by time interval day: day, base currency symbol, base currency address, quote currency symbol, quote currency address, trade amount, count and 6 more fields.
What it returns
- day
- base currency symbol
- base currency address
- quote currency symbol
- quote currency address
- trade amount
- count
- quote price
- sell amount
- buy amount
- minimum of block
- maximum of block
- quote amount
Filters
- base currency is 0x4c48…7460
- quote currency is 0xbb4C…095c
- exchange name is ApeSwap
- date since 2021-12-01
- date till 2021-12-31
- trade amount USD is above 1
The query
query GetCandleData($baseCurrency: String!, $since: ISO8601DateTime, $till: ISO8601DateTime, $quoteCurrency: String!, $minTrade: Float, $window: Int) {
ethereum(network: bsc) {
dexTrades(
options: {asc: "timeInterval.day"}
date: {since: $since, till: $till}
baseCurrency: {is: $baseCurrency}
quoteCurrency: {is: $quoteCurrency}
tradeAmountUsd: {gt: $minTrade}
exchangeName: {is: "ApeSwap"}
) {
timeInterval {
day(count: $window, format: "%Y-%m-%dT%H:%M:%SZ")
}
baseCurrency {
symbol
address
}
quoteCurrency {
symbol
address
}
tradeAmountUsd: tradeAmount(in: USD, calculate: sum)
totalTrades: count
quotePrice
sellAmountUsd: sellAmount(calculate: sum, in: USD)
buyAmountUsd: buyAmount(calculate: sum, in: USD)
maximumPrice: quotePrice(calculate: maximum)
minimumPrice: quotePrice(calculate: minimum)
openPrice: minimum(of: block, get: quote_price)
closePrice: maximum(of: block, get: quote_price)
quoteAmount(calculate: sum)
}
}
}
Variables
{
"baseCurrency": "0x4c48a4d089d13cb24a8a250c7051e8a3f8687460",
"quoteCurrency": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
"since": "2021-12-01T00:00:00.000Z",
"till": "2021-12-31T23:59:59.000Z",
"window": 1,
"minTrade": 1
}
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