latest trades on bsc

Returns the latest 100 DEX trades on Ethereum and BNB Chain, where base currency is 0xbb4C…095c, quote currency is 0xe9e7…7D56 and exchange address is 0xBCfC…2812 or 0xcA14…0c73: transaction hash, address address, contract type, currency name, trade index, base currency symbol, quote currency symbol and 13 more fields.

By gaurav · saved 23 July 2021 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {limit: 100, desc: ["block.height","tradeIndex"]}
      time: {since: "2021-07-17"}
      baseCurrency: {is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}
      quoteCurrency: {is: "0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56"}
      exchangeAddress: {in: ["0xBCfCcbde45cE874adCB698cC183deBcF17952812", "0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73"]}
    ) {
      transaction {
        hash
      }
      smartContract {
        address {
          address
        }
        contractType
        currency {
          name
        }
      }
      tradeIndex
      baseCurrency {
        symbol
      }
      quoteCurrency {
        symbol
      }
      tradeIndex
      date {
        date
      }
      timeInterval {
        second(count: 5)
      }
      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