Coinpaprika 3 Matic

Returns DEX trades on Ethereum and Polygon, where buy currency is 0x7ceb…f619, sell currency is 0x2791…4174 and time since 2023-05-22, sorted by trade amount, highest first: trade amount, count, quote amount, buy amount, sell amount, buy currency name, buy currency address and 2 more fields.

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

What it returns

Filters

The query

{
  buySellData: ethereum(network: matic) {
    dexTrades(
      options: {limitBy: {each: "buyCurrency.address,sellCurrency.address", limit: 1}, desc: "tradeAmount"}
      buyCurrency: {is: "0x7ceb23fd6bc0add59e62ac25578270cff1b9f619"}
      sellCurrency: {is: "0x2791bca1f2de4661ed88a30c99a7a9449aa84174"}
      time: {since: "2023-05-22T10:25:00", till: "2023-05-23T10:25:00"}
    ) {
      tradeAmount(in: USD, calculate: sum)
      trades: count
      txs: count(uniq: txs)
      volume: quoteAmount(in: USD)
      buyAmountUSD: buyAmount(in: USD)
      sellAmountUSD: sellAmount(in: USD)
      buyCurrency {
        name
        address
      }
      sellCurrency {
        name
        address
      }
    }
  }
}

Similar queries