price change query

Returns 10 DEX trades by token on Solana, where DEX protocol name is pump, sorted by price change 5 min, highest first: currency name, currency symbol, currency mint address, price in USD, side currency name, side currency symbol, side currency mint address and 2 more fields.

By gaurav · saved 17 April 2026 · Bitquery API v2

What it returns

Filters

The query

{
  Solana {
    DEXTradeByTokens(
      limit: {count: 10}
      orderBy: {descendingByField: "Price_Change_5min"}
      where: {Trade: {Dex: {ProtocolName: {is: "pump"}}}, Transaction: {Result: {Success: true}}, Block: {Time: {since_relative: {minutes_ago: 5}}}}
    ) {
      Trade {
        Currency {
          Name
          Symbol
          MintAddress
        }
        Price_5min_ago: PriceInUSD(
          minimum: Block_Time
          if: {Block: {Time: {since_relative: {minutes_ago: 5}}}}
        )
        Price_1h_ago: PriceInUSD(
          minimum: Block_Time
          if: {Block: {Time: {since_relative: {hours_ago: 1}}}}
        )
        Price_6h_ago: PriceInUSD(
          minimum: Block_Time
          if: {Block: {Time: {since_relative: {hours_ago: 6}}}}
        )
        Price_24h_ago: PriceInUSD(
          minimum: Block_Time
          if: {Block: {Time: {since_relative: {hours_ago: 24}}}}
        )
        CurrentPrice: PriceInUSD(maximum: Block_Time)
        Side {
          Currency {
            Name
            Symbol
            MintAddress
          }
        }
        Market {
          MarketAddress
        }
      }
      Price_Change_5min: calculate(
        expression: "(($Trade_CurrentPrice - $Trade_Price_5min_ago) / $Trade_Price_5min_ago) * 100"
      )
      Price_Change_1h: calculate(
        expression: "(($Trade_CurrentPrice - $Trade_Price_1h_ago) / $Trade_Price_1h_ago) * 100"
      )
      Price_Change_6h: calculate(
        expression: "(($Trade_CurrentPrice - $Trade_Price_6h_ago) / $Trade_Price_6h_ago) * 100"
      )
      Price_Change_24h: calculate(
        expression: "(($Trade_CurrentPrice - $Trade_Price_24h_ago) / $Trade_Price_24h_ago) * 100"
      )
    }
  }
}

Similar queries