Price of a pump fun token

Price of a pump fun/swap token

Streams DEX trades by token on Solana as they happen, where DEX program address is pAMMBa…fXEA or 6EF8rr…wF6P and currency mint address is FCC9Hv…pump: block time, currency symbol, protocol name, trade price and price in USD.

By Ivan Papazov · saved 23 May 2025 · Bitquery API v2

What it returns

Filters

The subscription

subscription TokenPriceOnly {
  Solana {
    DEXTradeByTokens(
      where: {
        Trade: {
          Dex: {
            ProgramAddress: { 
              in: [
                "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA",  # PumpSwap
                "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"    # Pump.fun
              ]
            }
          }
          # REPLACE THIS with your token's mint address
          Currency: {
            MintAddress: { is: "FCC9HvaiasNQU7sW5FemAAaMKF945pybahmUuvP5pump" }
          }
        }
        Transaction: {
          Result: { Success: true }
        }
      }
    ) {
      Block {
        Time  # When the price was recorded
      }
      Trade {
        Currency {
          Symbol  # Token symbol
        }
        Dex {
          ProtocolName  # Shows whether it's PumpSwap or Pump.fun
        }
        Price       # Native price
        PriceInUSD  # USD price
      }
    }
  }
}

Similar queries