OHLC for a token _

Returns the latest 10 DEX trades by token on Solana, where currency mint address is 2zMMhc…uauv, market market address is C6ELog…FYYh and trade price asymmetry is below 0.1: block time, sum of trade amount, trade price, currency name and count.

By Omkar_BQ · saved 18 July 2025 · Bitquery API v2

What it returns

Filters

The query

{
  Solana {
    DEXTradeByTokens(
      limit: {count: 10}
      orderBy: {descendingByField: "Block_Timefield"}
      where: {Trade: {Currency: {MintAddress: {is: "2zMMhcVQEXDtdE6vsFS7S7D5oUodfJHE8vd1gnBouauv"}}, Market: {MarketAddress: {is: "C6ELogyx2aAd4FfMS9YcVQ284sPvD454hNaFGj7WFYYh"}}, PriceAsymmetry: {lt: 0.1}}}
    ) {
      Block {
        Timefield: Time(interval: {in: minutes, count: 1})
      }
      volume: sum(of: Trade_Amount)
      Trade {
        high: Price(maximum: Trade_Price)
        low: Price(minimum: Trade_Price)
        open: Price(minimum: Block_Slot)
        close: Price(maximum: Block_Slot)
        Currency {
          Name
        }
      }
      count
    }
  }
}

Similar queries