latest AVAX - USDT trades

Returns the latest 10 DEX trades on Ethereum and Avalanche, where base currency is 0xb31f…66c7, quote currency is 0xb97e…8a6e and date since 2023-07-24: quote currency name, quote currency address, base currency name, base currency address, timestamp time, block height, block hash and 2 more fields.

By Divyasshree N · saved 31 July 2023 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $from: ISO8601DateTime, $till: ISO8601DateTime, $baseCurrency: String) {
  ethereum(network: $network) {
    dexTrades(
      baseCurrency: {is: $baseCurrency}
      date: {since: $from, till: $till}
      options: {desc: "block.timestamp.time", limit: 10}
      quoteCurrency: {is: "0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e"}
    ) {
      quoteCurrency {
        name
        address
      }
       baseCurrency {
        name
        address
      }
      block {
        timestamp {
          time
        }
        height
        hash
      }
      quoteAmount
      quotePrice
     
    }
  }
}

Variables

{
  "network": "avalanche",
  "baseCurrency": "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7",
  "from": "2023-07-24",
  "till": "2023-07-31T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries