# DefiLlama — Get historical mcap sum of all stablecoins

Get DefiLlama Stablecoin Mcap History data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, pass parameters such as stablecoin, and retrieve structured data including date, total circulating, and pegged usd to compare circulating totals, track single-asset growth, and build supply reports, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/defillama/defillama-get-historical-mcap-sum-of-all-stablecoins/0666299d-538b-44c6-afae-e949b7c9ec63/
API ID: 0666299d-538b-44c6-afae-e949b7c9ec63
Provider: defillama
Contract revision: 5
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/defillama/stablecoincharts/all
Page update time: 2026-12-03T02:39:15.334Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:39:11.805Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## DefiLlama Stablecoin Mcap History API

Request historical daily circulating totals across all stablecoins, or narrow the series with the optional integer `stablecoin` query parameter. The response is an array of timestamped `totalCirculating` objects.

## What You Can Build

- **Compare circulating totals**: Plot reported stablecoin totals alongside separately measured TVL, keeping the metrics distinct.
- **Track single-asset growth**: Pass stablecoin=1 to chart one stablecoin’s total supply without chain-level payload overhead.
- **Build supply reports**: Compare consecutive reported supply snapshots; net changes do not identify individual mint or redemption transactions.

## Returned Data

| Field | Meaning |
| --- | --- |
| `[]` | Time-series array of historical stablecoin market cap points |
| `[].date` | UNIX timestamp string for the historical data point |
| `[].totalCirculating` | Object containing circulating totals by peg currency |
| `[].totalCirculating.peggedUSD` | Total USD-pegged circulating supply at that timestamp |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "DefiLlama — Get historical mcap sum of all stablecoins request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "stablecoin": {
          "type": "integer",
          "description": "stablecoin ID, you can get these from /stablecoins"
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "date": {
        "type": "string"
      },
      "totalCirculating": {
        "type": "object",
        "properties": {
          "peggedUSD": {
            "type": "integer"
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Official UI example (not runtime verified)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/defillama/stablecoincharts/all?stablecoin=1' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
[
  {
    "date": "1609459200",
    "totalCirculating": {
      "peggedUSD": 45000000000
    }
  }
]
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Is the stablecoin query parameter required?
No. It is optional; omitting it returns the combined historical market cap of all stablecoins.

### Where do I get valid stablecoin IDs?
Look up numeric IDs in the peggedAssets[].id field from the DefiLlama Stablecoins List API.

### What format is the date field?
In the reference example, date is a UNIX timestamp formatted as a string (such as "1609459200").

### Does this endpoint split supply by individual blockchain?
No. For per-chain historical breakdowns of a stablecoin, use the DefiLlama Stablecoin History API.

### Can I retrieve historical peg prices here?
No. Use the DefiLlama Stablecoin Prices API for historical stablecoin price snapshots.

### What value is inside totalCirculating?
The reference example returns peggedUSD representing total USD-pegged circulating value.

## Available implementations
- defillama: https://openany.si/defillama/defillama-get-historical-mcap-sum-of-all-stablecoins/0666299d-538b-44c6-afae-e949b7c9ec63/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
