solana ohlc

Returns the latest 180 DEX trades by token on Solana, where currency mint address is 9SeCSd…pump: block time, sum of trade amount, sum of trade side amount in USD, trade price, price in USD, currency name, currency symbol and 2 more fields.

By gaurav · saved 14 April 2026 · run 3 times · Bitquery API v2

What it returns

Filters

The query

{
  Solana(dataset: archive) {
    DEXTradeByTokens(
      orderBy: {descendingByField: "Block_Timefield"}
      where: {Trade: {Currency: {MintAddress: {is: "9SeCSdbPzz95KomGUGEV9Shn2zGXNmMJhE9J72Hipump"}}}, Block: {Time: {since_relative: {months_ago: 6}}}}
      limit: {count: 180}
    ) {
      Block {
        Timefield: Time(interval: {in: minutes, count: 1})
      }
      volume: sum(of: Trade_Amount)
      volumeUSD: sum(of: Trade_Side_AmountInUSD, selectWhere: {gt: "0"})
      Trade {
        high: Price(maximum: Trade_Price)
        low: Price(minimum: Trade_Price)
        open: Price(minimum: Block_Slot)
        close: Price(maximum: Block_Slot)
        highUSD: PriceInUSD(maximum: Trade_PriceInUSD)
        lowUSD: PriceInUSD(minimum: Trade_PriceInUSD)
        openUSD: PriceInUSD(minimum: Block_Slot)
        closeUSD: PriceInUSD(maximum: Block_Slot)
        Currency {
          Name
          Symbol
          MintAddress
        }
      }
      count
    }
  }
}

Similar queries