pumpfun-trades-sol-token

Returns DEX trades by token on Solana, where currency mint address is 8MXBgS…pump, block time after 2025-01-07 and trade amount is above 0, sorted by block time: block time, quantile of trade price in USD, median of trade price in USD and sum of trade side amount in USD.

By Robert McEwen · saved 6 February 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query pumpFunTradesSolToken($token: String, $dataset: dataset_arg_enum, $interval: Int, $time_ago: DateTime) {
  Solana(dataset: $dataset) {
    DEXTradeByTokens(
      orderBy: {ascendingByField: "Block_Time"}
      where: {Trade: {Amount: {gt: "0"}, Currency: {MintAddress: {is: $token}}}, Transaction: {Result: {Success: true}}, Block: {Time: {after: $time_ago}}}
    ) {
      Block {
        Time(interval: {count: $interval, in: minutes})
      }
      min: quantile(of: Trade_PriceInUSD, level: 0.05)
      max: quantile(of: Trade_PriceInUSD, level: 0.95)
      close: median(of: Trade_PriceInUSD)
      open: median(of: Trade_PriceInUSD)
      volume: sum(of: Trade_Side_AmountInUSD)
    }
  }
}

Variables

{
  "token": "8MXBgSbXc1jTNnAxPc6C6LssXB3dF5D7BYZMAVRVpump",
  "time_ago": "2025-01-07T23:22:01Z",
  "interval": 5,
  "dataset": "combined"
}

Similar queries