MOG/WETH ATH in USD

Returns one DEX trade on Ethereum, where buy currency is 0xaaee…1c7a, sell currency is 0xC02a…6Cc2 and trade amount USD is above 1, sorted by price, highest first: transaction hash, buy currency name, buy currency symbol, sell currency name, sell currency symbol, buy amount, sell amount and expression.

By Anthony Gregis · saved 17 June 2024 · run 15 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum {
    dexTrades(
      buyCurrency: {is: "0xaaee1a9723aadb7afa2810263653a34ba2c21c7a"}
      sellCurrency: {is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}
      tradeAmountUsd: {gt: 1}
      priceAsymmetry: {lt: 0.2}
      options: {limit: 1, desc: "price"}
    ) {
      transaction {
        hash
      }
      buyCurrency {
        name
        symbol
      }
      sellCurrency {
        name
        symbol
      }
      buyAmount
      sellAmount
      price: expression(get: "sellAmount/buyAmount")
      buyAmountInUSD: buyAmount(in: USD)
      sellAmountInUSD: sellAmount(in: USD)
      priceINUSD: expression(get: "buyAmountInUSD/buyAmount")
    }
  }
}

Similar queries