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

# Performance History

> Daily P&L time series for equity curve charting.



## OpenAPI

````yaml GET /v1/performance/history
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/performance/history:
    get:
      tags:
        - Analytics
      summary: Equity curve history
      description: Daily P&L time series for equity curve charting.
      operationId: /v1/performance/history
      parameters:
        - name: mode
          in: query
          required: false
          schema:
            type: string
            description: 'Trading mode: ''shadow'' or ''live'''
            default: shadow
            title: Mode
          description: 'Trading mode: ''shadow'' or ''live'''
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PerformanceSummary'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PerformanceSummary:
      properties:
        mode:
          type: string
          title: Mode
          description: 'Trading mode: ''shadow'' or ''live'''
        total_trades:
          type: integer
          minimum: 0
          title: Total Trades
          description: Total trades executed
        resolved_trades:
          type: integer
          minimum: 0
          title: Resolved Trades
          description: Trades with known outcomes
        win_rate:
          type: number
          maximum: 1
          minimum: 0
          title: Win Rate
          description: Win rate on resolved trades
        total_pnl:
          type: number
          title: Total Pnl
          description: Total P&L in USD
        roi_pct:
          type: number
          title: Roi Pct
          description: Return on investment percentage
        avg_edge:
          type: number
          title: Avg Edge
          description: Average edge on trades
        max_drawdown:
          type: number
          title: Max Drawdown
          description: Maximum drawdown in USD
        sharpe_ratio:
          anyOf:
            - type: number
            - type: 'null'
          title: Sharpe Ratio
          description: Annualized Sharpe ratio
        daily_history:
          anyOf:
            - items:
                $ref: '#/components/schemas/PerformanceDay'
              type: array
            - type: 'null'
          title: Daily History
          description: Daily P&L time series (only on /performance/history)
        generated_at:
          type: string
          format: date-time
          title: Generated At
          description: When this summary was generated
      type: object
      required:
        - mode
        - total_trades
        - resolved_trades
        - win_rate
        - total_pnl
        - roi_pct
        - avg_edge
        - max_drawdown
      title: PerformanceSummary
      description: Track record summary from shadow or live trading.
      example:
        avg_edge: 0.065
        generated_at: '2026-03-21T15:00:00Z'
        max_drawdown: -145
        mode: shadow
        resolved_trades: 112
        roi_pct: 8.9
        sharpe_ratio: 1.82
        total_pnl: 892.5
        total_trades: 156
        win_rate: 0.68
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PerformanceDay:
      properties:
        date:
          type: string
          title: Date
          description: Date in YYYY-MM-DD format
        pnl:
          type: number
          title: Pnl
          description: Daily P&L in USD
        cumulative_pnl:
          type: number
          title: Cumulative Pnl
          description: Cumulative P&L in USD
        trades:
          type: integer
          minimum: 0
          title: Trades
          description: Number of trades that day
        win_rate:
          type: number
          maximum: 1
          minimum: 0
          title: Win Rate
          description: Win rate for the day
      type: object
      required:
        - date
        - pnl
        - cumulative_pnl
        - trades
        - win_rate
      title: PerformanceDay
      description: Daily P&L entry for equity curve charting.
      example:
        cumulative_pnl: 892.5
        date: '2026-03-20'
        pnl: 42.5
        trades: 3
        win_rate: 0.667
    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

````