Skip to main content

zfinance

Financial data, simplified.

A modern, intuitive, typed Python API for financial data,
powered by yfinance.

PyPI version Python 3.12+ License: MIT

Documentation  ·  Capabilities  ·  Installation  ·  Usage  ·  Contributing


Capabilities

Area What it covers
Prices Historical bars as one flat table for one or many symbols, quote snapshots, and price metadata
Instruments Instrument profiles, full provider metadata, and ISIN lookup
Company Company profiles and officers
Financials Income statements, balance sheets, cash flow, and valuation measures as wide tables
Actions Dividends, splits, capital gains, and combined action history
Analysts Price targets, recommendations, rating changes, and earnings estimates
Ownership Major holders, institutional and mutual-fund holders, insider activity, and shares outstanding
Options Expiration dates and full option chains
Funds Fund profiles, holdings, sector weights, and asset allocation
News & discovery News articles and symbol search

Installation

zfinance supports Python 3.12 and newer.

Add it to a uv project:

uv add zfinance

To install it in an active Python environment:

pip install zfinance

To build from source:

git clone https://github.com/oceanus403/zfinance
cd zfinance
uv sync --locked

Usage

import zfinance as zf

quote = zf.prices.quote("AAPL")
print(quote.price, quote.currency)

bars = zf.prices.history("AAPL", period="1y")
print(bars.tail())

company = zf.company.profile("AAPL")
print(company.name, company.industry)

income = zf.financials.income("AAPL", frequency="quarterly")
print(income.head())

Project status

zfinance 0.1.0 covers Phase A: prices, instruments, company data, financial statements, corporate actions, analysts, ownership, options, funds, news, and search. Market data, sectors, events, screening, and streaming are planned for a later release.

License

zfinance is released under the MIT License.

Metadata

Release files for zfinance 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zfinance 0.1.0
File Size Uploaded Provenance Actions
zfinance-0.1.0.tar.gz 33.6 kB With provenance Details for zfinance-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zfinance 0.1.0
File Interpreter ABI Platform Actions
zfinance-0.1.0-py3-none-any.whl Python 3 none any Details for zfinance-0.1.0-py3-none-any.whl

Total release size: 76.0 kB

Release files / zfinance-0.1.0.tar.gz

Download URL zfinance-0.1.0.tar.gz
Size 33.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f69b12bbbfafa2a50fb81d82c7096658f3e7488d4ff1464b4cbbcfc57d0bd8bd
BLAKE2b-256 checksum
How to use checksums
702a73fe99848ce6bba43c1c56eb6fb4e154752cae1b79c81d76f1bf2f85534d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / zfinance-0.1.0-py3-none-any.whl

Download URL zfinance-0.1.0-py3-none-any.whl
Size 42.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
026a38634fe810c2cad02b934e606b51f64765a554232a6435ab0fe7b0df2cd0
BLAKE2b-256 checksum
How to use checksums
61af131f5877c9d2d6725f79d39117aa93d5d4153222868e6b16803512eb095e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for zfinance 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for zfinance-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page