test trade ruttansh

Returns DEX trades by token on Ethereum, where transaction hash is 0x60e1…0c59: block time, protocol family, amount in USD, price in USD, trade amount, side type, side currency symbol and 7 more fields.

By Divyasshree · saved 18 November 2024 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query lastTrades($network: evm_network) {
  EVM(network: $network, dataset: realtime) {
    DEXTradeByTokens(
      where: {Transaction: {Hash: {is: "0x60e1891c70cff345d4f2774b8b6e732cfc1e06576d8fdf4d3c01825aa6db0c59"}}}
    ) {
      Block {
        Time
      }
      Trade {
        Dex {
          ProtocolFamily
        }
        AmountInUSD
        PriceInUSD
        Amount
        Side {
          Type
          Currency {
            Symbol
            SmartContract
            Name
          }
          AmountInUSD
          Amount
        }
        Currency {
          Symbol
          SmartContract
          Name
        }
      }
    }
  }
}

Variables

{
  "network": "eth"
}

Similar queries