historical-ohlc-for-solana

Returns the latest 1440 DEX trades by token on Solana, where currency mint address is 2kDRXU…pump, block time since 2025-05-31 and trade price asymmetry is below 0.1: block time, sum of trade side amount in USD and price in USD.

By as · saved 31 May 2025 · run 6 times · Bitquery API v2

What it returns

Filters

The query

{
  Solana(dataset: combined) {
    DEXTradeByTokens(
      orderBy: {descendingByField: "Block_Timefield"}
      where: {
        Trade: {
          Currency: {MintAddress: {is: "2kDRXU257k1KTRBNarVSJv6ZxqaoJmViPdrRwKQipump"}}, 
          PriceAsymmetry: {lt: 0.1}
        },
        Block: {
          Time: {since: "2025-05-31 08:33:00"}
        }
      }
      limit: {count: 1440}
    ) {
      Block {
        Timefield: Time(interval: {in: minutes, count: 1})
      }
      volume: sum(of: Trade_Side_AmountInUSD)
      Trade {
        high: PriceInUSD(maximum: Trade_Price)
        low: PriceInUSD(minimum: Trade_Price)
        open: PriceInUSD(minimum: Block_Number)
        close: PriceInUSD(maximum: Block_Number)
      }
    }
  }
}

Similar queries