> ## 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.

# Chain health summary statistics



## OpenAPI

````yaml openapi-spec/history.yaml get /api/sol/sentiment/summary
openapi: 3.0.3
info:
  title: Raze Database API
  description: >
    Paid subscription API for Solana transaction data and history.


    Also hosts write utilities (`/utils/sol/*`): token launch, transfer, burn,

    consolidate, fees claim/config, and agent initialize — previously on

    `router.raze.bot`. Mixer/distribute removed 2026-07-25.


    ## 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/sentiment/summary:
    get:
      summary: Chain health summary statistics
      operationId: getSentimentSummary
      parameters:
        - name: hours
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 168
            default: 24
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SentimentSummaryResponse'
        '404':
          description: No data available
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Database unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    SentimentSummaryResponse:
      type: object
      properties:
        success:
          type: boolean
        hours:
          type: integer
        hoursAnalyzed:
          type: integer
          description: Number of hourly data points analyzed
        statistics:
          type: object
          properties:
            average:
              type: number
            minimum:
              type: number
            maximum:
              type: number
            trend:
              type: string
              enum:
                - improving
                - stable
                - declining
              description: Trend direction based on recent vs older scores
        distribution:
          type: object
          properties:
            excellent:
              type: object
              properties:
                count:
                  type: integer
                percent:
                  type: integer
            good:
              type: object
              properties:
                count:
                  type: integer
                percent:
                  type: integer
            fair:
              type: object
              properties:
                count:
                  type: integer
                percent:
                  type: integer
            poor:
              type: object
              properties:
                count:
                  type: integer
                percent:
                  type: integer
        averageMetrics:
          type: object
          properties:
            deploys:
              type: integer
            migrations:
              type: integer
            trades:
              type: integer
            buys:
              type: integer
            volumeSol:
              type: integer
            proTrades:
              type: integer
            snipers:
              type: integer
            bundles:
              type: integer
            avgHoldingSeconds:
              type: integer
        periodStart:
          type: string
          format: date-time
        periodEnd:
          type: string
          format: date-time
        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

````