pumpfun api

Returns 200 DEX trades by token on Solana, where currency mint address is C6ZYdq…pump and side currency mint address is 111111…1111 or So1111…1112, sorted by block time: block time, quantile of trade price in USD, price in USD and sum of trade side amount in USD.

By gaurav · saved 26 June 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query TradingView($token: String, $dataset: dataset_arg_enum, $interval: Int) {
  Solana(dataset: $dataset) {
    DEXTradeByTokens(
      orderBy: {ascendingByField: "Block_Time"}
      where: {Trade: {Currency: {MintAddress: {is: $token}},
        Side: {Currency: {MintAddress: {in: 
          ["11111111111111111111111111111111", 
            "So11111111111111111111111111111111111111112"]}}}},
        Transaction: {Result: {Success: true}}}
      limit: {count: 200}
    ) {
      Block {
        Time(interval: {count: $interval, in: minutes})
      }
      min: quantile(of: Trade_PriceInUSD, level: 0.05)
      max: quantile(of: Trade_PriceInUSD, level: 0.95)
      close: Trade {
        PriceInUSD(maximum: Block_Slot)
      }
      open: Trade {
        PriceInUSD(minimum: Block_Slot)
      }
      volume: sum(of: Trade_Side_AmountInUSD)
    }
  }
}

Variables

{
  "network": "solana",
  "token": "C6ZYdqUFyUuEZJbm44gwS4yp2foJAeQb6WxYjA4Gpump",
  "usdc": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "usdt": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
  "wsol": "So11111111111111111111111111111111111111112",
  "dataset": "combined",
  "interval": 1
}

Similar queries