Skip to content

Identifier

A module to parse, validate and reformat standard identifiers and codes in different formats.

ISIN

Check if ISIN is valid. This checks the length, format and check digit. Returns back ISIN, if valid.

print (SecuMas.isin.validate('IN8081309367'))


Generate check digit. Input expected 11 character string.

print (SecuMas.isin.get_check_digit('IN808130936'))


Generate dummy ISINs (development usecase). Output as list.

print (SecuMas.isin.dummy(3))

CUSIP

Check if CUSIP is valid. This checks the length, format and check digit. Returns back CUSIP, if valid.

print (SecuMas.cusip.validate('H42097107'))


Generate check digit. Input expected 8 character string.

print (SecuMas.cusip.get_check_digit('H4209710'))


Generate dummy CUSIPs (development usecase). Output as list.

print (SecuMas.cusip.dummy(3))

SEDOL

Check if SEDOL is valid. This checks the length, format and check digit. Returns back SEDOL, if valid.

print (SecuMas.sedol.validate('0870612'))


Generate check digit. Input expected 6 character string.

print (SecuMas.sedol.get_check_digit('087061'))


Generate dummy SEDOLs (development usecase). Output as list.

print (SecuMas.sedol.dummy(3))