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

# Get reward earnings today

> Read today’s earnings across connected venues, or filter by venue. Polymarket reports live pool shares and a projected total for its UTC day. Polymarket US reports paid and pending rewards for its America/New_York day, with pmus:<slug> tickers, zero share and pace, and estimated earnings equal to earned USD. Each venue reports its own status. Requires read scope. Test keys return zero earnings.



## OpenAPI

````yaml api-reference/openapi.json GET /rewards/earnings
openapi: 3.0.0
info:
  title: Lean API
  version: 0.1.0
  description: >-
    Programmatic access to Lean: canonical sports markets, quotes, orders,
    positions and balances.
servers:
  - url: '{baseUrl}/v1'
    description: Lean API
    variables:
      baseUrl:
        default: https://api.lean.xyz
        description: >-
          The Lean API base URL, without /v1. Same value as LEAN_API_URL in the
          guides.
security:
  - apiKey: []
paths:
  /rewards/earnings:
    get:
      tags:
        - Rewards
      summary: Get reward earnings today
      description: >-
        Read today’s earnings across connected venues, or filter by venue.
        Polymarket reports live pool shares and a projected total for its UTC
        day. Polymarket US reports paid and pending rewards for its
        America/New_York day, with pmus:<slug> tickers, zero share and pace, and
        estimated earnings equal to earned USD. Each venue reports its own
        status. Requires read scope. Test keys return zero earnings.
      operationId: getRewardEarnings
      parameters:
        - schema:
            type: string
            enum:
              - polymarket
              - polymarket_us
          required: false
          name: venue
          in: query
      responses:
        '200':
          description: Reward earnings today
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      success:
                        type: boolean
                        enum:
                          - true
                      data:
                        type: object
                        properties:
                          epoch_date:
                            type: string
                            pattern: ^\d{4}-\d{2}-\d{2}$
                            description: >-
                              UTC date of the response. Polymarket uses a UTC
                              reward day and Polymarket US uses
                              America/New_York.
                          earned_usd:
                            type: string
                            pattern: ^\d+(?:\.\d+)?$
                            description: >-
                              Total earned during each ok venue’s current reward
                              day.
                          estimated_today_usd:
                            type: string
                            pattern: ^\d+(?:\.\d+)?$
                            description: >-
                              Polymarket projects earnings through the end of
                              its UTC day at current shares. Polymarket US
                              contributes its earned_usd.
                          pace_usd_per_day:
                            type: string
                            pattern: ^\d+(?:\.\d+)?$
                            description: >-
                              Daily earning pace at current Polymarket pool
                              shares. Polymarket US contributes 0.
                          venues:
                            type: array
                            items:
                              type: object
                              properties:
                                venue:
                                  type: string
                                  enum:
                                    - polymarket
                                    - polymarket_us
                                status:
                                  type: string
                                  enum:
                                    - ok
                                    - not_connected
                                    - unavailable
                                  description: >-
                                    `ok`: read live from the venue.
                                    `not_connected`: the trading account has no
                                    account on the venue. `unavailable`: the
                                    venue could not be read just now; try again
                                    shortly.
                                earned_usd:
                                  type: string
                                  nullable: true
                                  pattern: ^\d+(?:\.\d+)?$
                                  description: Null unless `status` is `ok`.
                                estimated_today_usd:
                                  type: string
                                  nullable: true
                                  pattern: ^\d+(?:\.\d+)?$
                                  description: Null unless `status` is `ok`.
                                pace_usd_per_day:
                                  type: string
                                  nullable: true
                                  pattern: ^\d+(?:\.\d+)?$
                                  description: Null unless `status` is `ok`.
                              required:
                                - venue
                                - status
                                - earned_usd
                                - estimated_today_usd
                                - pace_usd_per_day
                          markets:
                            type: array
                            items:
                              type: object
                              properties:
                                venue:
                                  type: string
                                  enum:
                                    - polymarket
                                    - polymarket_us
                                ticker:
                                  type: string
                                  minLength: 1
                                  description: >-
                                    The venue market ticker. Polymarket uses
                                    pm:<condition_id> and Polymarket US uses
                                    pmus:<slug>.
                                market_ids:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                    description: >-
                                      The market id from GET /markets, however
                                      the request named the market.
                                  description: >-
                                    The markets GET /markets lists on this venue
                                    market. Empty when the API lists none of
                                    them.
                                earned_usd:
                                  type: string
                                  pattern: ^\d+(?:\.\d+)?$
                                  description: >-
                                    Earned during the current venue day (UTC for
                                    Polymarket, America/New_York for Polymarket
                                    US).
                                share_percent:
                                  type: number
                                  minimum: 0
                                  maximum: 100
                                  description: >-
                                    Current Polymarket pool share from 0 to 100.
                                    Polymarket US reports 0 because live share
                                    is unavailable.
                                pool_daily_reward_usd:
                                  type: string
                                  nullable: true
                                  pattern: ^\d+(?:\.\d+)?$
                                  description: >-
                                    What this market’s share of the maker
                                    liquidity reward pool pays all makers per
                                    day; 0 when a covered market has no active
                                    maker pool, or null when a shared pool’s
                                    market count or market snapshot coverage is
                                    unavailable.
                              required:
                                - venue
                                - ticker
                                - market_ids
                                - earned_usd
                                - share_percent
                                - pool_daily_reward_usd
                            description: >-
                              Markets with earnings or a pool share today, the
                              most earned first.
                          as_of:
                            type: string
                            format: date-time
                          livemode:
                            type: boolean
                        required:
                          - epoch_date
                          - earned_usd
                          - estimated_today_usd
                          - pace_usd_per_day
                          - venues
                          - markets
                          - as_of
                          - livemode
                      meta:
                        type: object
                        properties:
                          timestampMs:
                            type: integer
                            minimum: 0
                          requestId:
                            type: string
                            minLength: 1
                          traceId:
                            type: string
                            minLength: 1
                          cachedAtMs:
                            type: integer
                            minimum: 0
                          source:
                            type: string
                            enum:
                              - cache
                              - database
                              - clickhouse
                              - upstream
                              - fallback
                              - internal
                        required:
                          - timestampMs
                          - requestId
                    required:
                      - success
                      - data
                      - meta
                  - $ref: '#/components/schemas/ApiError'
              example:
                success: true
                data:
                  epoch_date: '2026-11-10'
                  earned_usd: '4.12'
                  estimated_today_usd: '7.62'
                  pace_usd_per_day: '8.4'
                  venues:
                    - venue: polymarket
                      status: ok
                      earned_usd: '4.12'
                      estimated_today_usd: '7.62'
                      pace_usd_per_day: '8.4'
                  markets:
                    - venue: polymarket
                      ticker: >-
                        pm:0x5f65177b394277fd294cd75650044e32ba009a95022d88a0c1d565897d72f8f1
                      market_ids:
                        - >-
                          mkt_bmZsOjIwMjYtMTAtMTE6REVOLUxBQwpzcHJlYWQ6Z2FtZTpERU46LTMuNQpERU4
                      earned_usd: '4.12'
                      share_percent: 3.36
                      pool_daily_reward_usd: '250'
                  as_of: '2026-11-10T14:00:00.000Z'
                  livemode: true
                meta:
                  timestampMs: 1792771200000
                  requestId: 7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17
        '400':
          description: Invalid reward earnings query
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                success: false
                error:
                  code: VALIDATION_ERROR
                  message: Invalid reward earnings query
                meta:
                  timestampMs: 1792771200000
                  requestId: 7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17
        '401':
          description: Missing, invalid, expired or revoked API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                success: false
                error:
                  code: UNAUTHORIZED
                  message: Invalid, expired or revoked API key
                meta:
                  timestampMs: 1792771200000
                  requestId: 7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17
        '403':
          description: The key lacks the scope this route needs
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                success: false
                error:
                  code: FORBIDDEN
                  message: This API key lacks the scope this route needs
                meta:
                  timestampMs: 1792771200000
                  requestId: 7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17
        '429':
          description: API error
          headers:
            Retry-After:
              description: Seconds remaining in the upstream read cooldown, when available
              schema:
                type: integer
                minimum: 0
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                success: false
                error:
                  code: RATE_LIMITED
                  message: Too many requests for this API key
                meta:
                  timestampMs: 1792771200000
                  requestId: 7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17
        '500':
          description: API error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                success: false
                error:
                  code: INTERNAL_ERROR
                  message: An internal error occurred.
                meta:
                  timestampMs: 1792771200000
                  requestId: 7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17
components:
  schemas:
    ApiError:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - VALIDATION_ERROR
                - NOT_FOUND
                - UNAUTHORIZED
                - FORBIDDEN
                - CONFLICT
                - UPSTREAM_ERROR
                - RATE_LIMITED
                - INTERNAL_ERROR
                - FEATURE_DISABLED
                - CONDITIONAL_SELL_REJECTED
                - CONDITIONAL_SELL_ACTIVE
            message:
              type: string
              minLength: 1
            details:
              nullable: true
          required:
            - code
            - message
        meta:
          type: object
          properties:
            timestampMs:
              type: integer
              minimum: 0
            requestId:
              type: string
              minLength: 1
            traceId:
              type: string
              minLength: 1
            cachedAtMs:
              type: integer
              minimum: 0
            source:
              type: string
              enum:
                - cache
                - database
                - clickhouse
                - upstream
                - fallback
                - internal
          required:
            - timestampMs
            - requestId
      required:
        - success
        - error
        - meta
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        A Lean API key, sent as `Authorization: Bearer <key>`. A test key
        (`lean_sk_test_...`) simulates orders and fills with no money; a live
        key (`lean_sk_live_...`) trades for real within the key's limits. Every
        successful response says which mode answered in `data.livemode`.

````

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