Eth_USD_Price

Returns the latest DEX trade on Ethereum, where buy currency smart contract is 0xdAC1…1ec7, sell currency smart contract is 0xC02a…6Cc2 and block time till 2023-11-24: sell currency symbol, sell currency name, sell price and block time.

By Omkar_BQ · saved 24 November 2023 · run 9 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(network: eth, dataset: combined) {
    DEXTrades(
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0xdAC17F958D2ee523a2206206994597C13D831ec7"}}}, Sell: {Currency: {SmartContract: {is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}}}}, Block: {Time: {till: "2023-11-24T07:31:00Z"}}}
      orderBy: {descending: Block_Number}
      limit: {count: 1}
    ) {
      Trade {
        Sell {
          Currency {
            Symbol
            Name
          }
          Price
        }
      }
      Block {
        Time
      }
    }
  }
}

Similar queries