OHLC for a useless token volume 349

Returns the latest 10 DEX trades by token on Solana, where currency mint address is Dz9mQ9…bonk, side currency mint address is So1111…1112 and DEX program address is LBUZKh…Pwxo: block time, sum of trade amount in USD, trade price, currency name, currency mint address, side currency name, side currency mint address and count.

By Aleksey · saved 6 August 2025 · run 15 times · Bitquery API v2

What it returns

Filters

The query

{
  Solana {
    DEXTradeByTokens(
      limit: {count: 10}
      orderBy: {descendingByField: "Block_Timefield"}
      where: {Trade: {Currency: {MintAddress: {is: "Dz9mQ9NzkBcCsuGPFJ3r1bS4wgqKMHBPiVuniW8Mbonk"}}, 
        
        PriceAsymmetry: {lt: 0.1}, Side: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}, 
        
        Dex: {ProgramAddress: {is: "LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo"}}}, 
        Block: {Time: {since: "2025-08-05T10:00:00Z", till: "2025-08-05T10:59:59Z"}}, Transaction: {Result: {Success: true}}}
    ) {
      Block {
        Timefield: Time(interval: {in: minutes, count: 60})
      }
      volume: sum(of: Trade_AmountInUSD)
      Trade {
        high: Price(maximum: Trade_Price)
        low: Price(minimum: Trade_Price)
        open: Price(minimum: Block_Slot)
        close: Price(maximum: Block_Slot)
        Currency {
          Name
          MintAddress
        }
        Side {
          Currency {
            Name
            MintAddress
          }
        }
      }
      count
    }
  }
}

Similar queries