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

# Get PnL Chart

> Hybrid PnL: realised series + current total snapshot



## OpenAPI

````yaml GET /portfolio/pnl-chart
openapi: 3.0.0
info:
  title: Limitless Exchange API
  description: >-
    Production-ready REST API for prediction market trading, portfolio
    management, and market data on Limitless Exchange (Base L2).
  version: '1.0'
  contact:
    name: API Support
    url: https://limitless.exchange
    email: help@limitless.network
servers:
  - url: https://api.limitless.exchange
    description: Production API
security: []
tags:
  - name: Authentication
    description: User authentication and session management
  - name: Markets
    description: Browse, search, and analyze prediction markets
  - name: Market Navigation
    description: Navigation tree, market pages, and property filters
  - name: Trading
    description: Create, manage, and cancel orders
  - name: Portfolio
    description: Position tracking, trade history, and performance
  - name: API Tokens
    description: Scoped API token management for partner integrations
  - name: Partner Accounts
    description: Sub-account creation and allowance recovery for partner integrations
  - name: System
    description: Public API state and availability information
paths:
  /portfolio/pnl-chart:
    get:
      tags:
        - Portfolio
      summary: Get portfolio PnL chart
      description: 'Hybrid PnL: realised series + current total snapshot'
      operationId: PortfolioController_getPnlChart
      parameters:
        - name: timeframe
          required: false
          in: query
          description: Timeframe window for percent change and chart series
          schema:
            example: 7d
            type: string
      responses:
        '200':
          description: PnL chart data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PortfolioPnlChartDto'
        '401':
          description: Unauthorized
      security:
        - HmacAuth: []
components:
  schemas:
    PortfolioPnlChartDto:
      type: object
      properties:
        timeframe:
          type: string
          description: Timeframe window used for previous/current comparison
          example: 7d
        data:
          description: Realised PnL series (USD) for the selected timeframe
          type: array
          items:
            $ref: '#/components/schemas/PortfolioPnlChartPointDto'
        currentValue:
          type: number
          description: Current realised PnL (USD)
          example: -7.04
        previousValue:
          type: number
          description: Previous realised PnL (USD) at timeframe start
          example: -6.5
        percentChange:
          type: number
          description: Percent change between previousValue and currentValue (realised PnL)
          example: 8.24
        current:
          type: object
          description: 'Current PnL snapshot (hybrid: realised + unrealized + total)'
          nullable: true
      required:
        - timeframe
        - data
        - currentValue
        - previousValue
        - percentChange
    PortfolioPnlChartPointDto:
      type: object
      properties:
        timestamp:
          type: number
          description: Point timestamp (ms)
          example: 1700000000000
        value:
          type: number
          description: Series value in USD (realised PnL)
          example: 123.45
      required:
        - timestamp
        - value
  securitySchemes:
    HmacAuth:
      type: apiKey
      in: header
      name: lmts-api-key
      description: >-
        Scoped API token with HMAC-SHA256 signing. Requires three headers:
        lmts-api-key (token ID), lmts-timestamp (ISO-8601), lmts-signature
        (Base64-encoded HMAC). See Authentication docs for details.

````