dex api query
Returns the latest 20 DEX trades on Ethereum and BNB Chain, where base currency is 0x67fe…2a6e, exchange name is Pancake or Pancake v2 and date after 2022-06-01: transaction hash, block height, buy currency symbol, buy currency address, sell currency symbol, sell currency address, trade index and 5 more fields.
What it returns
- transaction hash
- block height
- buy currency symbol
- buy currency address
- sell currency symbol
- sell currency address
- trade index
- buy amount
- sell amount
- any of time
- full name
- trade amount
Filters
- base currency is 0x67fe…2a6e
- exchange name is Pancake or Pancake v2
- date after 2022-06-01
The query
{
ethereum(network: bsc) {
dexTrades(
options: {limit: 20, desc: ["block.height", "tradeIndex"]}
exchangeName: {in: ["Pancake", "Pancake v2"]}
baseCurrency: {is: "0x67fe403a75d871b992143fa15474f542a7892a6e"}
date: {after: "2022-06-01"}
) {
transaction {
hash
}
block {
height
}
buyCurrency {
symbol
address
}
sellCurrency {
symbol
address
}
tradeIndex
buyAmount(calculate: maximum)
sellAmount(calculate: maximum)
any(of: time)
exchange {
fullName
}
tradeAmount(in: USD)
}
}
}
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