token volume

Returns DEX trades on Ethereum and BNB Chain, where base currency is 0x0e09…ce82, quote currency is 0xbb4c…095c and exchange address is 0xca14…0c73: trade amount and quote amount.

By Isha · saved 8 April 2022 · run 27 times · Bitquery API v1

What it returns

Filters

The query

query GetDailyVolumeValue($network: EthereumNetwork!, $quoteAddress: String!, $baseAddress: String!) {
  ethereum(network: $network) {
    volume: dexTrades(
      baseCurrency: {is: $baseAddress}
      quoteCurrency: {is: $quoteAddress}
      date: {since: "2022-04-18T00:00:00.000Z", till: "2022-04-20T00:00:00.000Z"}
      exchangeAddress: {is: "0xca143ce32fe78f1f7019d7d551a6402fc5350c73"}
    ) {
      volume: tradeAmount(calculate: sum , in: USD)
      quoteAmount(calculate: sum, in: USD)
    }
  }
}

Variables

{
  "network": "bsc",
  "baseAddress":"0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82",
  "quoteAddress":"0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"
}

Similar queries