Ethereum_price__

Returns the latest DEX trade by token on Ethereum, where currency smart contract is 0xdAC1…1ec7 and side currency smart contract is 0xC02a…6Cc2: trade price.

By Omkar_BQ · saved 4 March 2024 · run 62 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: realtime, network: eth) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {SmartContract: {is: "0xdAC17F958D2ee523a2206206994597C13D831ec7"}}, Side: {Currency: {SmartContract: {is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}}}}}
      orderBy: {descending: Block_Number}
      limit: {count: 1}
    ) {
      Trade {
        Price
      }
    }
  }
}

Similar queries