trade volume

dex pair trades

Returns the latest DEX trades on Ethereum, where exchange name is Uniswap, protocol is Uniswap v2 and date since 2022-02-14: buy currency symbol, buy currency address, sell currency symbol, sell currency address, count, trade amount, date date and 5 more fields.

By KingYo · saved 14 March 2022 · run 2 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      options: {desc: "date.date"}
      date: {since: "2022-02-14", till: "2022-03-14"}
      exchangeName: {is: "Uniswap"}
      protocol: {is: "Uniswap v2"}
    ) {
      buyCurrency(buyCurrency: {is: "0x111111111117dc0aa78b770fa6a738034120c302"}) {
        symbol
        address
      }
      sellCurrency {
        symbol
        address
      }
      trades: count
      tradeAmount(in: USD)
      date {
        date(format: "%Y-%m-%d")
      }
      exchange {
        fullName
        address {
          address
        }
      }
      protocol
      buyAmount(calculate: sum)
      sellAmount(calculate: sum)
    }
  }
}

Variables

{
  "from": "2021-01-14",
  "till": "2022-03-14",
  "dateFormat": "%Y-%m-%d"
}

Similar queries