Coinpaprika 1

Returns DEX trades on Ethereum, where buy currency is 0xc02a…6cc2 and date since 2023-05-22, sorted by trade amount, highest first: trade amount, count, quote amount, buy amount, sell amount, date date, buy currency name and 3 more fields.

By Divyasshree N · saved 23 May 2023 · Bitquery API v1

What it returns

Filters

The query

{
  buySellData: ethereum {
    dexTrades(
      options: {limitBy: {each: "buyCurrency.address,sellCurrency.address", limit: 1}, desc: "tradeAmount"}
      buyCurrency:{is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
      date: {since: "2023-05-22"}
    ) {
      tradeAmount(in: USD, calculate: sum)
      trades: count
      txs: count(uniq: txs)
      volume: quoteAmount(in: USD)
      buyAmount: buyAmount(in: USD)
      sellAmount: sellAmount(in: USD)
      date {
        date
      }
      buyCurrency {
        name
        address
      }
      sellCurrency {
        name
        address
      }
    }
  }
}

Similar queries