---
id: "currency_pair"
kind: "datatype"
status: "draft"
is_pii: false
name: "Currency pair (EUR/USD)"
regexp: "^[A-Z]{3}[/-]?[A-Z]{3}$"
categories: ["finances"]
langs: ["common"]
quality: 90
url: "https://registry.apicrafter.io/datatype/currency_pair"
---

# Currency pair (EUR/USD) (`currency_pair`)

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

Two currencies of an exchange rate, the base currency first and the quote currency second, as forex quotes and tables of exchange rates write them: the ISO 4217 codes with a slash (EUR/USD, USD/JPY), with a hyphen or joined (EURUSD, the form of trading platforms). The rate tells how many units of the quote currency one unit of the base currency costs.

- Personal data (PII): no
- Categories: Finances and banking (finances)
- Countries: global
- Languages: Common to most languages (common)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^[A-Z]{3}[/-]?[A-Z]{3}$
```

## Examples

- `EUR/USD`
- `USD/JPY`
- `GBP/CHF`
- `EURUSD` — joined
- `EUR` (invalid example) — one currency

## Metacrafter rules

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

- `currencypairbyname` (field, `common/trade.yaml`)
- `currencypairvalue` (data, `common/trade.yaml`)

## Supported by tools

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

## Translations

- ru: Валютная пара (EUR/USD)

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Currency_pair>
- wikipedia: <https://en.wikipedia.org/wiki/ISO_4217>

## Quality

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

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