gleif is a minimal R client for the gleif API. A major challenge when dealing with financial data is the mapping of entities across different data sources. Especially when dealing with legal entities, the Legal Entity Identifier (LEI) can be used to uniquely identify entities.
Installation
You can install the development version of gleif from GitHub with:
# install.packages("pak")
pak::pak("m-muecke/gleif")
Usage
Currently only the download of the lei mapping data is supported.
library(gleif)
mapping <- lei_mapping("isin")
mapping
#> # A tibble: 7,137,616 × 2
#> lei isin
#> <chr> <chr>
#> 1 001GPB6A9XPE8XJICC14 US3158052262
#> 2 00EHHQ2ZHDCFXJCPCL46 US92204Q1031
#> 3 00KLB2PFTM3060S2N216 US4138382027
#> 4 00KLB2PFTM3060S2N216 US4138385749
#> 5 01ERPZV3DOLNXY2MLB90 US531554AA10
#> # ℹ 7,137,611 more rows
Related work
- gleifr - R package to support analysis of GLEIF data