ohlc query for tx chart limited

Returns the latest 10000 DEX trades by token on Solana, where currency mint address is EPjFWd…Dt1v, pumpCm…9Dfn or 2 more and side currency mint address is So1111…1112, EPjFWd…Dt1v or 2 more: block time, sum of trade amount, trade price and count.

By Divyasshree · saved 17 July 2025 · Bitquery API v2

What it returns

Filters

The query

{
  Solana {
    DEXTradeByTokens(
      limit: {count: 10000}
      orderBy: {descendingByField: "Block_Timefield"}
      where: {Trade: {Currency: {MintAddress: {in: ["EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "pumpCmXqMfrsAkQ5r49WcJnRayYRqmXz6ae8H7H9Dfn", "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN", "9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump"]}}, Side: {Currency: {MintAddress: {in: ["So11111111111111111111111111111111111111112", "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN", "9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump"]}}}}}
      limitBy: {by: Trade_Currency_MintAddress, count: 360}
    ) {
      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