Skip to content
/ finident Public
forked from robfordww/finident

go library for validating and creating financial identifiers, including ISIN and LEI

Notifications You must be signed in to change notification settings

ftjfo/finident

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Financial identifiers validation library

MIT License Copyright (c) 2017, robfordww

#FUNCTIONS

func CalculateChecksum(s string) string
    CalculateChecksum takes a string and returns the next two characters
    that , when appended to the string, results in a "stringvalue mod 97 ==
    1"

func ValidateISIN(isin string) (bool, error)
    ValidateISIN takes an ISIN (ISO 6166) as string and validates the
    checkdigit

func ValidateLEI(lei string) (bool, error)
    ValidateLEI takes a possible LEI string as input and returns a boolean
    value error message. For valid LEIs, the bool == true and error == nil,
    otherwise bool == false and error != nil

func Validatemod97(s string) bool
    Validatemod97 takes a string as parameter and returns true if mod 97 of
    the string, interpreted as a number, returns 1. Letters A-Z are
    converted to numbers 10-34

About

go library for validating and creating financial identifiers, including ISIN and LEI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%