ETH/DAI demo

ETH/DAI demo MATH 446 Group 7

Returns DEX trades on Ethereum, where quote currency is 0x6b17…1d0f, base currency is ETH and date since 2021-09-20: day, base currency symbol, transaction hash, gas, gas price, gas value, to address and 5 more fields.

By Yingqinw1999 · saved 9 November 2021 · run 6 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      baseCurrency: {is: "ETH"}
      quoteCurrency: {is: "0x6b175474e89094c44da98b954eedeac495271d0f"}
      date: {since: "2021-09-20", till: "2021-10-01"}
    ) {
      timeInterval {
        day
      }
      baseCurrency {
        symbol
      }
      transaction {
        hash
        gas
        gasPrice
        gasValue
        to {
          address
        }
        txFrom {
          address
        }
      }
      baseAmount
      quoteCurrency {
        symbol
      }
      quoteAmount
      quotePrice
    }
  }
}

Variables

{
  "interval": 5,
  "baseAddress": "ETH",
  "quoteAddress": "0x6b175474e89094c44da98b954eedeac495271d0f"
}

Similar queries