token_price_by_token_addres

Returns the latest 2 DEX trades on Ethereum, where buy currency smart contract is 0x6982…1933 or 0x2a6c…ccef: buy price, buy seller, buy currency name, buy smart contract, buy currency symbol, sell price, sell buyer and 5 more fields.

By Omkar_BQ · saved 8 August 2023 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      where: {Trade: {Buy: {Currency: {SmartContract: {in: ["0x6982508145454ce325ddbe47a25d4ec3d2311933", "0x2a6cb837201da143df0a448cb862ab23b941ccef"]}}}}}
      limit: {count: 2}
      limitBy: {by: Trade_Buy_Currency_SmartContract, count: 1}
      orderBy: {descending: Block_Number}
    ) {
      Trade {
        Buy {
          Price
          Seller
          Currency {
            Name
            SmartContract
            Symbol
          }
        }
        Sell {
          Price
          Buyer
          Currency {
            Name
            SmartContract
            Symbol
          }
        }
      }
      Block {
        Number
      }
      Transaction {
        Hash
      }
    }
  }
}

Similar queries