1h volume,price, makers, sells,buys stats

Returns DEX trades by token on Solana, where currency mint address is tokenAddress1 or tokenAddress2 and DEX protocol name is not jupiter or dex_solana_v3: currency name, currency mint address, currency symbol, price in USD, trade price, protocol name, protocol family and 8 more fields.

By Akshat · saved 17 March 2026 · Bitquery API v2

What it returns

Filters

The query

query PoolTokenStatsSolana($tokens: [String!]) {
  Solana(dataset: realtime) {
    DEXTradeByTokens(
      where: {
        Transaction: { Result: { Success: true } }
        Trade: {
          Currency: { MintAddress: { in: $tokens } }
          Dex: { ProtocolName: { notIn: ["jupiter", "dex_solana_v3"] } }
        }
        Block: { Time: { since_relative: { hours_ago: 1 } } }
      }
    ) {
      Trade {
        Currency {
          Name
          MintAddress
          Symbol
        }
        usd_price_1h: PriceInUSD(minimum: Block_Time)
        current_usd_Price: PriceInUSD(maximum: Block_Time)
        price_1h: Price(minimum: Block_Time)
        current_Price: Price(maximum: Block_Time)
        Dex {
          ProtocolName
          ProtocolFamily
          ProgramAddress
        }
        Market {
          MarketAddress
        }
        Side {
          Currency {
            Symbol
            Name
            MintAddress
          }
        }
      }
      price_change_1h: calculate(
        expression: "( ( $Trade_current_Price - $Trade_price_1h ) / $Trade_price_1h ) * 100"
      )
      makers_1h: count(distinct: Transaction_Signer)
      buyers_1h: count(
        distinct: Transaction_Signer
        if: { Trade: { Side: { Type: { is: buy } } } }
      )
      sellers_1h: count(
        distinct: Transaction_Signer
        if: { Trade: { Side: { Type: { is: sell } } } }
      )
      trades_1h: count
      traded_volume_1h: sum(of: Trade_Side_AmountInUSD)
      buy_volume_1h: sum(
        of: Trade_Side_AmountInUSD
        if: { Trade: { Side: { Type: { is: buy } } } }
      )
      sell_volume_1h: sum(
        of: Trade_Side_AmountInUSD
        if: { Trade: { Side: { Type: { is: sell } } } }
      )
      buys_1h: count(if: { Trade: { Side: { Type: { is: buy } } } })
      sells_1h: count(if: { Trade: { Side: { Type: { is: sell } } } })
    }
  }
}

Variables

{
  "tokens": ["tokenAddress1", "tokenAddress2"]
}

Similar queries