WBNB and ORFANO

Returns the latest 1000 DEX trades on Ethereum and BNB Chain, where tx hash is 0x3df2…18e5, base currency is 0xbb4c…095c and quote currency is 0xef2e…80bf: timestamp time, block height, trade index, protocol, full name, side, address address and 8 more fields.

By gaurav · saved 21 July 2021 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: 1000, offset: 0}
      date: {since: null, till: null}
      txHash: {is: "0x3df2507f64cd6103b9bfada6a7b5fd8b059dbf5d5bc35da3d37e47dd5af818e5"}
      baseCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
      quoteCurrency: {is: "0xef2ec90e0b8d4cdfdb090989ea1bc663f0d680bf"}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      protocol
      exchange {
        fullName
      }
      side
      smartContract {
        address {
          address
          annotation
        }
      }
      baseAmount
      baseCurrency {
        address
        symbol
      }
      quoteAmount
      quoteCurrency {
        address
        symbol
      }
      transaction {
        hash
      }
    }
  }
}

Similar queries