Volume by height range

Returns DEX trades on Ethereum and Avalanche, where base currency is 0x51e4…7812 and height is above 0: quote amount, quote currency address, base amount and base currency address.

By DegenTrader · saved 26 April 2023 · run 4 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $token: String!, $from: Int!, $to: Int!) {
  ethereum(network: $network) {
    dexTrades(height: {gt: $from, lteq: $to}, baseCurrency: {is: $token}) {
      quoteAmount
      quoteAmountInUsd: quoteAmount(in: USD)
      quoteCurrency {
        address
      }
      baseAmount
      baseAmountInUsd: baseAmount(in: USD)
      baseCurrency {
        address
      }
    }
  }
}

Variables

{
  "limit": 1000,
  "offset": 0,
  "network": "avalanche",
  "token": "0x51e48670098173025c477d9aa3f0eff7bf9f7812",
  "from": 0,
  "to": 26935000
}

Similar queries