duplicated ohlc

Returns the latest 10 DEX trades by token on Solana, where currency mint address is AS21eH…TASM, market market address is DTqpwW…cJX3 and block time till 2025-09-03: block time, sum of trade amount, trade price, protocol name, protocol family, program address, market address and 3 more fields.

By Divyasshree · saved 8 September 2025 · run 5 times · Bitquery API v2

What it returns

Filters

The query

{
  Solana {
    DEXTradeByTokens(
      limit: {count: 10}
      orderBy: {descendingByField: "Block_Timefield"}
      where: {Trade: {Currency: {MintAddress: {is: "AS21eH1r9Ynn6ugqtdmMmoD8L8y9k8kzddGLwtVTASM"}}, Market: {MarketAddress: {is: "DTqpwWJGPV61CEz4ATVUxRJNDPYa3KbfGatthHXZcJX3"}}, PriceAsymmetry: {lt: 0.1}}, Block: {Time: {till: "2025-09-03T20:00:00Z", since: "2025-09-03T19:00:00Z"}}}
    ) {
      Block {
        Timefield: Time(interval: {in: hours, 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)
        Dex {
          ProtocolName
          ProtocolFamily
          ProgramAddress
        }
        Market {
          MarketAddress
        }
        Currency {
          Name
          MintAddress
        }
      }
      count
    }
  }
}

Similar queries