24 hour trade volume for a pair

Returns one DEX trade on Ethereum and BNB Chain, where base currency is 0xbb4c…095c, quote currency is 0xe9e7…7d56 and exchange name is Pancake or Pancake v2: base currency symbol, base currency address, trade amount, base amount, quote currency symbol, quote currency address, transaction hash and 3 more fields.

By gaurav · saved 12 May 2021 · run 1 time · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {limit: 1}
      time: {since: "2021-05-05T00:00:00", before: "2021-05-06T00:00:00"}
      exchangeName: {in: ["Pancake","Pancake v2"]}
      baseCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
      quoteCurrency: {is: "0xe9e7cea3dedca5984780bafc599bd69add087d56"}
    ) {
      baseCurrency {
        symbol
        address
      }
      tradeAmount(in: USD)
      baseAmount
      quoteCurrency {
        symbol
        address
      }
      transaction{
        hash
      }
      quoteAmount
      trades: count
      median_price: quotePrice(calculate: median)
      }
  }
}

Similar queries