buy_txn_txn_from_limit_by

Returns the latest DEX trades on Ethereum, where buy currency smart contract is 0x88e8…f808 and transaction from is 0x8d3D…51F1: buy amount, buy buyer, buy seller, buy price, buy currency name, buy currency symbol, transaction hash and from.

By Omkar_BQ · saved 21 October 2023 · run 21 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(network: eth, dataset: combined) {
    DEXTrades(
      orderBy: {descending: Block_Number}
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0x88e8e2675f1c68a1df2927e31523bb3ed320f808"}}}}, Transaction: {From: {in: ["0x8d3D6458a80669Eb74726B2EB23B9169083a51F1"]}}}
      limitBy: {by: Transaction_Hash, count: 1}
    ) {
      Trade {
        Buy {
          Amount
          Buyer
          Seller
          Price
          Currency {
            Name
            Symbol
          }
        }
      }
      Transaction {
        Hash
        From
      }
    }
  }
}

Similar queries