trades not on pancake exchange

Returns the latest 50 DEX trades on Ethereum and BNB Chain, where base currency is 0x4470…56d5 and exchange name is not Pancake or Pancake v2: address address, contract type, currency name, trade index, block height, unixtime, buy amount and 13 more fields.

By gaurav · saved 31 August 2022 · run 4 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {limit: 50, desc: "block.height"}
      baseCurrency: {is: "0x44706c39dBd3EA798366047eFe5521bBA3D856d5"}
      exchangeName: {notIn: ["Pancake", "Pancake v2"]}
    ) {
      smartContract {
        address {
          address
        }
        contractType
        currency {
          name
        }
      }
      tradeIndex
      block {
        height
        timestamp {
          unixtime
        }
      }
      buyAmount
      buyAmountInUsd: buyAmount(in: USD)
      buyCurrency {
        symbol
        address
      }
      sellAmount
      sellAmountInUsd: sellAmount(in: USD)
      sellCurrency {
        symbol
        address
      }
      sellAmountInUsd: sellAmount(in: USD)
      tradeAmount(in: USD)
      transaction {
        hash
        gasValue
        gasPrice
        gas
        to {
          address
          annotation
        }
        txFrom {
          address
          annotation
        }
      }
    }
  }
}

Similar queries