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

# Get Consensus

> Get consensus probability from aggregated agent trades.



## OpenAPI

````yaml GET /v1/markets/{platform}/{market_id}/consensus
openapi: 3.1.0
info:
  title: Rekko AI — Prediction Market Intelligence
  description: >-
    The brain for prediction market trading. Deep AI research, Bayesian causal
    decomposition, portfolio-aware strategy signals, cross-platform arbitrage,
    and execution guidance — all in one API. Covers Kalshi, Polymarket,
    Robinhood, and Coinbase. Clean flat JSON designed for developers and
    autonomous trading agents.
  contact:
    name: Rekko AI
    url: https://rekko.ai/
  license:
    name: Proprietary
  version: 1.0.0
servers:
  - url: https://api.rekko.ai
security: []
tags:
  - name: Markets
    description: Prediction market listings, history, resolution, and execution guidance
  - name: Insights
    description: AI-powered research insights with causal decomposition
  - name: Strategy
    description: >-
      Actionable trading signals with Kelly-derived position sizing and causal
      decomposition
  - name: Portfolio
    description: Portfolio-aware strategy, correlation analysis, and hedge recommendations
  - name: Arbitrage
    description: Cross-platform arbitrage detection (Kalshi vs Polymarket vs Robinhood)
  - name: Analytics
    description: Calibration metrics, sentiment, and performance tracking
  - name: Streaming
    description: Real-time SSE event stream and webhooks
  - name: Consensus
    description: Agent trade aggregation and crowd probability
paths:
  /v1/markets/{platform}/{market_id}/consensus:
    get:
      tags:
        - Consensus
      summary: Get consensus probability
      description: Get consensus probability from aggregated agent trades.
      operationId: /v1/markets/{platform}/{market_id}/consensus
      parameters:
        - name: platform
          in: path
          required: true
          schema:
            type: string
            examples:
              - kalshi
            title: Platform
        - name: market_id
          in: path
          required: true
          schema:
            type: string
            examples:
              - KXAGICO-COMP-28Q1
            title: Market Id
        - name: period
          in: query
          required: false
          schema:
            type: string
            description: 'Lookback: ''24h'', ''7d'', ''30d'''
            default: 7d
            title: Period
          description: 'Lookback: ''24h'', ''7d'', ''30d'''
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConsensusView'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ConsensusView:
      properties:
        market_id:
          type: string
          title: Market Id
          description: Market identifier
        platform:
          type: string
          title: Platform
          description: Platform
          default: kalshi
        consensus_probability:
          anyOf:
            - type: number
              maximum: 1
              minimum: 0
            - type: 'null'
          title: Consensus Probability
          description: Volume-weighted implied probability from agent trades
        sample_size:
          type: integer
          title: Sample Size
          description: Number of agent trades
          default: 0
        unique_agents:
          type: integer
          title: Unique Agents
          description: Distinct agents who traded
          default: 0
        rekko_probability:
          anyOf:
            - type: number
              maximum: 1
              minimum: 0
            - type: 'null'
          title: Rekko Probability
          description: Rekko's latest estimated probability
        divergence:
          anyOf:
            - type: number
            - type: 'null'
          title: Divergence
          description: consensus - rekko probability
        divergence_signal:
          type: string
          title: Divergence Signal
          description: >-
            'crowd_agrees', 'crowd_disagrees', 'strong_divergence', 'neutral',
            or 'insufficient_data'
          default: neutral
        yes_volume_usd:
          type: number
          minimum: 0
          title: Yes Volume Usd
          description: Total YES volume
          default: 0
        no_volume_usd:
          type: number
          minimum: 0
          title: No Volume Usd
          description: Total NO volume
          default: 0
        yes_trade_count:
          type: integer
          minimum: 0
          title: Yes Trade Count
          description: YES trade count
          default: 0
        no_trade_count:
          type: integer
          minimum: 0
          title: No Trade Count
          description: NO trade count
          default: 0
        period:
          type: string
          title: Period
          description: Lookback period
          default: 7d
        generated_at:
          type: string
          format: date-time
          title: Generated At
      type: object
      required:
        - market_id
      title: ConsensusView
      description: Aggregated consensus from agent trading activity.
      example:
        consensus_probability: 0.69
        divergence: -0.02
        divergence_signal: crowd_agrees
        generated_at: '2026-03-21T14:30:00Z'
        market_id: KXFED-26MAR19
        no_trade_count: 8
        no_volume_usd: 1450
        period: 7d
        platform: kalshi
        rekko_probability: 0.71
        sample_size: 23
        unique_agents: 8
        yes_trade_count: 15
        yes_volume_usd: 3200
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````