tape-candles-1
Returns one DEX trade on Ethereum and BNB Chain, where base currency is 0x2170…33f8, quote currency is 0xe9e7…7d56 and base currency is 0x55d3…7955, sorted by time interval time: block height, quote price, minute, maximum of block, base currency symbol, base currency address, quote currency symbol and 5 more fields.
What it returns
- block height
- quote price
- minute
- maximum of block
- base currency symbol
- base currency address
- quote currency symbol
- quote currency address
- base amount
- quote amount
- count
- minimum of block
Filters
- base currency is 0x2170…33f8
- quote currency is 0xe9e7…7d56
- base currency is 0x55d3…7955
- smart contract address is 0x63b3…8f85
- date since 2019-08-29
- date till 2021-09-02
- trade amount USD is above 10
The query
query candlesBitquery($afterDate: ISO8601DateTime!, $beforeDate: ISO8601DateTime!, $timeframe: Int = 120, $baseCurrency: String!, $quoteCurrency: String!, $pair: String!) {
ethereum(network: bsc) {
token1Price: dexTrades(
baseCurrency: {is: $quoteCurrency}
quoteCurrency: {is: "0xe9e7cea3dedca5984780bafc599bd69add087d56"}
options: {desc: ["block.height"], limit: 1}
) {
block {
height
}
quotePrice
}
candles: dexTrades(
options: {asc: "timeInterval.time"}
date: {since: $afterDate, till: $beforeDate}
baseCurrency: {is: $baseCurrency}
smartContractAddress: {is: $pair}
tradeAmountUsd: {gt: 10}
) {
timeInterval {
time: minute(count: $timeframe)
}
time: maximum(of: block, get: time)
baseCurrency {
symbol
address
}
quoteCurrency {
symbol
address
}
time: maximum(of: block, get: time)
token0Amount: baseAmount
token1Amount: quoteAmount
txs: count
high: quotePrice(calculate: maximum)
low: quotePrice(calculate: minimum)
open: minimum(of: block, get: quote_price)
close: maximum(of: block, get: quote_price)
}
}
}
Variables
{
"pair": "0x63b30de1a998e9e64fd58a21f68d323b9bcd8f85",
"baseCurrency": "0x55d398326f99059ff775485246999027b3197955",
"quoteCurrency": "0x2170ed0880ac9a755fd29b2688956bd959f933f8",
"afterDate": "2019-08-29T17:46:16.000Z",
"beforeDate": "2021-09-02T17:47:16.000Z"
}
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