DWR/WBNB OHLC data
Returns DEX trades on Ethereum and BNB Chain, where base currency is 0x5f49…5b8c, quote currency is 0xbb4c…095c and exchange name is Pancake or Pancake v2, sorted by time interval minute: minute, quote price, minimum of block and maximum of block.
What it returns
- minute
- quote price
- minimum of block
- maximum of block
Filters
- base currency is 0x5f49…5b8c
- quote currency is 0xbb4c…095c
- exchange name is Pancake or Pancake v2
- time since 2021-08-28
- time before 2021-08-28
The query
query GetCandleData($baseCurrency: String!, $since: ISO8601DateTime, $till: ISO8601DateTime, $quoteCurrency: String!, $window: Int) {
ethereum(network: bsc) {
dexTrades(
options: {asc: "timeInterval.minute"}
time: {since: $since, before: $till}
exchangeName: {in: ["Pancake", "Pancake v2"]}
baseCurrency: {is: $baseCurrency}
quoteCurrency: {is: $quoteCurrency}
) {
timeInterval {
minute(count: $window, format: "%Y-%m-%dT%H:%M:%SZ")
}
high: quotePrice(calculate: maximum)
low: quotePrice(calculate: minimum)
open: minimum(of: block, get: quote_price)
close: maximum(of: block, get: quote_price)
}
}
}
Variables
{
"baseCurrency": "0x5f49f9024d5dec860b110eca79e5b805c14b5b8c",
"quoteCurrency": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
"since": "2021-08-28T08:00:00.00",
"till": "2021-08-28T08:10:00.00",
"window": 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