ohlc_quantile

Returns DEX trades by token on Solana, where currency mint address is Ag2jcw…pump, block time since 2025-04-22 and block time till 2025-04-22, 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 Omkar_BQ · saved 22 April 2025 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query pumpFunTradesSolToken($token: String, $dataset: dataset_arg_enum, $interval: Int, $from: DateTime, $to: DateTime) {
  Solana(dataset: $dataset, aggregates: no) {
    DEXTradeByTokens(
      orderBy: {ascendingByField: "Block_Time"}
      where: {Trade: {Amount: {gt: "0"}, Currency: {MintAddress: {is: $token}}}, Transaction: {Result: {Success: true}}, Block: {Time: {since: $from, till: $to}}}
    ) {
      Block {
        Time(interval: {count: $interval, in: seconds})
      }
      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": "Ag2jcwBsQ9HAedDgqiJZDLdEizpN5TxJK8EhR7jDpump",
  "time_ago": "2025-04-22T05:07:14Z",
  "interval": 1,
  "dataset": "realtime",
  "from": "2025-04-22T07:08:17.000Z",
  "to": "2025-04-22T10:08:17.000Z"
}

Similar queries