ohlc for letsbonk.fun token

Historical data This query uses the realtime dataset (the default), which holds only a recent window - hours to days depending on the cube. For older data add a dataset to the top-level element: Solana(dataset: combined) archive full history combined archive + realtime in one result Archive and c

By gaurav · saved 8 July 2025 · run 7 times · Bitquery API v2

What it returns

Filters

The query

# Historical data
#   This query uses the realtime dataset (the default), which holds only a
#   recent window - hours to days depending on the cube.
#
#   For older data add a dataset to the top-level element:
#
#     Solana(dataset: combined)
#
#     archive   full history
#     combined  archive + realtime in one result
#
#   Archive and combined need the historical data add-on:
#   https://bitquery.io/pricing
#
# Datasets:  https://docs.bitquery.io/docs/graphql/dataset/archive/
# Retention: https://docs.bitquery.io/docs/graphql/data-coverage-retention/
#

query MyQuery {
  Solana {
    DEXTradeByTokens(
      where: {Trade: {Dex: {ProtocolName: {is: "raydium_launchpad"}}, Currency: {MintAddress: {is: "6dCG3QhvCrJ2rJPY41s8UjTVFTWhyEnFJkDSkmBrbonk"}}, Side: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}}, Transaction: {Result: {Success: true}}}
      limit: {count: 100}
      orderBy: {descendingByField: "Block_Timefield"}
    ){
      Block{
        Timefield: Time(interval:{count:1 in:minutes})
      }
      Trade{
        open: Price(minimum:Block_Slot)
        high: Price(maximum:Trade_Price)
        low: Price(minimum:Trade_Price)
        close: Price(maximum:Block_Slot)
      }
      volumeInUSD: sum(of:Trade_Side_AmountInUSD)
      count
    }
  }
}

Similar queries