latest trades of a token

Returns the latest 10 DEX trades on Ethereum and BNB Chain, where base currency is 0x0523…27d7 and date since 2021-05-12: timestamp time, block height, trade index, full name, address address, annotation, base amount and 6 more fields.

By gaurav · saved 12 May 2021 · run 1 time · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: 10, offset: 0}
      date: {since: "2021-05-12"}
      baseCurrency: {is: "0x0523215dcafbf4e4aa92117d13c6985a3bef27d7"}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      exchange {
        fullName
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      baseAmount
      baseCurrency {
        address
        symbol
      }
      quoteAmount
      quoteCurrency {
        address
        symbol
      }
      transaction {
        hash
      }
    }
  }
}

Variables

{
  "limit": 1,
  "offset": 0,
  "network": "bsc",
  "token": "0x0523215dcafbf4e4aa92117d13c6985a3bef27d7",
  "from": "2021-05-12",
  "till": null,
  "dateFormat": "%Y-%m-%d"
}

Similar queries