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