ohlc query

Returns DEX trades by token on Solana, where market market address is 7ccKzm…neVc and side amount in USD is above 10, sorted by block time: block time, quantile of trade price in USD, price in USD, currency mint address, currency name and currency symbol.

By gaurav · saved 17 July 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

{
  Solana(dataset: combined) {
    DEXTradeByTokens(
      orderBy: {ascendingByField: "Block_Time"}
      where: {Trade: {Market:{
        MarketAddress:{is:"7ccKzmrXBpFHwyZGPqPuKL6bEyWAETSnHwnWe3jEneVc"}
      }, Side: {AmountInUSD: {gt: "10"}}}}
      limitBy: {count: 10, by: Trade_Currency_MintAddress}
    ) {
      Block {
        Time(interval: {count: 1, in: minutes})
      }
      min: quantile(of: Trade_PriceInUSD, level: 0.05)
      max: quantile(of: Trade_PriceInUSD, level: 0.95)
      Trade {
        open: PriceInUSD(minimum: Block_Slot)
        close: PriceInUSD(maximum: Block_Slot)
        Currency {
          MintAddress
          Name
          Symbol
        }
      }
    }
  }
}

Similar queries