latest 5 WETH trades

Returns the latest 5 DEX trades on Ethereum, where base currency is 0xc02a…6cc2 and date since 2023-02-08: full name, exchange name, address address, trade amount, date date, quote currency name, quote currency symbol and 2 more fields.

By Divyasshree N · saved 9 February 2023 · run 1 time · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork, $baseCurrencyAddress: String!, $from: ISO8601DateTime!) {
  ethereum(network: $network) {
    dexTrades(
      baseCurrency: {is: $baseCurrencyAddress}
      date: {since: $from}
      options: {limit: 5, desc: "date.date"}
    ) {
      exchange {
        fullName
        name
        address {
          address
        }
      }
      volume: tradeAmount(in: USD)
      date {
        date
      }
      quoteCurrency {
        name
        symbol
      }
      sellCurrency {
        name
        symbol
      }
    }
  }
}

Variables

{
  "baseCurrencyAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
 
  "network": "ethereum",
  "from": "2023-02-08"
}

Similar queries