base dextrades for a particular token

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

By Akshat · saved 19 November 2024 · Bitquery API v2

What it returns

Filters

The subscription

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

Similar queries