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

# Peg Stability Facilities

> Daily state of one peg stability facility (PSMs, RWA reserve ilks, crvUSD PegKeepers) in USD of the pegged token it issues: amount issued, premint buffer, issuance cap, and the day's mints, redemptions and net issuance. Each series is one facility, keyed by protocol, chain and facility.

One row per peg stability facility, keyed by protocol, chain and facility: the parent protocol and product, chain, facility, pegged token and the mapped protocol, project and network records. The id is the series key of the peg-stability-facilities timeseries model.

| | |
| - | - |
| Access | Stablecoins-dataset |
| Tabular model | `peg-stability-facilities`: primary key `id` |
| Timeseries model | `peg-stability-facilities`: intervals `1d`, series key `id` (Peg Stability Facility ID), every series available in one call |

## Endpoints

> [card] [List Peg Stability Facilities](https://docs.blockworks.com/api-reference/data-api/peg-stability/tabular-peg-stability-facilities.md)
>
> One page of rows with per-column filters, sorting and pagination.

> [card] [Batch Get Peg Stability Facility timeseries](https://docs.blockworks.com/api-reference/data-api/peg-stability/timeseries-peg-stability-facilities.md)
>
> Up to 10 series in one request, named by series key in `series`.

> [card] [Get Peg Stability Facility timeseries](https://docs.blockworks.com/api-reference/data-api/peg-stability/timeseries-peg-stability-facilities-by-id.md)
>
> One series over a time window, keyed by its Peg Stability Facility ID.

## Metrics

6 metrics. Use the `Field` value in `selections`; every point starts with the timestamp and continues in this order.

| Field | Name | Type | Unit | Description |
| - | - | - | - | - |
| `issuedUSD` | | | | |
| `premintBufferUSD` | | | | |
| `issuanceCapUSD` | | | | |
| `mintedUSD` | | | | |
| `redeemedUSD` | | | | |
| `netIssuanceUSD` | | | | |

## Columns

Use the `Field` value in `selections`, `sortBy`, and as the base of a filter parameter (`Field` plus one of its `Filters` suffixes).

| Field | Type | Filters | Sort | Description |
| - | - | - | - | - |
| `chain` | string | | | The short name of the chain (ethereum, base, solana). |
| `facilityID` | string | | | The facility's identifier within its protocol (a Maker-style ilk for Sky and USDD, the PegKeeper address for Curve). |
| `facilityName` | string | | | The facility's display name. |
| `id` | string | | | The series key of the peg-stability-facilities timeseries model, the parent slug, chain and facility id, joined with underscores. |
| `name` | string | | | The display name of the series, the facility name. |
| `networkID` | string | | | The chain's networkID in the blockchains model; null when unmapped. |
| `parentSlug` | string | | | The parent protocol's short name. |
| `productSlug` | string | | | The product or version within the parent protocol. |
| `projectID` | string | | | The identifier of the parent protocol's project record; null when unmapped. |
| `protocolName` | string | | | The name of the protocol record mapped to the product; null when unmapped. |
| `protocolSlug` | string | | | The slug of the protocol record mapped to the product; null when unmapped. |
| `slug` | string | | | The parent protocol's project slug, the slug used for the same protocol across the API; null when unmapped. |
| `tokenSymbol` | string | | | The token's ticker symbol. |

## Example

```bash curl theme={null}
curl "https://api.blockworks.com/query/timeseries/peg-stability-facilities/1d/<id>?timeframe=7d&selections=issuedUSD,premintBufferUSD" \
  -H "X-Blockworks-API-Key: $BLOCKWORKS_API_KEY"
```

See [Get Peg Stability Facility timeseries](https://docs.blockworks.com/api-reference/data-api/peg-stability/timeseries-peg-stability-facilities-by-id.md) for the response and the errors.


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