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

# Weekly aggregated chain health



## OpenAPI

````yaml openapi-spec/history.yaml get /api/sol/sentiment/weekly
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/weekly:
    get:
      summary: Weekly aggregated chain health
      operationId: getSentimentWeekly
      parameters:
        - name: periods
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 12
            default: 4
          description: Number of weekly periods to return
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/SentimentPeriod'
                  periods:
                    type: integer
        '404':
          description: No chain health data available
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Database unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    SentimentPeriod:
      type: object
      description: One aggregated chain-health period (12h / daily / weekly).
      properties:
        periodStart:
          type: string
          format: date-time
        periodEnd:
          type: string
          format: date-time
        hoursIncluded:
          type: integer
          description: Number of hourly data points that fell inside this period.
        score:
          type: object
          properties:
            average:
              type: number
            min:
              type: number
            max:
              type: number
        totals:
          type: object
          properties:
            deploys:
              type: integer
            migrations:
              type: integer
            trades:
              type: integer
            buys:
              type: integer
            volumeSol:
              type: number
            proTrades:
              type: integer
            snipers:
              type: integer
            bundles:
              type: integer
        averages:
          type: object
          properties:
            deploysPerHour:
              type: number
            tradesPerHour:
              type: number
            volumeSolPerHour:
              type: number
            avgHoldingSeconds:
              type: number
        componentScores:
          type: object
          properties:
            deployCount:
              type: number
            migrationBonus:
              type: number
            volume:
              type: number
            tradeCount:
              type: number
            buyCount:
              type: number
            proTradeRatio:
              type: number
            sniperRatio:
              type: number
            bundleRatio:
              type: number
            holdingTime:
              type: number
    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

````