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

# Adaptive Signal Weights

> Per-signal, per-regime adaptive multipliers learned from recent Ghost Trader outcomes

<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

## What this returns

AIOKA applies a **learned multiplier** to every raw signal before the AI
council and Judiciary Engine combine them into a verdict. This endpoint
exposes those multipliers so Pro-tier clients can audit exactly how each
signal is being weighted in the current market regime.

Multipliers are updated every 6 hours from the outcomes of the most recent
closed Ghost Trader trades. A multiplier above 1.0 means AIOKA currently
amplifies that signal; below 1.0 means it is damped.

## Safeguards

Every returned multiplier has passed the following guarantees at write time:

* **Range**: clamped to `[0.30, 2.00]` — no signal is fully suppressed and none is tripled.
* **Data floor**: when `data_points < 10` the stored multiplier falls back to `1.0`.
* **Gradual adjustment**: no multiplier shifts by more than 20% per update cycle.
* **Regime isolation**: every row is keyed on `(signal_key, regime)` — weights never bleed between regimes.

## Query parameters

| Parameter | Required | Description                                                                    |
| --------- | -------- | ------------------------------------------------------------------------------ |
| `regime`  | optional | Filter to a single regime (e.g. `BULL_TRENDING`). Omit to return every regime. |

<RequestExample>
  ```bash curl theme={null}
  curl 'https://api.aioka.io/v1/signals/weights?regime=BULL_TRENDING' \
    -H "X-API-Key: aik_pro_your_key_here"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "regime": "BULL_TRENDING",
    "weights": [
      {
        "signal_key": "BTC_RSI",
        "regime": "BULL_TRENDING",
        "multiplier": 1.32,
        "accuracy": 0.68,
        "data_points": 22,
        "last_updated": "2026-04-23T10:00:00Z"
      },
      {
        "signal_key": "WHALE_FLOW",
        "regime": "BULL_TRENDING",
        "multiplier": 0.81,
        "accuracy": 0.41,
        "data_points": 18,
        "last_updated": "2026-04-23T10:00:00Z"
      }
    ],
    "avg_accuracy": 0.545,
    "window_size": 22,
    "last_updated": "2026-04-23T10:00:00Z",
    "cached": false,
    "cache_ttl_seconds": 300
  }
  ```
</ResponseExample>


## OpenAPI

````yaml GET /v1/signals/weights
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/weights:
    get:
      tags:
        - Signals
      summary: Adaptive Signal Weights
      description: >-
        Returns the current per-signal, per-regime adaptive weight multipliers
        that

        AIOKA applies to the raw signal feed before the verdict is computed.


        Multipliers are learned from the outcomes of recent closed Ghost Trader

        trades. A multiplier above 1.0 means AIOKA currently amplifies that
        signal

        in the active market regime; a multiplier below 1.0 means it is damped.


        Safeguards (always enforced):

        - `multiplier` is clamped to `[0.3, 2.0]`

        - Multipliers with `data_points < 10` fall back to `1.0` (base)

        - Weights never shift more than 20% per update cycle

        - Weights are isolated per regime (no bleed between regimes)


        **Tier:** Pro ($199/mo) 🔒

        **Cache TTL:** 300 seconds

        **Rate limit:** Pro tier limits
      operationId: get_signals_weights_v1_signals_weights_get
      parameters:
        - name: regime
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Regime
      responses:
        '200':
          description: Adaptive weights snapshot for the requested regime
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SignalsWeightsResponse'
        '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:
    SignalsWeightsResponse:
      properties:
        regime:
          type: string
          title: Regime
        weights:
          items:
            $ref: '#/components/schemas/SignalWeightItem'
          type: array
          title: Weights
        avg_accuracy:
          anyOf:
            - type: number
            - type: 'null'
          title: Avg Accuracy
        window_size:
          type: integer
          title: Window Size
        last_updated:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Updated
        cached:
          type: boolean
          title: Cached
        cache_ttl_seconds:
          type: integer
          title: Cache Ttl Seconds
      type: object
      required:
        - regime
        - weights
        - window_size
        - cached
        - cache_ttl_seconds
      title: SignalsWeightsResponse
      description: |-
        Response for GET /v1/signals/weights (Pro tier).

        Exposes the adaptive multiplier AIOKA applies per signal and regime so
        Pro-tier clients can audit exactly how each signal is weighted in the
        current market regime.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SignalWeightItem:
      properties:
        signal_key:
          type: string
          title: Signal Key
        regime:
          type: string
          title: Regime
        multiplier:
          type: number
          title: Multiplier
        accuracy:
          anyOf:
            - type: number
            - type: 'null'
          title: Accuracy
        data_points:
          type: integer
          title: Data Points
          default: 0
        last_updated:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Updated
      type: object
      required:
        - signal_key
        - regime
        - multiplier
      title: SignalWeightItem
      description: Single (signal_key, regime) multiplier row from the adaptive engine.
    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

````