token_price

Returns the latest 2 DEX trades on Ethereum, where smart contract address is 0xa43f…ec9f or 0xf8bc…845e: quote price, block height, base currency name, base currency symbol, base currency address, quote currency name, quote currency symbol and 2 more fields.

By Omkar_BQ · saved 8 August 2023 · Bitquery API v1

What it returns

Filters

The query

query MyQuery {
  ethereum(network: ethereum) {
    dexTrades(
      smartContractAddress: {in: ["0xa43fe16908251ee70ef74718545e4fe6c5ccec9f", "0xf8bc9d75f76fde3a8e3c1695e7d306b1a79c845e"]}
      options: {limit: 2, desc: "block.height", limitBy: {each: "smartContract.address.address", limit: 1}}
    ) {
      quotePrice
      block {
        height
      }
      baseCurrency {
        name
        symbol
        address
      }
      quoteCurrency {
        name
        symbol
        address
      }
      smartContract {
        address {
          address
        }
      }
    }
  }
}

Similar queries