Volume prior

Returns DEX trades by token on Solana, where currency mint address is DTJ4vy…pump, DEX protocol name is pump and block time since 2025-05-03: currency name, currency symbol, currency mint address, protocol name, protocol family, sum of trade amount and sum of trade side amount in USD.

By Julian · saved 3 June 2025 · run 5 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana {
    DEXTradeByTokens(
      where: {
        Trade: {
          Currency: {
            MintAddress: {
              is: "DTJ4vyxgUvEyYyL2WZ6sYTpv7jdResvATJZNGZoFpump"  # Replace with your actual token address
            }
          }
          Dex: {
            ProtocolName: {
              is: "pump"
            }
          }
        }
        Block: {
          Time: {
            since: "2025-05-03T00:00:00Z"  # Adjust to an appropriate past date
          }
        }
        Transaction: {
          Result: {
            Success: true
          }
        }
      }
    ) {
      Trade {
        Currency {
          Name
          Symbol
          MintAddress
        }
        Dex {
          ProtocolName
          ProtocolFamily
        }
      }
      TradeVolume: sum(of: Trade_Amount)
      TradeVolumeUSD: sum(of: Trade_Side_AmountInUSD)
    }
  }
}

Similar queries