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

# Global Credit Stats

> Program-wide aggregates per credit type: totals, unique recipients, batch transaction counts, average credit size, plus a bucketed series.

Program-wide totals and time series: how much Polymarket pays out per program, to how many wallets, at what average size.

## Credit types

Every credits endpoint accepts these values in `type`/`types`:

| Value | Program |
| - | - |
| `reward` | [Liquidity rewards](https://docs.polynode.dev/credits/rewards.md) |
| `yield` | [Yield on balances](https://docs.polynode.dev/credits/yield.md) |
| `maker_rebate` | [Maker rebates](https://docs.polynode.dev/credits/maker-rebates.md) |
| `taker_rebate` | [Taker rebates](https://docs.polynode.dev/credits/taker-rebates.md) |
| `referral_reward` | [Referral rewards](https://docs.polynode.dev/credits/referral-rewards.md) |

`types` accepts a comma-separated set (`types=maker_rebate,taker_rebate`) or `all`.

## Examples

Monthly payout volumes for every program:

```bash theme={null}
curl "https://api.polynode.dev/v3/credits/stats?types=all&interval=month" \
  -H "x-api-key: $POLYNODE_API_KEY"
```

Taker rebates by day since launch:

```bash theme={null}
curl "https://api.polynode.dev/v3/credits/stats?types=taker_rebate&interval=day" \
  -H "x-api-key: $POLYNODE_API_KEY"
```

`unique_recipients` is exact for all-time requests and `null` when you pass `start_ts`/`end_ts`. `interval=hour` requires a window of 7 days or less.


## OpenAPI

````yaml GET /v3/credits/stats
openapi: 3.1.0
info:
  title: PolyNode API
  description: >-
    Real-time Polymarket data API with decoded mempool settlements, OHLCV
    candles, and full Polygon JSON-RPC proxy.
  contact:
    name: PolyNode
    url: https://polynode.dev
  license:
    name: ''
  version: 2.0.0
servers:
  - url: https://api.polynode.dev
    description: Production
security:
  - api_key: []
paths:
  /v3/credits/stats:
    get:
      tags:
        - Credits
      summary: Global Credit Stats
      description: >-
        Program-wide aggregates per credit type: totals, unique recipients,
        batch transaction counts, average credit size, plus a bucketed series.
      operationId: credits_stats
      parameters:
        - name: types
          in: query
          required: false
          description: >-
            Comma-separated set of credit types (One of `reward`, `yield`,
            `maker_rebate`, `taker_rebate`, `referral_reward`), or `all` for
            every type.
          schema:
            type: string
        - name: interval
          in: query
          required: false
          description: '`hour`, `day` (default), `week`, or `month`.'
          schema:
            type: string
        - name: start_ts
          in: query
          required: false
          description: Unix seconds start bound (inclusive).
          schema:
            type: integer
        - name: end_ts
          in: query
          required: false
          description: Unix seconds end bound (inclusive).
          schema:
            type: integer
      responses:
        '200':
          description: Success
          content:
            application/json:
              example:
                interval: month
                series:
                  - bucket: 1780272000
                    taker_rebate:
                      amount: '6006789.660200'
                      count: 63921
                  - bucket: 1782864000
                    taker_rebate:
                      amount: '7673425.065000'
                      count: 95078
                totals:
                  taker_rebate:
                    amount: '13680214.725200'
                    avg_credit: '86.039627'
                    batch_txs: 501
                    count: 158999
                    first_ts: 1781913600
                    last_ts: 1783728000
                    unique_recipients: 36469
components:
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: x-api-key

````

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