Aggregated value for dex pair

Returns DEX trades on Ethereum, where base currency is 0xa589…3b64 and quote currency is 0xc02a…6cc2: trade amount, count, quote amount, buy amount and sell amount.

By gaurav · saved 11 May 2023 · run 2 times · Bitquery API v1

What it returns

Filters

The query

{
  buySellData: ethereum {
    dexTrades(
      baseCurrency: {is: "0xa589d8868607b8d79eE4288ce192796051263b64"}
      quoteCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
    ) {
      tradeAmount(in: USD, calculate: sum)
      trades: count
      txs: count(uniq: txs)
      volume: quoteAmount(in: USD)
      buyAmount: buyAmount(in: USD)
      sellAmount: sellAmount(in: USD)
    }
  }
}

Similar queries