Accurate Coin Price
You need to multiply Median price of WBNB/BUSD and $TARGET/WBNB median price to get the end results
What it returns
- second
- base currency symbol
- base currency address
- timestamp time
- block height
- trade index
- base amount
- quote currency symbol
- quote currency address
- quote amount
- trade amount
- count
- quote price
- minimum of block
- maximum of block
Filters
- date since 2021-08-22
The query
# You need to multiply Median price of WBNB/BUSD and $TARGET/WBNB median price to get the end results
{
ethereum(network: bsc) {
dexTrades(
any: [{baseCurrency: {is: "0x8076c74c5e3f5852037f31ff0093eeb8c8add8d3"},
quoteCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}},
{baseCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"},
quoteCurrency: {is: "0xe9e7cea3dedca5984780bafc599bd69add087d56"}}]
date: {since: "2021-08-22T20:48:00.000Z"}
options: {desc: ["tradeIndex", "block.timestamp.time"], limitBy: {each: "baseCurrency.symbol", limit: 1}}
) {
timeInterval{
second(count: 1)
}
baseCurrency {
symbol
address
}
block {
timestamp {
time(format: "%Y-%m-%d %H:%M:%S")
}
height
}
tradeIndex
buyAmount: baseAmount
buyAmountInUsd: baseAmount
quoteCurrency {
symbol
address
}
sellAmountInUsd: quoteAmount
tradeAmount(in: USD)
volume: quoteAmount
trades: count
median: quotePrice (calculate: median)
high: quotePrice(calculate: maximum)
low: quotePrice(calculate: minimum)
open: minimum(of: block, get: quote_price)
close: maximum(of: block, get: quote_price)
}
}
}
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