PANDORA trade 2

Returns DEX trades on Ethereum, where transaction hash is 0xa7af…77c3: buy buyer, buy amount, buy seller, buy price, buy currency name, protocol version, protocol name and 13 more fields.

By Kshitij Mahajan · saved 23 December 2024 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query lastTrades($network: evm_network) {
  EVM(network: $network, dataset: combined) {
    DEXTrades(
      where: {Transaction: {Hash: {is: "0xa7afb0629f6ee1cd93c7edfd35bbe4ffb6b0b861ed7d815ab468ae67a2b077c3"}}}
    ) {
      Trade {
        Buy {
          Buyer
          Amount
          Seller
          Price
          Currency {
            Name
          }
        }
        Dex {
          ProtocolVersion
          ProtocolName
          ProtocolFamily
          Pair {
            Symbol
          }
        }
        Sell {
          Buyer
          Price
          Seller
          Amount
          Currency {
            Name
            SmartContract
            ProtocolName
          }
        }
      }
      Block {
        Number
        Time
      }
      Transaction {
        From
        To
      }
    }
  }
}

Variables

{
  "network": "eth"
}

Similar queries