PancakeSwap Trade History For Specific Token

Returns the latest DEX trade on Ethereum and BNB Chain, where base currency is 0xbb4c…095c, quote currency is 0x0e09…ce82 and exchange name is Pancake or Pancake v2: transaction hash, address address, contract type, currency name, trade index, date date, block height and 10 more fields.

By MAdnan · saved 7 July 2021 · run 13 times · Bitquery API v1

What it returns

Filters

The query

{
ethereum(network: bsc){
dexTrades(options: {limit: 1, desc: "block.height"},
exchangeName: {in:["Pancake","Pancake v2"]}
baseCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
quoteCurrency: {is: "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82"}
){
transaction {
hash
}
smartContract{
address{
address
}
contractType
currency{
name
}}
tradeIndex
date {
date
}
block {
height
}
buyAmount
buyAmountInUsd: buyAmount(in: USD)
buyCurrency {
symbol
address
}
sellAmount
sellAmountInUsd: sellAmount(in: USD)
sellCurrency {
symbol
address
}
sellAmountInUsd: sellAmount(in: USD)
tradeAmount(in: USD)
transaction{
gasValue
gasPrice
gas
}}
}}

Similar queries