price of LYST/WETH

crypto currency on eth20 based

Returns one DEX trade on Ethereum, where base currency is 0x7ccb…1fd8 and quote currency is 0xc02a…6cc2, sorted by block height transaction index, highest first: block height, timestamp time, transaction index, base currency symbol, quote currency symbol and quote price.

By Sabl · saved 30 April 2022 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      baseCurrency: {is: "0x7ccb2b7d0e8455b6be9c39417e5fe855aa831fd8"}
      quoteCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
      options: {desc: ["block.height", "transaction.index"], limit: 1}
    ) {
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      transaction {
        index
      }
      baseCurrency {
        symbol
      }
      quoteCurrency {
        symbol
      }
      quotePrice
    }
  }
}

Similar queries