buyAmount and sellAmount

Returns 10 DEX trades on Ethereum and BNB Chain, where base currency is 0xbb4C…095c, quote currency is 0xe9e7…7d56 and date since 2021-07-29: trade amount, buy amount, buy currency symbol, sell amount, sell currency symbol and transaction hash.

By Sayon · saved 23 August 2021 · run 4 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {limit: 10}
      baseCurrency: {is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}
      quoteCurrency: {is: "0xe9e7cea3dedca5984780bafc599bd69add087d56"}
      date: {since: "2021-07-29"}
    ) {
      tradeAmount(in: USD)
      buyAmount
      buyCurrency {
        symbol
      }
      sellAmount
      sellCurrency {
        symbol
      }
      transaction {
        hash
      }
    }
  }
}

Similar queries