Crate isin[][src]

isin

isin provides an ISIN type for working with validated International Security Identifiers (ISINs) as defined in ISO 6166.

The Association of National Numbering Agencies (ANNA) has a page describing ISO 6166.

An ISIN is comprised of 12 ASCII characters with the following parts, in order:

  1. A two-letter ISO 3166 country code in upper-case, designating the issuer’s country of registration or legal domicile, or for OTC derivatives the special code EZ. Additional codes may be allocated by subsequent revisions to the standard.
  2. A nine-character upper-case alphanumeric Security Identifier assigned by the corresponding National Numbering Agency, zero-padded on the left if the underlying code is shorter than nine characters.
  3. A single decimal digit representing the check digit computed using what the standard calls the “modulus 10 ‘double-add-double’ check digit”.

Use the ISIN::parse_loose() or ISIN::parse_strict() methods to convert a string to a validated ISIN.

Structs

ISIN

Enums

ParseError