Subscription-for-Latest-Trades-for-AERO

Streams DEX trades by token on Base as they happen, where currency smart contract is 0x9401…8631 and trade amount in USD is above 0: block time, amount in USD, buyer, currency name, currency symbol, smart contract, price in USD and 7 more fields.

By Kshitij Mahajan · saved 10 July 2024 · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  EVM(network: base) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {SmartContract: {is: "0x940181a94A35A4569E4529A3CDfB74e38FD98631"}}, AmountInUSD: {gt: "0"}, Success: true}}
    ) {
      Block {
        Time
      }
      Trade {
        AmountInUSD
        Buyer
        Currency {
          Name
          Symbol
          SmartContract
        }
        PriceInUSD
        Seller
        Side {
          Currency {
            Name
            Symbol
            SmartContract
          }
        }
        Dex {
          ProtocolFamily
          ProtocolName
        }
      }
      Transaction {
        Hash
      }
    }
  }
}

Similar queries