Get Vlad

Returns the latest DEX trade on Ethereum and BNB Chain, where base currency is 0x279d…c973, quote currency is 0xe9e7…7d56 and date after 2021-04-28: transaction hash, trade index, address address, contract type, currency name, block height, base currency symbol and 4 more fields.

By Shrijana · saved 21 June 2021 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: 1}
      baseCurrency: {is: "0x279d41f3f78fe5c1f0ba41ae963d6e545113c973"}
      quoteCurrency: {is: "0xe9e7cea3dedca5984780bafc599bd69add087d56"}
      date: {after: "2021-04-28"}
    ) {
      transaction {
        hash
      }
      tradeIndex
      smartContract {
        address {
          address
        }
        contractType
        currency {
          name
        }
      }
      tradeIndex
      block {
        height
      }
      baseCurrency {
        symbol
        address
      }
      quoteCurrency {
        symbol
        address
      }
      quotePrice
    }
  }
}

Similar queries