Dechart case 1 (showing sell instead of buy)

Dechart case 1

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

By gaurav · saved 4 August 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: "0xa1a1a7664dee9935b0d8e0a42a663b218738acc245cc2f604a118fccdc4f93e5"}
      baseCurrency: {is: "0xef2ec90e0b8d4cdfdb090989ea1bc663f0d680bf"}
      quoteCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
    ) {
      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