OpenFIGI data source for Python
Project description
py-openfigi
Python client for the OpenFIGI API — map ISINs, tickers, CUSIPs and other identifiers to FIGI codes, and search or filter securities.
Installation
pip install py-openfigi
Usage
Python API
from openfigi import OpenFIGIDataSource, MappingJob, IdType
ds = OpenFIGIDataSource() # set OPENFIGI_API_KEY env var for higher rate limits
# Resolve by ISIN
security = ds.resolve_query(isin="US0378331005")
# Bulk map identifiers
results = ds.map_identifiers([
MappingJob(idType=IdType.ID_ISIN, idValue="US0378331005"),
MappingJob(idType=IdType.TICKER, idValue="AAPL", exchCode="US"),
])
# Search by keyword
items = ds.search("Apple")
CLI
openfigi lookup --isin US0378331005
openfigi lookup --symbol AAPL --exchange US --format json
openfigi lookup --desc "Apple" --limit 5
Configuration
| Env var | Description |
|---|---|
OPENFIGI_API_KEY |
Optional API key for higher rate limits |
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py_openfigi2-0.1.3.tar.gz
(7.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py_openfigi2-0.1.3.tar.gz.
File metadata
- Download URL: py_openfigi2-0.1.3.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6bb95172f40752bf2a3ccef5707eb206e9075fcb3131b46a209877ea650a28a6
|
|
| MD5 |
5d22dc68b09eacb6e44c862a60ec34fc
|
|
| BLAKE2b-256 |
57fa383e6f7df76293cfc4c985abce7f985e5401c2a767b5743fd0372bfe6647
|
File details
Details for the file py_openfigi2-0.1.3-py3-none-any.whl.
File metadata
- Download URL: py_openfigi2-0.1.3-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
145d488e83bcdc4ea11d1a3c362ad36f93065e60354a466807c201be824240a7
|
|
| MD5 |
c94204872fbedf1b95b84ba7a3b97b9e
|
|
| BLAKE2b-256 |
5eb06473a5f3309b3715fa23e7df15834481797ec427e63b28421706b4a826b2
|