Get Candle data for pancake
Returns DEX trades on Ethereum and BNB Chain, where base currency is 0x8c4b…7b04, quote currency is 0xbb4c…095c and exchange name is Pancake or Pancake v2, 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 0x8c4b…7b04
- quote currency is 0xbb4c…095c
- exchange name is Pancake or Pancake v2
- date since 2020-12-01
- date before 2021-05-24
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, before: $till}
exchangeName: {in: ["Pancake", "Pancake v2"]}
baseCurrency: {is: $baseCurrency}
quoteCurrency: {is: $quoteCurrency}
tradeAmountUsd: {gt: $minTrade}
) {
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": "0x8c4b3dea4247f066f3aaff7273dc97e7d4187b04",
"quoteCurrency": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
"since": "2020-12-01T00:00:00.000Z",
"till": "2021-05-24T17:00:00.000Z",
"window": 60
}
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