---
id: "credit_rating"
kind: "datatype"
status: "draft"
is_pii: false
name: "Credit rating (letter grade of a rating agency)"
regexp: "^(?:AAA|AA[+-]?|A[+-]?|BBB[+-]?|BB[+-]?|B[+-]?|CCC[+-]?|CC|C|R?D|SD|Aaa|Aa[123]|A[123]|Baa[123]|Ba[123]|B[123]|Caa[123]|Ca)$"
categories: ["finances"]
langs: ["common"]
quality: 90
url: "https://registry.apicrafter.io/datatype/credit_rating"
---

# Credit rating (letter grade of a rating agency) (`credit_rating`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Credit rating that an agency gives a borrower or a debt issue, on the long-term letter scales of S&P Global Ratings and Fitch (AAA, AA+, AA, AA-, A+ down to BBB- for investment grade, then BB+ down to CCC, CC, C and D for default) or of Moody's (Aaa, Aa1, Aa2, Aa3, A1 down to Baa3, then Ba1 down to Caa3, Ca and C). Bond, sovereign and fund tables give it per issuer or holding. School letter grades (letter_grade) use the single letters without the doubled forms.

- Parent datatype: [`category`](https://registry.apicrafter.io/datatype/category.md)
- Personal data (PII): no
- Categories: Finances and banking (finances)
- Countries: global
- Languages: Common to most languages (common)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^(?:AAA|AA[+-]?|A[+-]?|BBB[+-]?|BB[+-]?|B[+-]?|CCC[+-]?|CC|C|R?D|SD|Aaa|Aa[123]|A[123]|Baa[123]|Ba[123]|B[123]|Caa[123]|Ca)$
```

## Examples

- `AAA`
- `BBB-` — lowest investment grade at S&P and Fitch
- `Baa3` — lowest investment grade at Moody's
- `Aa2`
- `Aaa1` (invalid example)

## Metacrafter rules

2 rules: 1 match the field name, 1 match values.

- `creditratingbyname` (field, `common/crossborder_finance.yaml`)
- `creditratingvalue` (data, `common/crossborder_finance.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Translations

- ru: Кредитный рейтинг (буквенная оценка агентства)

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Credit_rating>
- wikipedia: <https://en.wikipedia.org/wiki/Bond_credit_rating>

## Quality

Score 90/100. Missing: mapping (Wikidata, Schema.org, ...).

JSON: <https://registry.apicrafter.io/api/v1/datatypes/credit_rating.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/finances/credit_rating.yaml>
