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

# Signal History

> Historical values for any of the 27 signals

<Note>
  To use the playground, enter your API key in the **X-API-Key** field above.
  Requires PRO tier key (\$199/mo). Contact [info@aioka.io](mailto:info@aioka.io) to upgrade.
</Note>

**Tier:** Pro (\$199/mo) 🔒
**Cache TTL:** 300 seconds

## Query Parameters

| Parameter    | Type    | Default   | Description                          |
| ------------ | ------- | --------- | ------------------------------------ |
| `signal_key` | string  | `BTC_RSI` | Signal key (e.g. `FEAR_GREED_INDEX`) |
| `page`       | integer | `1`       | Page number                          |
| `per_page`   | integer | `100`     | Results per page (max 500)           |

<RequestExample>
  ```bash curl theme={null}
  curl "https://api.aioka.io/v1/signals/history?signal_key=FEAR_GREED_INDEX&per_page=48" \
    -H "X-API-Key: aik_pro_your_key_here"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "items": [
      {
        "recorded_at": "2026-04-03T10:00:00Z",
        "signal_key": "FEAR_GREED_INDEX",
        "display_name": "Fear & Greed Index",
        "value": 38.0
      }
    ],
    "total": 720,
    "page": 1,
    "per_page": 48,
    "cached": false,
    "cache_ttl_seconds": 300
  }
  ```
</ResponseExample>


## OpenAPI

````yaml GET /v1/signals/history
openapi: 3.1.0
info:
  title: AIOKA Intelligence API
  description: |

    ## AI-powered crypto market intelligence

    AIOKA Intelligence API provides real-time access to our AI Council verdicts,
    market signals, regime detection, and Ghost Trader entry signals.

    ### Tiers
    - **Free**: 100 calls/day — Verdict + Regime
    - **Basic** ($49/mo): 1,000 calls/day — + Signals
    - **Pro** ($199/mo): 10,000 calls/day — + Council + Ghost

    ### Authentication
    Pass your API key in the `X-API-Key` header:

    ```
    X-API-Key: aik_free_xxxxxxxxxxxx
    ```

    ### Get your API key
    `POST /v1/keys/generate` (free tier, no credit card)
  contact:
    name: AIOKA Support
    url: https://docs.aioka.io/
    email: api@aioka.io
  license:
    name: Commercial
    url: https://aioka.io/terms
  version: 1.0.0
servers:
  - url: https://api.aioka.io
    description: Production — AIOKA Intelligence API
security: []
paths:
  /v1/signals/history:
    get:
      tags:
        - Signals
      summary: Signal History
      description: |-
        Returns historical signal values from the analytics store.

        **Tier:** Pro ($199/mo) 🔒
        **Cache TTL:** 300 seconds
        **Rate limit:** 10,000 calls/day, 100/minute
      operationId: get_signals_history_v1_signals_history_get
      parameters:
        - name: signal_key
          in: query
          required: false
          schema:
            type: string
            default: BTC_RSI
            title: Signal Key
        - name: page
          in: query
          required: false
          schema:
            type: integer
            default: 1
            title: Page
        - name: per_page
          in: query
          required: false
          schema:
            type: integer
            default: 100
            title: Per Page
      responses:
        '200':
          description: Signal history
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SignalsHistoryResponse'
        '401':
          description: Invalid or missing API key
        '403':
          description: Pro tier required
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: Rate limit exceeded
      security:
        - APIKeyHeader: []
components:
  schemas:
    SignalsHistoryResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/SignalsHistoryItem'
          type: array
          title: Items
        total:
          type: integer
          title: Total
        page:
          type: integer
          title: Page
        per_page:
          type: integer
          title: Per Page
        cached:
          type: boolean
          title: Cached
        cache_ttl_seconds:
          type: integer
          title: Cache Ttl Seconds
      type: object
      required:
        - items
        - total
        - page
        - per_page
        - cached
        - cache_ttl_seconds
      title: SignalsHistoryResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SignalsHistoryItem:
      properties:
        recorded_at:
          type: string
          format: date-time
          title: Recorded At
        signal_key:
          type: string
          title: Signal Key
        display_name:
          type: string
          title: Display Name
        value:
          anyOf:
            - type: number
            - type: 'null'
          title: Value
      type: object
      required:
        - recorded_at
        - signal_key
        - display_name
        - value
      title: SignalsHistoryItem
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      description: 'Your AIOKA Intelligence API key (format: aik_{tier}_{random})'
      in: header
      name: X-API-Key

````