0x_usdc_weth

Returns DEX trades on Ethereum, where buy currency is 0xa0b8…eb48 or 0xc02a…6cc2, sell currency is 0xa0b8…eb48 or 0xc02a…6cc2 and exchange name is Zerox Exchange: buy currency address, buy currency symbol, buy currency name, sell currency address, sell currency symbol, sell currency name, address address and 4 more fields.

By zmn.wtr · saved 19 March 2021 · Bitquery API v1

What it returns

Filters

The query

query {
  ethereum(network: ethereum) {
    dexTrades(
      options: {}
      exchangeName: { is: "Zerox Exchange" }
      date: { since: "2021-03-18" }
      time: { since: "2021-03-18T10:00:00" }
      buyCurrency: {in: ["0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"]}
      sellCurrency: {in: ["0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"]}
    ) {
      buyCurrency {
        address
        symbol
        name
      }

      sellCurrency {
        address
        symbol
        name
      }

      smartContract {
        address {
          address
        }
      }
      sellAmount
      buyAmount

      closePrice: maximum(of: block, get: price)
      time: maximum(of: block, get: time)
      trades: count
    }
  }
}

Similar queries