stdnum.gb.sedol

SEDOL number (Stock Exchange Daily Official List number).

The SEDOL number is a security identifier used in the United Kingdom and Ireland assigned by the London Stock Exchange. A SEDOL is seven characters in length consisting of six alphanumeric digits, followed by a check digit.

>>> validate('B15KXQ8')
'B15KXQ8'
>>> validate('B15KXQ7')
Traceback (most recent call last):
    ...
InvalidChecksum: ...
>>> to_isin('B15KXQ8')
'GB00B15KXQ89'
stdnum.gb.sedol.calc_check_digit(number)

Calculate the check digits for the number.

stdnum.gb.sedol.compact(number)

Convert the number to the minimal representation. This strips the number of any valid separators and removes surrounding whitespace.

stdnum.gb.sedol.is_valid(number)

Check if the number is valid.

stdnum.gb.sedol.to_isin(number)

Convert the number to an ISIN.

stdnum.gb.sedol.validate(number)

Check if the number is valid. This checks the length and check digit.