Skip to main content

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


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.2.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_openfigi2-0.1.2-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file py_openfigi2-0.1.2.tar.gz.

File metadata

  • Download URL: py_openfigi2-0.1.2.tar.gz
  • Upload date:
  • Size: 7.3 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

Hashes for py_openfigi2-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1c9b0bbb3157a5ec9b0aecbe3d57a9ff60d4c6596f9b87eb984ab30cf9a1afa4
MD5 3b2ee5e4588c66a7f5a8a2dc3d8ed4a6
BLAKE2b-256 8913574b1d833074e0fa36977443903b4b3a933907ba08a0a77078551703700f

See more details on using hashes here.

File details

Details for the file py_openfigi2-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: py_openfigi2-0.1.2-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

Hashes for py_openfigi2-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 84e928dd32433040a1fddab009f2596155b7502d1349d7adfd6c7a43abefb4ee
MD5 a781ef13426db525d16144b5f760f78c
BLAKE2b-256 87f19e353b70e2c2fcc6fe5f95a4d83e10b237fe71204320688f50d0323f53bf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page