hourly price of pump fun token

Returns 1000 DEX trades by token on Solana, where side currency mint address is So1111…1112 and block time after 2024-08-04, sorted by block time: currency name, currency symbol, currency mint address, price in USD, side currency name, side currency mint address, sum of trade side amount in USD and block time.

By gaurav · saved 19 February 2025 · run 9 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery($time_ago: DateTime, $resolution: OLAP_DateTimeIntervalUnits, $space: Int) {
  Solana(dataset: realtime) {
    DEXTradeByTokens(
      limit: {count: 1000}
      orderBy: {ascendingByField: "Block_Time"}
      limitBy: {by: Trade_Currency_MintAddress, count: 1}
      where: {Block: {Time: {after: $time_ago}}, Trade: {Side: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}}}
    ) {
      Trade {
        Currency {
          Name
          Symbol
          MintAddress
        }
        high: PriceInUSD(maximum: Trade_PriceInUSD)
        low: PriceInUSD(minimum: Trade_PriceInUSD)
        open: PriceInUSD(minimum: Block_Slot)
        close: PriceInUSD(maximum: Block_Slot)
        price: PriceInUSD(maximum: Trade_PriceInUSD)
        Side {
          Currency {
            Name
            MintAddress
          }
        }
      }
      volume: sum(of: Trade_Side_AmountInUSD)
      Block {
        Time(interval: {count: $space, in: $resolution})
      }
    }
  }
}

Variables

{
  "token": "Cwa6QNeNP2Qh7zR34hdzJdgtDDmaD2Y96m7c9HBdpump",
  "time_ago": "2024-08-04T00:00:00.000Z",
  "space": 1,
  "resolution": "hours"
}

Similar queries