Historical candle data
Returns DEX trades on Ethereum and BNB Chain, where base currency is 0x603c…9a95, quote currency is 0xe9e7…7d56 and exchange name is ApeSwap, sorted by time interval minute: minute, base currency symbol, base currency address, quote currency symbol, quote currency address, trade amount, count and 3 more fields.
What it returns
- minute
- base currency symbol
- base currency address
- quote currency symbol
- quote currency address
- trade amount
- count
- quote price
- minimum of block
- maximum of block
Filters
- base currency is 0x603c…9a95
- quote currency is 0xe9e7…7d56
- exchange name is ApeSwap
- date since 2021-12-06
- date till 2021-12-10
- trade amount USD is above 10
The query
query GetCandleData($baseCurrency: String!, $since: ISO8601DateTime, $till: ISO8601DateTime, $quoteCurrency: String!, $minTrade: Float, $window: Int) {
ethereum(network: bsc) {
dexTrades(
options: {asc: "timeInterval.minute"}
date: {since: $since, till: $till}
baseCurrency: {is: $baseCurrency}
quoteCurrency: {is: $quoteCurrency}
tradeAmountUsd: {gt: $minTrade}
exchangeName: {is: "ApeSwap"}
) {
timeInterval {
minute(count: $window, format: "%Y-%m-%dT%H:%M:%SZ")
}
baseCurrency {
symbol
address
}
quoteCurrency {
symbol
address
}
tradeAmount(in: USD)
trades: count
quotePrice
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
{
"baseCurrency": "0x603c7f932ed1fc6575303d8fb018fdcbb0f39a95",
"quoteCurrency": "0xe9e7cea3dedca5984780bafc599bd69add087d56",
"since": "2021-12-06T01:00:00.000Z",
"till": "2021-12-10T05:55:00.000Z",
"window": 60,
"minTrade": 10
}
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