is_figi: Check if an argument is a valid FIGI string

View source: R/id.R

is_figiR Documentation

Check if an argument is a valid FIGI string

Description

Validates FIGI (Financial Instrument Global Identifier) format including Luhn check digit verification. The prefixes BS, BM, GG, GB, GH, KY, and VG are reserved to avoid collisions with ISINs and are rejected.

Usage

is_figi(x)

Arguments

x

(any)
Object to check.

Value

TRUE if x is a valid FIGI string, FALSE otherwise.

References

https://en.wikipedia.org/wiki/Financial_Instrument_Global_Identifier https://www.openfigi.com/about/overview https://www.omg.org/spec/FIGI/

Examples

is_figi("BBG000BLNNH6")

checkstring documentation built on Sept. 28, 2026, 5:07 p.m.