validate_isin
Validate an ISIN by checking its format and ISO 6166 Luhn check digit, returning the country code of the security identifier.
Instructions
USE THIS to verify an ISIN (international securities identifier) before relying on it — never assume a 12-character code is valid. Checks the format and the ISO 6166 Luhn check digit, and returns the country code. Call this when a user supplies a security/instrument identifier.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| isin | Yes | The 12-character ISIN, e.g. US0378331005. |