validate_isin
Verify an ISIN's format and check digit to ensure it is a valid international securities identifier. Returns the country code for validated codes.
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. |