> ## Documentation Index
> Fetch the complete documentation index at: https://docs.raze.bot/llms.txt
> Use this file to discover all available pages before exploring further.

# Token price changes at standard intervals

> Get token price changes at 5m, 1h, 4h, 12h, and 24h intervals. Optimized endpoint that fetches only 6 data points instead of aggregating thousands.



## OpenAPI

````yaml openapi-spec/history.yaml get /api/sol/tokens/price-changes/{tokenMint}
openapi: 3.0.3
info:
  title: Raze Database API
  description: >
    Paid subscription API for Solana transaction data and history.


    ## Batch Requests

    All endpoints with path parameters (mint, signer, address, tokenMint,
    ownerAddress) support batch queries

    via comma-separated values. For example:
    `/api/sol/trades/mint/mint1,mint2,mint3?limit=50`


    - Maximum 10 values per batch request

    - Each value must be a valid address (>= 32 characters)

    - Single values behave identically to non-batch requests

    - Batch response format: `{ "success": true, "results": { "value1": {...},
    "value2": {...} }, "count": N, "timestamp": "..." }`

    - Each key in `results` contains the full single-entity response

    - Queries run in parallel for maximum performance
  version: 1.0.0
servers:
  - url: https://api.raze.bot
    description: >-
      Raze global History API — GeoDNS routes to the nearest region
      automatically
security:
  - ApiKeyAuth: []
paths:
  /api/sol/tokens/price-changes/{tokenMint}:
    get:
      summary: Token price changes at standard intervals
      description: >-
        Get token price changes at 5m, 1h, 4h, 12h, and 24h intervals. Optimized
        endpoint that fetches only 6 data points instead of aggregating
        thousands.
      operationId: getTokenPriceChanges
      parameters:
        - name: tokenMint
          in: path
          required: true
          schema:
            type: string
          example: Fyx78ew4wRY26gPj5CkTyuZ4kvW7CkPff5Jm2vNspump
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenPriceChangesResponse'
        '400':
          description: Invalid token mint address
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: No price data available for this token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Database error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    TokenPriceChangesResponse:
      type: object
      properties:
        success:
          type: boolean
        mint:
          type: string
        currentPrice:
          type: number
        currentPriceUSD:
          type: string
          nullable: true
        oldestPrice:
          type: number
          description: The oldest known price for this token
        oldestTime:
          type: string
          format: date-time
          description: Timestamp of the oldest known price data point
        tokenAgeSeconds:
          type: integer
          description: Age of the token in seconds (from oldest data point to now)
        changes:
          type: object
          properties:
            5m:
              type: object
              properties:
                change:
                  type: number
                  nullable: true
                price:
                  type: number
                volume:
                  type: number
                  description: SOL volume in this interval
                trades:
                  type: integer
                  description: Trade count in this interval
            1h:
              type: object
              properties:
                change:
                  type: number
                  nullable: true
                price:
                  type: number
                volume:
                  type: number
                trades:
                  type: integer
            4h:
              type: object
              properties:
                change:
                  type: number
                  nullable: true
                price:
                  type: number
                volume:
                  type: number
                trades:
                  type: integer
            12h:
              type: object
              properties:
                change:
                  type: number
                  nullable: true
                price:
                  type: number
                volume:
                  type: number
                trades:
                  type: integer
            24h:
              type: object
              properties:
                change:
                  type: number
                  nullable: true
                price:
                  type: number
                volume:
                  type: number
                trades:
                  type: integer
        solPriceUSD:
          type: number
        timestamp:
          type: string
          format: date-time
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        code:
          type: string
        success:
          type: boolean
      example:
        error: Unauthorized
        message: Invalid API key
        code: INVALID_KEY
        success: false
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: query
      name: apiKey

````