track realtime dex trades of a token on arbitrum

Streams DEX trades by token on Arbitrum as they happen, where currency smart contract is 0xFa7F…F7f0: block time, trade amount, amount in USD, buyer, currency name, currency symbol, smart contract and 14 more fields.

By Akshat · saved 13 December 2024 · Bitquery API v2

What it returns

Filters

The subscription

subscription MyQuery {
  EVM(network: arbitrum) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {SmartContract: {is: "0xFa7F8980b0f1E64A2062791cc3b0871572f1F7f0"}}}}
    ) {
      Block {
        Time
      }
      Trade {
        Amount
        AmountInUSD
        Buyer
        Currency {
          Name
          Symbol
          SmartContract
        }
        Dex {
          ProtocolName
          ProtocolFamily
          SmartContract
        }
        Price
        PriceInUSD
        Seller
        Side {
          Currency {
            SmartContract
            Symbol
            Name
          }
          Buyer
          AmountInUSD
          Amount
          Seller
        }
      }
      Transaction {
        From
        Hash
      }
    }
  }
}

Similar queries