v2- trades

Returns DEX trades, where transaction hash is 0xdcfa…12bf: block time, block number, trade index, protocol name, protocol version, protocol family, buy amount and 9 more fields.

By Akshat · saved 11 March 2025 · run 6 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined) {
    DEXTrades(
      where: {TransactionStatus: {Success: true}, Transaction: {Hash: {is: "0xdcfa8f5732dd98f78b0563d4b3b82ccf833109d86d378005a257587998c712bf"}}}
    ) {
      Block {
        Time
        Number
      }
      Trade {
        Index
        Dex {
          ProtocolName
          ProtocolVersion
          ProtocolFamily
        }
        Buy {
          Amount
          AmountInUSD
          Currency {
            Name
            Symbol
            SmartContract
          }
        }
        Sell {
          Amount
          AmountInUSD
          Currency {
            Name
            Symbol
            SmartContract
          }
        }
      }
    }
  }
}

Similar queries