test trade ruttansh dextrades

Returns DEX trades on Ethereum, where transaction hash is 0x60e1…0c59: buy buyer, buy amount, buy seller, buy price, buy currency name, protocol version, protocol name and 11 more fields.

By Divyasshree · saved 21 November 2024 · Bitquery API v2

What it returns

Filters

The query

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

Variables

{
  "network": "eth"
}

Similar queries