OHLC for mint since time

Returns the latest 24 DEX trades by token on Solana, where trade price asymmetry is below 0.1: block time, trade price and currency mint address.

By Tony · saved 2 October 2025 · Bitquery API v2

What it returns

Filters

The query

query MyQuery($token: String, $time_since: DateTime) {
  Solana(dataset: combined) {
    DEXTradeByTokens(
      orderBy: {descendingByField: "Block_Timefield"}
      where: {Trade: {PriceAsymmetry: {lt: 0.1}, Currency: {MintAddress: {is: $token}}}, Block: {Time: {after: $time_since}}}
      limit: {count: 24}
    ) {
      Block {
        Timefield: Time(interval: {in: hours, count: 1})
      }
      Trade {
        high: Price(maximum: Trade_Price)
        low: Price(minimum: Trade_Price)
        open: Price(minimum: Block_Slot)
        close: Price(maximum: Block_Slot)
        Currency {
          MintAddress
        }
      }
    }
  }
}

Variables

{
  "token": "G2hHtJDa9cZc3m9w7vHJkUSz3y9LaUjTbexQP1uppump",
  "time_since": "2025-10-01T00:00:00.000Z",
}

Similar queries