total base amount and quote amount for a currency

Returns DEX trades on Ethereum and BNB Chain, where base currency is 0xb3a6…ea79 and quote currency is 0xbb4c…095c: base amount, base currency address, base currency symbol, quote amount, quote currency address and quote currency symbol.

By gaurav · saved 14 December 2021 · run 12 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      date: {since: null, till: null}
      baseCurrency: {is: "0xb3a6381070b1a15169dea646166ec0699fdaea79"}
      quoteCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
    ) {
      baseAmount(calculate: sum, in: USD)
      baseCurrency {
        address
        symbol
      }
      quoteAmount(calculate: sum, in: USD)
      quoteCurrency {
        address
        symbol
      }
    }
  }
}

Similar queries