parameterised in query
Returns DEX trades on Ethereum and BNB Chain, where base currency is 0x7083…3402 or 0x0e09…ce82 and quote currency is 0x55d3…7955, 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 0x7083…3402 or 0x0e09…ce82
- quote currency is 0x55d3…7955
The query
query ($baseCurrency: [String!]) {
ethereum(network: bsc) {
dexTrades(
baseCurrency: {in: $baseCurrency}
quoteCurrency: {is: "0x55d398326f99059ff775485246999027b3197955"}
options: {desc: ["block.height", "transaction.index"], limitBy: {each: "baseCurrency.symbol", limit: 1}}
) {
block {
height
timestamp {
time(format: "%Y-%m-%d %H:%M:%S")
}
}
transaction {
index
}
baseCurrency {
symbol
}
quoteCurrency {
symbol
}
quotePrice
}
}
}
Variables
{
"baseCurrency": ["0x7083609fce4d1d8dc0c979aab8c869ea2c873402","0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82"]
}
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