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

# Equity Curve

> Cumulative net P&L over time, derived from closed positions.

Only closed positions count — open positions have no realised PnL
yet. The frontend can compute drawdowns / Sharpe from this series.



## OpenAPI

````yaml get /v1/paper/strategies/{strategy_id}/equity
openapi: 3.1.0
info:
  title: PolyQuantLab API
  version: 0.1.0
  description: >-
    Sub-second Polymarket orderbook data, walk-the-book backtests, paper
    trading, and the live arb audit. Same endpoints the PolyQuantLab dashboard
    uses internally — Bearer-token auth, JSON-over-HTTPS, predictable
    pagination.
  contact:
    email: contact@polyquantlab.com
    url: https://polyquantlab.com/contact
  license:
    name: Proprietary
servers:
  - url: https://api.polyquantlab.com
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /v1/paper/strategies/{strategy_id}/equity:
    get:
      tags:
        - paper
      summary: Equity Curve
      description: |-
        Cumulative net P&L over time, derived from closed positions.

        Only closed positions count — open positions have no realised PnL
        yet. The frontend can compute drawdowns / Sharpe from this series.
      operationId: equity_curve_v1_paper_strategies__strategy_id__equity_get
      parameters:
        - name: strategy_id
          in: path
          required: true
          schema:
            type: string
            title: Strategy Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/EquityCurveVPaperStrategiesStrategyIdEquityGetResponse
              example:
                paper_strategy_id: ps_4821a0e0
                n_closed_positions: 18
                final_net_pnl: 4.21
                points:
                  - ts: '2026-06-04T12:15:00+00:00'
                    cumulative_pnl: 0.62
                  - ts: '2026-06-04T13:18:00+00:00'
                    cumulative_pnl: 1.81
                  - ts: '2026-06-05T08:42:00+00:00'
                    cumulative_pnl: 4.21
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    EquityCurveVPaperStrategiesStrategyIdEquityGetResponse:
      type: object
      properties:
        paper_strategy_id:
          type: string
        n_closed_positions:
          type: integer
          format: int64
        final_net_pnl:
          type: number
          format: double
        points:
          type: array
          items:
            type: object
            properties:
              ts:
                type: string
                format: date-time
              cumulative_pnl:
                type: number
                format: double
            required:
              - ts
              - cumulative_pnl
      required:
        - paper_strategy_id
        - n_closed_positions
        - final_net_pnl
        - points
    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
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key

````