eth_price

Returns DEX trades by token on Ethereum, where currency smart contract is 0xc02a…6cc2: price in USD.

By Omkar_BQ · saved 12 November 2024 · Bitquery API v2

What it returns

Filters

The query

{
  current_eth_price: EVM(dataset: realtime, network: eth) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {SmartContract: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}}}}
    ) {
      Trade {
        PriceInUSD(maximum: Block_Number)
      }
    }
  }
}

Similar queries