token activity

Returns DEX trades by token on Solana, where currency mint address is Gmi1E5…pump: currency mint address, currency name, currency symbol, sum of trade side amount in USD, count, post balance, pre balance and 3 more fields.

By gaurav · saved 24 June 2025 · run 2 times · Bitquery API v2

What it returns

Filters

The query

{
  Solana {
    DEXTradeByTokens(
      where: {Trade: {Currency: {MintAddress: {in: ["Gmi1E5Y6ae5jEV1fTiMFmLtKVcMe9aRroV5MyChppump"]}}}, Transaction: {Result: {Success: true}}}
    ) {
      Trade {
        Currency {
          MintAddress
          Name
          Symbol
        }
      }
      buy_volume_5min: sum(
        of: Trade_Side_AmountInUSD
        if: {Trade: {Side: {Type: {is: buy}}}, Block: {Time: {after: "2025-06-24T15:00:31.843Z"}}}
      )
      sell_volume_5min: sum(
        of: Trade_Side_AmountInUSD
        if: {Trade: {Side: {Type: {is: sell}}}, Block: {Time: {after: "2025-06-24T15:00:31.843Z"}}}
      )
      buys_5min: count(
        if: {Trade: {Side: {Type: {is: buy}}}, Block: {Time: {after: "2025-06-24T15:00:31.843Z"}}}
      )
      sells_5min: count(
        if: {Trade: {Side: {Type: {is: sell}}}, Block: {Time: {after: "2025-06-24T15:00:31.843Z"}}}
      )
      buy_volume_1h: sum(
        of: Trade_Side_AmountInUSD
        if: {Trade: {Side: {Type: {is: buy}}}, Block: {Time: {after: "2025-06-24T14:00:31.843Z"}}}
      )
      sell_volume_1h: sum(
        of: Trade_Side_AmountInUSD
        if: {Trade: {Side: {Type: {is: sell}}}, Block: {Time: {after: "2025-06-24T14:00:31.843Z"}}}
      )
      buys_1h: count(
        if: {Trade: {Side: {Type: {is: buy}}}, Block: {Time: {after: "2025-06-24T14:00:31.843Z"}}}
      )
      sells_1h: count(
        if: {Trade: {Side: {Type: {is: sell}}}, Block: {Time: {after: "2025-06-24T14:00:31.843Z"}}}
      )
      traders_5min: count(
        distinct: Transaction_Signer
        if: {Block: {Time: {after: "2025-06-24T15:00:31.843Z"}}}
      )
      traders_1h: count(
        distinct: Transaction_Signer
        if: {Block: {Time: {after: "2025-06-24T14:00:31.843Z"}}}
      )
      joinTokenSupplyUpdates(
        TokenSupplyUpdate_Currency_MintAddress: Trade_Currency_MintAddress
      ) {
        TokenSupplyUpdate {
          PostBalance
          PreBalance
          Amount
          Currency {
            MintAddress
          }
        }
      }
      recentPriceUSD: average(
        of: Trade_PriceInUSD
        if: {Block: {Time: {after: "2025-06-24T15:00:31.843Z"}}}
      )
      recentPriceSOL: average(
        of: Trade_Price
        if: {Block: {Time: {after: "2025-06-24T15:00:31.843Z"}}}
      )
    }
  }
}

Similar queries