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

# Daily PnL

> Settled PnL per calendar day in your time zone: a PnL calendar. Each market lands on the local date it was decided. Over the whole life the days add up to the board's realized PnL. Days with no change are left out.



## OpenAPI

````yaml /openapi.json get /v1/wallets/{wallet}/daily
openapi: 3.1.0
info:
  title: Codex API
  version: 1.0.0
  description: >-
    Nomos's Polymarket index, rebuilt from Polygon: holders, positions, PnL,
    trades, leaderboards and live fills.
servers:
  - url: https://codex-api.nomos.trade
security:
  - bearerAuth: []
tags:
  - name: Markets
  - name: Wallets
  - name: Leaderboard
  - name: Events
  - name: Fills
  - name: Crypto Strikes
  - name: Health
paths:
  /v1/wallets/{wallet}/daily:
    get:
      tags:
        - Wallets
      summary: Daily PnL
      description: >-
        Settled PnL per calendar day in your time zone: a PnL calendar. Each
        market lands on the local date it was decided. Over the whole life the
        days add up to the board's realized PnL. Days with no change are left
        out.
      operationId: wallet-daily
      parameters:
        - name: wallet
          in: path
          required: true
          description: 'The wallet: 0x and 40 hex.'
          schema:
            type: string
            pattern: ^0x[0-9a-fA-F]{40}$
          example: '0x1f0ebc543b2d411f66947041625c0aa1ce61cf79'
        - name: tz
          in: query
          required: false
          description: An IANA time zone.
          schema:
            type: string
            default: UTC
          example: America/New_York
        - name: period
          in: query
          required: false
          description: >-
            A rolling window ending now, or the lifetime. Or give `from` and
            `to` instead.
          schema:
            type: string
            enum:
              - all
              - 1d
              - 7d
              - 30d
              - 90d
              - 1y
            default: all
          example: 30d
        - name: from
          in: query
          required: false
          description: A custom window's start, unix seconds.
          schema:
            type: integer
        - name: to
          in: query
          required: false
          description: Its end, unix seconds, exclusive. Now when left out.
          schema:
            type: integer
      responses:
        '200':
          description: 'OK. Gzipped when you send `Accept-Encoding: gzip`.'
          headers:
            x-ratelimit-limit:
              description: Your rate, requests a minute.
              schema:
                type: integer
            x-ratelimit-remaining:
              description: Requests left in your bucket.
              schema:
                type: integer
          content:
            application/json:
              schema:
                type: object
                properties:
                  block:
                    type:
                      - integer
                      - 'null'
                    description: The leaderboard rollup's block.
                  asOf:
                    type:
                      - integer
                      - 'null'
                    description: When the rollup ran. Unix seconds.
                  wallet:
                    type: string
                    description: ''
                  tz:
                    type: string
                    description: As given.
                  days:
                    type: array
                    items:
                      type: object
                      properties:
                        date:
                          type: string
                          description: YYYY-MM-DD in tz.
                        pnl:
                          type: number
                          description: USD.
              example:
                block: 94812300
                asOf: 1790862180
                wallet: '0x1f0ebc543b2d411f66947041625c0aa1ce61cf79'
                tz: America/New_York
                days:
                  - date: '2026-09-02'
                    pnl: 4120.5
                  - date: '2026-09-03'
                    pnl: -880.2
        '400':
          description: A parameter is malformed or out of range
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                e0:
                  summary: >-
                    tz must be an IANA time zone name, like America/New_York, or
                    UTC
                  value:
                    error: >-
                      tz must be an IANA time zone name, like America/New_York,
                      or UTC
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: What went wrong, for a person to read.
      description: Every error answer.
  responses:
    Unauthorized:
      description: No key, or an unknown or revoked one.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: unknown or revoked API key
    RateLimited:
      description: >-
        Over your rate, or more than 4 requests (2 streams) at once. Wait
        `Retry-After` seconds.
      headers:
        retry-after:
          description: Seconds to wait.
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: 'rate limit: 600 requests a minute; retry in 1 s'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your API key: `codex_` and 48 hex characters.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.