Shared for Fret

sellCurrency is the token addresses that are monitored. buyCurrency is the liquidity token that was swapped to receive the tokens.

By Gavin McBride · saved 28 October 2022 · run 7 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      date: {since: "2022-10-28"}
      options: {limit: 30, desc: ["block.height", "tradeIndex"]}
      exchangeName: {in: ["Pancake", "Pancake v2"]}
      buyCurrency: {is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}
      sellCurrency: {in: ["0x348e9ecb19a3f141a60845a29a32c701dc0ecb3b", "0x07335a076184c0453ae1987169d9c7ab7047a974"]}
      buyAmount: {gteq: 1}
    ) {
      exchange {
        fullName
      }
      block {
        height
        timestamp {
          iso8601
        }
      }
      buyCurrency {
        symbol
      }
      sellAmount
      sellAmountInUsd: sellAmount(in: USD)
      sellCurrency {
        symbol
      }
      tradeIndex
      transaction {
        hash
      }
      buyAmountInUsd: buyAmount(in: USD)
    }
  }
}

Similar queries