{
  "id": "currency_pair",
  "kind": "datatype",
  "status": "draft",
  "name": "Currency pair (EUR/USD)",
  "doc": "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.",
  "is_pii": false,
  "categories": [
    "finances"
  ],
  "langs": [
    "common"
  ],
  "classification": "categorical",
  "regexp": "^[A-Z]{3}[/-]?[A-Z]{3}$",
  "examples": [
    {
      "value": "EUR/USD",
      "valid": true
    },
    {
      "value": "USD/JPY",
      "valid": true
    },
    {
      "value": "GBP/CHF",
      "valid": true
    },
    {
      "value": "EURUSD",
      "description": "joined",
      "valid": true
    },
    {
      "value": "EUR",
      "description": "one currency",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Currency_pair"
    },
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/ISO_4217"
    }
  ],
  "translations": {
    "ru": {
      "name": "Валютная пара (EUR/USD)"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "currencypairbyname",
        "type": "field",
        "match": "regex",
        "file": "common/trade.yaml"
      },
      {
        "rule": "currencypairvalue",
        "type": "data",
        "match": "func",
        "file": "common/trade.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/any/finances/currency_pair.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/finances/currency_pair.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/finances/currency_pair.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/currency_pair",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/currency_pair.json"
  }
}