Ras_Price

Returns the latest DEX trade on Ethereum, where buy currency smart contract is 0x19dd…c3ef and sell currency smart contract is 0xc02a…6cc2: buy buyer, buy decimals, buy smart contract, buy currency name, buy price, sell buyer, sell price and 3 more fields.

By Omkar Acharekar · saved 24 August 2023 · run 4 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      orderBy: {descending: Block_Number}
      limit: {count: 1}
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0x19dd1cc08a8bdb124a3f57a364f1d72b7a19c3ef"}}}, Sell: {Currency: {SmartContract: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}}}}}
    ) {
      Trade {
        Buy {
          Buyer
          Currency {
            Decimals
            SmartContract
            Name
          }
          Price
        }
        Sell {
          Buyer
          Price
          Seller
          Currency {
            SmartContract
            Name
          }
        }
      }
    }
  }
}

Similar queries