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.1.tar.gz (7.1 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.1-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_openfigi2-0.1.1.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.10 {"installer":{"name":"uv","version":"0.11.10","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.1.tar.gz
Algorithm Hash digest
SHA256 0a87457bd200fb988145c404aba7edc45660f1966e8a05496f44b9f41394c97b
MD5 572eb79961cb0a4409ad0e63b549be6b
BLAKE2b-256 23cd3bd8ee1b7b58251da9d543abe3baa6204d6c7fdb6c2f1417fc931eac1caa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py_openfigi2-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.10 {"installer":{"name":"uv","version":"0.11.10","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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d6d8e2b11727dc4114cb01bd06d4b09bb5caf80fd57263d890d0ceacdf145444
MD5 65ac5bbf9d236cd1d2bd490fd8524ae5
BLAKE2b-256 5d59f63c6c33eb4f4269c7cf15a3b118738073ee1ba578cf70842751cc9eb463

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