filter_failed_txn

latest trades for a token - both buy and sell

Returns the latest DEX trades on Ethereum, where pair smart contract is 0xde82…f105 and DEX protocol name is uniswap_v2 or uniswap_v3: protocol name, buy currency name, buy smart contract, buy amount, buy price, sell currency name, sell smart contract and 7 more fields.

By Omkar_BQ · saved 25 January 2024 · Bitquery API v2

What it returns

Filters

The query

{
  EVM(network: eth, dataset: combined) {
    DEXTrades(
      where: {Trade: {Dex: {ProtocolName: {in: ["uniswap_v2", "uniswap_v3"]}, Pair: {SmartContract: {is: "0xde824e9f7d4728fadf93f25c6bdd7537b67df105"}}}}, TransactionStatus: {Success: true}}
      orderBy: {descending: Block_Number, descendingByField: "Transaction_Index"}
    ) {
      Trade {
        Dex {
          ProtocolName
        }
        Buy {
          Currency {
            Name
            SmartContract
          }
          Amount
          Price
        }
        Sell {
          Currency {
            Name
            SmartContract
          }
          Amount
          Price
        }
      }
      Transaction {
        Hash
        From
        Index
      }
      Block {
        Number
        Time
      }
    }
  }
}

Similar queries