> ## 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.

# List reward programs

> Lists active rewards in ticker order across Kalshi, Polymarket US and Polymarket. Requires read scope. Filter by venue, literal ticker_prefix and min_daily_reward in USD per day across a ticker’s active programs. Each page defaults to 100 tickers with a maximum of 200. Pass next_cursor as cursor with the same filters until next_cursor is null. Each ticker includes all its active programs. Kalshi lists open markets and includes event_ticker, series_ticker, title, market_status, price_level_structure, price_ranges and tick_rule, and each Kalshi program carries the stored period_reward_centicents, exact target_size_fp, last_rest_update, created_at and updated_at. last_rest_update and updated_at move only when a Kalshi refresh inserts or changes the program, not on every refresh. Polymarket US includes event_start_time, category, reward_pool, max_spread and pool_market_count. Polymarket end_date is null because its feed has no end date. Test keys read the same programs with livemode false.



## OpenAPI

````yaml api-reference/openapi.json GET /rewards/programs
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/programs:
    get:
      tags:
        - Rewards
      summary: List active market reward programs
      description: >-
        Lists active rewards in ticker order across Kalshi, Polymarket US and
        Polymarket. Requires read scope. Filter by venue, literal ticker_prefix
        and min_daily_reward in USD per day across a ticker’s active programs.
        Each page defaults to 100 tickers with a maximum of 200. Pass
        next_cursor as cursor with the same filters until next_cursor is null.
        Each ticker includes all its active programs. Kalshi lists open markets
        and includes event_ticker, series_ticker, title, market_status,
        price_level_structure, price_ranges and tick_rule, and each Kalshi
        program carries the stored period_reward_centicents, exact
        target_size_fp, last_rest_update, created_at and updated_at.
        last_rest_update and updated_at move only when a Kalshi refresh inserts
        or changes the program, not on every refresh. Polymarket US includes
        event_start_time, category, reward_pool, max_spread and
        pool_market_count. Polymarket end_date is null because its feed has no
        end date. Test keys read the same programs with livemode false.
      operationId: listRewardsPrograms
      parameters:
        - schema:
            type: string
            enum:
              - kalshi
              - polymarket_us
              - polymarket
          required: false
          name: venue
          in: query
        - schema:
            type: string
            minLength: 1
            maxLength: 512
          required: false
          name: ticker_prefix
          in: query
        - schema:
            type: number
            nullable: true
            minimum: 0
          required: false
          name: min_daily_reward
          in: query
        - schema:
            type: integer
            minimum: 1
            maximum: 200
            default: 100
          required: false
          name: limit
          in: query
        - schema:
            type: string
            minLength: 1
            maxLength: 512
            description: >-
              The next_cursor from the previous page. Refused if used with
              different venue, ticker_prefix, or min_daily_reward filters.
          required: false
          description: >-
            The next_cursor from the previous page. Refused if used with
            different venue, ticker_prefix, or min_daily_reward filters.
          name: cursor
          in: query
      responses:
        '200':
          description: Active market reward programs
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      success:
                        type: boolean
                        enum:
                          - true
                      data:
                        type: object
                        properties:
                          programs:
                            type: array
                            items:
                              oneOf:
                                - type: object
                                  properties:
                                    ticker:
                                      type: string
                                    daily_rate:
                                      type: number
                                    end_date:
                                      type: string
                                    venue:
                                      type: string
                                      enum:
                                        - kalshi
                                    event_ticker:
                                      type: string
                                      nullable: true
                                      minLength: 1
                                    series_ticker:
                                      type: string
                                      nullable: true
                                      minLength: 1
                                    title:
                                      type: string
                                      nullable: true
                                      minLength: 1
                                    market_status:
                                      type: string
                                      nullable: true
                                      enum:
                                        - unopened
                                        - open
                                        - closed
                                        - resolving
                                        - resolved
                                    price_level_structure:
                                      type: string
                                      nullable: true
                                      minLength: 1
                                    price_ranges:
                                      type: array
                                      nullable: true
                                      items:
                                        type: object
                                        properties:
                                          start:
                                            type: string
                                            pattern: ^(?:0(?:\.\d{1,4})?|1(?:\.0{1,4})?)$
                                          end:
                                            type: string
                                            pattern: ^(?:0(?:\.\d{1,4})?|1(?:\.0{1,4})?)$
                                          step:
                                            type: string
                                            pattern: ^(?:0(?:\.\d{1,4})?|1(?:\.0{1,4})?)$
                                        required:
                                          - start
                                          - end
                                          - step
                                        additionalProperties: false
                                    tick_rule:
                                      type: string
                                      nullable: true
                                      enum:
                                        - cent
                                        - tenth
                                        - hundredth
                                        - tapered
                                        - half_cent
                                    programs:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          id:
                                            type: string
                                          incentive_type:
                                            type: string
                                            enum:
                                              - liquidity
                                              - volume
                                          daily_rate:
                                            type: number
                                          start_date:
                                            type: string
                                          target_size:
                                            type: number
                                            nullable: true
                                          end_date:
                                            type: string
                                          period_reward_dollars:
                                            type: number
                                          discount_factor_bps:
                                            type: integer
                                            nullable: true
                                          period_reward_centicents:
                                            type: integer
                                            minimum: 0
                                            description: >-
                                              Program reward pool in centicents, ten
                                              thousand per dollar.
                                          target_size_fp:
                                            type: string
                                            nullable: true
                                            pattern: ^\d+(?:\.\d+)?$
                                            description: >-
                                              Exact target size in contracts as stored
                                              by Kalshi.
                                          last_rest_update:
                                            type: string
                                            description: >-
                                              When a Kalshi refresh last inserted or
                                              changed the stored program. A refresh
                                              that returns an unchanged program keeps
                                              this time, so it does not show when Lean
                                              last checked Kalshi.
                                          created_at:
                                            type: string
                                            description: >-
                                              When a Kalshi refresh first stored the
                                              program.
                                          updated_at:
                                            type: string
                                            description: >-
                                              When a Kalshi refresh last inserted or
                                              changed the stored program.
                                        required:
                                          - id
                                          - incentive_type
                                          - daily_rate
                                          - start_date
                                          - target_size
                                          - end_date
                                          - period_reward_dollars
                                          - discount_factor_bps
                                          - period_reward_centicents
                                          - target_size_fp
                                          - last_rest_update
                                          - created_at
                                          - updated_at
                                      minItems: 1
                                  required:
                                    - ticker
                                    - daily_rate
                                    - end_date
                                    - venue
                                    - event_ticker
                                    - series_ticker
                                    - title
                                    - market_status
                                    - price_level_structure
                                    - price_ranges
                                    - tick_rule
                                    - programs
                                - type: object
                                  properties:
                                    ticker:
                                      type: string
                                    daily_rate:
                                      type: number
                                    end_date:
                                      type: string
                                      nullable: true
                                    venue:
                                      type: string
                                      enum:
                                        - polymarket_us
                                    event_start_time:
                                      type: string
                                      nullable: true
                                    category:
                                      type: string
                                      nullable: true
                                    expires_at:
                                      type: string
                                    programs:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          id:
                                            type: string
                                          incentive_type:
                                            type: string
                                            enum:
                                              - liquidity
                                              - volume
                                          daily_rate:
                                            type: number
                                          start_date:
                                            type: string
                                          target_size:
                                            type: number
                                            nullable: true
                                          end_date:
                                            type: string
                                            nullable: true
                                          discount_factor:
                                            type: number
                                            nullable: true
                                          reward_pool:
                                            type: number
                                            description: >-
                                              Full reward pool in USD for this program
                                              period.
                                          max_spread:
                                            type: number
                                            nullable: true
                                          pool_market_count:
                                            type: integer
                                            nullable: true
                                            minimum: 1
                                            description: >-
                                              Markets sharing the pool in this
                                              snapshot. daily counts the whole program
                                              period, daily_event counts its markets
                                              in this event, and single-market periods
                                              count 1. Null when unknown.
                                          period:
                                            type: string
                                            nullable: true
                                        required:
                                          - id
                                          - incentive_type
                                          - daily_rate
                                          - start_date
                                          - target_size
                                          - end_date
                                          - discount_factor
                                          - reward_pool
                                          - max_spread
                                          - pool_market_count
                                          - period
                                      minItems: 1
                                  required:
                                    - ticker
                                    - daily_rate
                                    - end_date
                                    - venue
                                    - event_start_time
                                    - category
                                    - expires_at
                                    - programs
                                - type: object
                                  properties:
                                    ticker:
                                      type: string
                                    daily_rate:
                                      type: number
                                    end_date:
                                      type: string
                                      nullable: true
                                    venue:
                                      type: string
                                      enum:
                                        - polymarket
                                    max_spread:
                                      type: number
                                      nullable: true
                                    min_size:
                                      type: number
                                      nullable: true
                                  required:
                                    - ticker
                                    - daily_rate
                                    - end_date
                                    - venue
                                    - max_spread
                                    - min_size
                            maxItems: 200
                          next_cursor:
                            type: string
                            nullable: true
                            minLength: 1
                            maxLength: 512
                          livemode:
                            type: boolean
                        required:
                          - programs
                          - next_cursor
                          - 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'
        '400':
          description: Invalid reward filters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                success: false
                error:
                  code: VALIDATION_ERROR
                  message: Invalid reward filters
                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
        '503':
          description: Reward data is unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                success: false
                error:
                  code: UPSTREAM_ERROR
                  message: Reward data is unavailable
                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.