teste

Returns the latest 2 DEX trades on Ethereum and BNB Chain, where base currency is 0x036d…47f6, quote currency is 0x96b2…b7aa and exchange name is Pancake v2: timestamp time, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address, quote amount and 2 more fields.

By rogerio · saved 26 January 2022 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {limit: 2, desc: "block.timestamp.time"}
      exchangeName: {is: "Pancake v2"}
      baseCurrency: {is: "0x036d7af982e4e43054534eca21604be3c8f547f6"}
      quoteCurrency: {is: "0x96b277bdb84e6aa819b2dba1bf296a8c71e0b7aa"}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      baseCurrency {
        symbol
        address
      }
      baseAmount
      quoteCurrency {
        symbol
        address
      }
      quoteAmount
      trades: count
      quotePrice
    }
  }
}

Similar queries