Get realtime mempool trades of a specific token

Streams DEX trades by token on Tron as they happen, where currency smart contract is TN7DUv…48vj and DEX protocol family is SunPump: block time, trade amount, amount in USD, buyer, smart contract, currency name, currency symbol and 13 more fields.

By Akshat · saved 23 September 2024 · Bitquery API v2

What it returns

Filters

The subscription

subscription MyQuery {
  Tron(mempool: true) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {SmartContract: {is: "TN7DUvYaAf9RfZiYjup7KvvC9bJDRH48vj"}}, Dex: {ProtocolFamily: {is: "SunPump"}}}}
    ) {
      Block {
        Time
      }
      Trade {
        Amount
        AmountInUSD
        Buyer
        Currency {
          SmartContract
          Name
          Symbol
        }
        Dex {
          ProtocolName
          ProtocolFamily
          SmartContract
        }
        Price
        PriceInUSD
        Seller
        Side {
          Amount
          AmountInUSD
          Buyer
          Seller
          Currency {
            SmartContract
            Symbol
            Name
          }
        }
      }
      Transaction {
        Hash
      }
    }
  }
}

Similar queries