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

# Get PNL

> Get Polymarket PNL history for a Polygon wallet.



## OpenAPI

````yaml /openapi.json get /api/v1/wallet/pol/{wallet_id}/pnl
openapi: 3.1.0
info:
  title: Synthesis API
  version: 1.0.0
  description: Unified prediction market API for Polymarket and Kalshi.
servers:
  - url: https://synthesis.trade
security: []
tags:
  - name: Projects
    description: Create and manage project accounts, sessions, and account API keys.
  - name: Accounts
    description: >-
      Authenticate and manage account-level sessions, account API keys, and
      public account preferences.
  - name: Markets
    description: Unified market discovery and analytics across Polymarket and Kalshi.
  - name: Polymarket
    description: Polymarket market data, prices, orderbooks, trades, and holders endpoints.
  - name: Kalshi
    description: Kalshi market data, events, history, leaderboard, and profile endpoints.
  - name: Wallets
    description: Wallet management routes. Each wallet supports multiple chains.
  - name: Polygon
    description: >-
      Polygon wallet routes for balances, orders, minting, redemption,
      withdrawals, and swaps.
  - name: Polygon Copytrades
    description: Polymarket copytrade configuration and management for Polygon wallets.
  - name: Solana
    description: >-
      Solana wallet routes used for Kalshi balances, KYC, orders, redemption,
      and withdrawals.
  - name: News
    description: News endpoints with market and event matching.
  - name: WebSockets
    description: >-
      Real-time streaming endpoints for orderbooks, trades, balances, and live
      data feeds.
paths:
  /api/v1/wallet/pol/{wallet_id}/pnl:
    get:
      tags:
        - Polygon
      summary: Get PNL
      description: Get Polymarket PNL history for a Polygon wallet.
      operationId: get-polygon-pnl
      parameters:
        - name: wallet_id
          in: path
          required: true
          schema:
            type: string
        - name: interval
          in: query
          required: false
          description: 'PNL interval. Supported values: `1d`, `1w`, `1m`, `3m`, `1y`, `all`.'
          schema:
            type: string
            default: 1m
            example: 1w
      responses:
        '200':
          description: Polygon PNL
          content:
            application/json:
              example:
                success: true
                response:
                  - ts: 1735689600
                    realized: '0'
                    unrealized: '0'
                    total: '0'
      security:
        - AccountApiKey: []
        - AccountSession: []
components:
  securitySchemes:
    AccountApiKey:
      type: apiKey
      in: header
      name: X-API-KEY
      description: Account secret API key.
    AccountSession:
      type: http
      scheme: bearer
      description: Account session token.

````