Sun Pump Latest Token Trades

Returns the latest 50 DEX trades by token on Tron, where currency smart contract is TFwxcG…SLQh, DEX protocol name is sun_pump_v1 and trade price is above 0: block time, buyer, seller, trade price, trade amount, side amount in USD and side amount.

By Srdjan Stankovic · saved 18 September 2024 · Bitquery API v2

What it returns

Filters

The query

query SunPumpTokenLatestTrades($token: String) {
  Tron {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      limit: {count: 50}
      where: {Trade: {Dex: {ProtocolName: {is: "sun_pump_v1"}}, Currency: {SmartContract: {is: $token}}, Price: {gt: 0}}, Transaction: {Result: {Success: true}}}
    ) {
      Block {
        allTime: Time
      }
      Trade {
   			Buyer
        Seller
        Price
        Amount
        Side {
          AmountInUSD
          Amount
        }
      }
    }
  }
}

Variables

{
  "token": "TFwxcGAmNfSvgjfzkAGd2AVvTz647tSLQh"
}

Similar queries