TRX/USDT trade volume on Pancakswap v2

Returns DEX trades on Ethereum and BNB Chain, where buy currency is 0xce7d…12e3, sell currency is 0x55d3…7955 and exchange name is Pancake v2: sell currency symbol, sell currency address, sell amount, buy currency symbol, buy currency address, count, price and 2 more fields.

By Divyasshree N · saved 17 August 2023 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $exchange: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      date: {since: $from, till: $till}
      exchangeName: {is: $exchange}
      buyCurrency: {is: "0xce7de646e7208a4ef112cb6ed5038fa6cc6b12e3"}
      sellCurrency: {is: "0x55d398326f99059ff775485246999027b3197955"}
    ) {
      sellCurrency {
        symbol
        address
      }
      sellAmount
      sell_amount_usd: sellAmount(in: USD)
      buyCurrency {
        symbol
        address
      }
      count
      median_price: price(calculate: median)
      last_price: maximum(of: block, get: price)
      started: minimum(of: date)
    }
  }
}

Variables

{
  "network": "bsc",
  "exchange": "Pancake v2",
  "from": "2023-08-16",
  "till": "2023-08-17T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries