multiswap test trade ruttansh

Returns DEX trades by token on Ethereum, where transaction hash is 0xd41c…f202: 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: "0xd41c562b8cfe834083823d195f0bb1d820b19071bf08b9408dfba1ab422df202"}}}
    ) {
      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