solana_token_price_history_query

the price history of tokens on solana chain

Returns DEX trades by token on Solana, where currency mint address is ED5WSy…pump, side currency mint address is So1111…1112 and block time since 2025-03-11: block time, trade price, sum of trade amount and count.

By garn · saved 13 March 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query SolanaTokenPriceHistory($token: String!, $start_time: DateTime!, $end_time: DateTime!) {
  Solana {
    DEXTradeByTokens(
      where: {Block: {Time: {since: $start_time, till: $end_time}}, Trade: {Currency: {MintAddress: {is: $token}}, Side: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}}, Transaction: {Result: {Success: true}}}
    ) {
      Block {
        Timefield: Time(interval: {in: minutes, count: 10})
      }
      Trade {
        price: Price(maximum: Block_Slot)
      }
      volume: sum(of: Trade_Amount)
      count
    }
  }
}

Variables

{
  "token": "ED5WSyxE77GXfSqSAEGK6qdGmxCUstShZ28HkfyGpump",
  "start_time": "2025-03-11T06:24:00Z",
  "end_time": "2025-03-14T00:00:00Z"
}

Similar queries