Transactions in USD

To get the total rewards for a specific date span

Returns 10 DEX trades on Ethereum, where buy currency is 0xc02a…6cc2, date since 2024-10-29 and date till 2024-10-30: date date, buy amount, sell amount, sell currency symbol and buy currency symbol.

By Santiago Pintus · saved 31 October 2024 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork, $since: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      date: {since: $since, till: $till}
      options: {limit: 10}
      buyCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
    ) {
      date {
        date
      }
      buyAmountUSD: buyAmount(in: USD)
      sellAmount
      sellCurrency {
        symbol
      }
      buyCurrency {
        symbol
      }
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "since": "2024-10-29",
  "till": "2024-10-30T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries