token_price

Returns the latest 2 DEX trades on Ethereum, where pair smart contract is 0xa43f…ec9f or 0xf8bc…845e: buy price, buy seller, buy currency name, buy currency symbol, sell price, sell buyer, sell currency name and 3 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(
      limitBy: {by: Trade_Dex_Pair_SmartContract, count: 1}
      limit: {count: 2}
      orderBy: {descending: Block_Number}
      where: {Trade: {Dex: {Pair: {SmartContract: {in: ["0xa43fe16908251ee70ef74718545e4fe6c5ccec9f", "0xf8bc9d75f76fde3a8e3c1695e7d306b1a79c845e"]}}}}}
    ) {
      Trade {
        Buy {
          Price
          Seller
          Currency {
            Name
            Symbol
          }
        }
        Sell {
          Price
          Buyer
          Currency {
            Name
            Symbol
          }
        }
      }
      Block {
        Number
      }
      Transaction {
        Hash
      }
    }
  }
}

Similar queries