Using time to get Price
Returns 50 DEX trades on Ethereum and BNB Chain, where base currency is 0x2170…33f8, quote currency is 0x8AC7…580d and time since 2022-08-01, sorted by block height transaction index, highest first: block height, timestamp time, transaction index, base currency symbol, quote currency symbol and quote price.
What it returns
- block height
- timestamp time
- transaction index
- base currency symbol
- quote currency symbol
- quote price
Filters
- base currency is 0x2170…33f8
- quote currency is 0x8AC7…580d
- time since 2022-08-01
- time till 2022-08-12
The query
{
ethereum(network: bsc) {
dexTrades(
baseCurrency: {is: "0x2170ed0880ac9a755fd29b2688956bd959f933f8"}
quoteCurrency: {is: "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"}
options: {desc: ["block.height", "transaction.index"], limit: 50}
time: {since: "2022-08-01T15:00:00.000Z", till: "2022-08-12T23:00:00.000Z"}
) {
block {
height
timestamp {
time(format: "%Y-%m-%d %H:%M:%S")
}
}
transaction {
index
}
baseCurrency {
symbol
}
quoteCurrency {
symbol
}
quotePrice
}
}
}
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