Buy&Sell_Transactions

Returns the latest 10 DEX trades on Ethereum and BNB Chain, where base currency is 0xde3d…c71a and exchange name is Pancake or Pancake v2: transaction hash, address address, contract type, currency name, trade index, date date, block height and 7 more fields.

By Mert · saved 31 January 2022 · run 7 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {limit: 10, desc: "block.height"}
      exchangeName: {in: ["Pancake", "Pancake v2"]}
      baseCurrency: {is: "0xde3dbbe30cfa9f437b293294d1fd64b26045c71a"}
    ) {
      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)
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "bsc",
  "token": "0xc8c2e429f68cbf2fa8bd02328938d74b6b580a64"
}

Similar queries