Get price token to show tradingview chart
Returns DEX trades on Ethereum and BNB Chain, where base currency is 0xbb4c…095c, quote currency is 0xe9e7…7d56 and exchange name is Pancake: minute, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address, protocol and 5 more fields.
What it returns
- minute
- base currency symbol
- base currency address
- base amount
- quote currency symbol
- quote currency address
- protocol
- quote amount
- count
- quote price
- minimum of block
- maximum of block
Filters
- base currency is 0xbb4c…095c
- quote currency is 0xe9e7…7d56
- exchange name is Pancake
- time since 2022-01-01
- price asymmetry is below 0.7
The query
query (
$baseAddress: String
$quoteAddress: String
$from: ISO8601DateTime!
$interval: Int
$exchangeName: String
) {
ethereum(network: bsc) {
dexTrades(
baseCurrency: { is: $baseAddress }
quoteCurrency: { is: $quoteAddress }
time: { since: $from }
exchangeName: { is: $exchangeName }
priceAsymmetry: { lt: 0.7 }
any: [{ tradeAmountUsd: { gt: 0.00001 } }, { tradeAmountUsd: { is: 0 } }]
) {
timeInterval {
minute(format: "%FT%TZ", count: $interval)
}
buyCurrency: baseCurrency {
symbol
address
}
buyAmount: baseAmount
sellCurrency: quoteCurrency {
symbol
address
}
protocol
volume: quoteAmount
trades: count
high: quotePrice(calculate: maximum)
low: quotePrice(calculate: minimum)
open: minimum(of: block, get: quote_price)
close: maximum(of: block, get: quote_price)
}
}
}
Variables
{
"from": "2022-01-01T00:00:00",
"interval": 30,
"baseAddress": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
"quoteAddress": "0xe9e7cea3dedca5984780bafc599bd69add087d56",
"protocol": "Pancake v2",
"exchangeName": "Pancake"
}
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