volume in 5 min and 1 hour

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

By Akshat · saved 29 January 2025 · run 11 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery($timestamp_1H_ago: DateTime, $timestamp_5min_ago: DateTime) {
  Solana {
    DEXTradeByTokens(
      where: {
        Trade: {
          Currency: {
            MintAddress: { is: "BbwPz3GVK5RtS1XPR228nH84jeLWbt8h3jE5zm6kpump" }
          }
          Dex: { ProtocolName: { is: "pump" } }
        }
        Block: { Time: { since: $timestamp_1H_ago } }
      }
    ) {
      Trade {
        Currency {
          Name
          Symbol
          MintAddress
        }
        Dex {
          ProtocolName
          ProtocolFamily
        }
      }
      TradeVolume_100min: sum(of: Trade_Side_AmountInUSD)
      TradeVolume_5min: sum(of: Trade_Side_AmountInUSD if:{Block:{Time:{since:$timestamp_5min_ago}}})
    }
  }
}

Variables

{
  "timestamp_1H_ago":"2025-01-29T05:55:00Z",
  "timestamp_5min_ago":"2025-01-29T06:50:00Z"
}

Similar queries