First test

Returns 100 DEX trades by token on Solana, where currency mint address is HiNkp9…pump, side currency mint address is So1111…1112 and trade amount is above 0, sorted by block time: block time, quantile of trade price, median of trade price, sum of trade side amount, currency name, currency symbol, side currency name and side currency symbol.

By Alex Ledan · saved 4 February 2026 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query TradesSolToken($ca: String!, $currencies: [String!], $dataset: dataset_arg_enum, $interval: Int) {
  Solana(dataset: $dataset) {
    DEXTradeByTokens(
      limit: {count: 100}
      orderBy: {ascendingByField: "Block_Time"}
      where: {
        Trade: {
          Amount: {gt: "0"}
          Currency: {MintAddress: {is: $ca}}
          Side: {Currency: {MintAddress: {in: $currencies}}}
          PriceAsymmetry: {lt: 0.1}
        }
        Transaction: {Result: {Success: true}}
      }
    ) {
      Block {
        Time(interval: {count: $interval, in: minutes})
      }
      min: quantile(of: Trade_Price, level: 0.05)
      max: quantile(of: Trade_Price, level: 0.95)
      close: median(of: Trade_Price)
      open: median(of: Trade_Price)
      volume: sum(of: Trade_Side_Amount)
      Trade {
        Currency {
          Name
          Symbol
        }
        Side {
          Currency {
            Name
            Symbol
          }
        }
      }
    }
  }
}

Variables

{
  "interval": 15,
  "dataset": "combined", 
  "ca": "HiNkp9CdKqTgPtB6WnnrrUAu9YwQqnrvT6Ceuxoypump",
  "currencies": ["So11111111111111111111111111111111111111112"]
}

Similar queries