CUSIP
Type Registry
CUSIP
identity.payment.cusip Committee on Uniform Securities Identification Procedures identifier. 9-character alphanumeric code for US and Canadian securities. Format: 6-character issuer code + 2-character issue number + 1 check digit.
Domain identity›payment
Casts to VARCHAR
Scope Universal
Try it
CLI
$ finetype infer -i "037833100"
→ identity.payment.cusip DuckDB
Detect
SELECT finetype('037833100');
-- → 'identity.payment.cusip' Cast expression
CAST({col} AS VARCHAR) Safe cast pipeline
-- Normalise and cast in one step
SELECT TRY_CAST(finetype_cast(my_column) AS VARCHAR) AS clean_value
FROM my_table
WHERE finetype(my_column) = 'identity.payment.cusip'; Struct Expansion
check_digit: SUBSTRING({col}, 9, 1)
issue: SUBSTRING({col}, 7, 2)
issuer: SUBSTRING({col}, 1, 6) JSON Schema
finetype schema identity.payment.cusip {
"$id": "https://noon.sh/schemas/identity.payment.cusip",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Committee on Uniform Securities Identification Procedures identifier. 9-character alphanumeric code for US and Canadian securities. Format: 6-character issuer code + 2-character issue number + 1 check digit.",
"examples": [
"037833100",
"17275R102",
"594918104"
],
"pattern": "^[A-Z0-9]{8}[0-9]$",
"title": "CUSIP",
"type": "string"
} Examples
03783310017275R102594918104