OHLC for a token

123

Returns the latest DEX trade by token on Solana, where currency mint address is d4VnSV…pump, market market address is 9Zy2iw…TnhM and trade price asymmetry is below 0.1: block time, sum of trade amount, trade price and count.

By Rachya · saved 10 March 2026 · Bitquery API v2

What it returns

Filters

The query

{
  Solana {
    DEXTradeByTokens(
      limit: {count: 1}
      orderBy: {descendingByField: "Block_Timefield"}
      where: {Trade: {Currency: {MintAddress: {is: "d4VnSVqaUBf3dTxUqdeD4L2ix3rvsEcis4kNv3npump"}}, Market: {MarketAddress: {is: "9Zy2iwudKrbibWFrGX3xVcbYCQFby3fUaQQtiMQjTnhM"}}, 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)
      }
      count
    }
  }
}

Similar queries