qmetrics.net

FinanceToolkit

Transparent Python financial metrics and analysis toolkit

FinanceToolkit screenshot

FinanceToolkit is an open-source Python package that computes financial ratios and models from statements with documented formulas. It pulls market data via API keys and can pair with a large symbol database.

Overview

FinanceToolkit addresses inconsistent financial metrics across websites by implementing a large catalog of calculation methods in plain, inspectable Python. Given financial statements, you run the same formulas locally instead of trusting opaque third-party definitions.

Beyond equities, the toolkit covers options, currencies, cryptocurrencies, ETFs, mutual funds, indices, money markets, commodities, and key economic indicators. Modules support discovery through screeners and lists, historical prices, statements, technical indicators, profitability and valuation ratios, risk metrics such as Sharpe ratio and value at risk, options analytics, and portfolio-oriented workflows described in the documentation.

Data access typically uses a Financial Modeling Prep API key for decades of statements, with automatic fallback to Yahoo Finance unless you force a single source. An optional MCP server exposes many methods to compatible AI clients without hand-written scripts.

The project is meant to work alongside the Finance Database collection of symbols for competitive analysis: discover tickers in the database and feed them into toolkit calculations. Free-tier API limits apply to the upstream data provider.

Key features

  • Documented ratio and model catalog
  • Financial Modeling Prep data access
  • Yahoo Finance fallback option
  • Discovery screeners and lists
  • Technical and risk metric modules
  • Optional MCP server integration
  • Multi-asset-class coverage
  • Custom ratio support

Use cases

  • Equity fundamental comparison
  • Sector screening and benchmarking
  • Risk-return analysis in Python
  • Transparent metric replication

Tags

Similar software

CCXT

Multi-language unified cryptocurrency exchange API

CCXT connects applications to many cryptocurrency and prediction-market exchanges through one normalized API. It ships for JavaScript, Python, PHP, Go, C#, Java, and Rust.

  • 100+ exchange integrations
  • Unified REST and WebSocket API
  • Public and private endpoints
PythonDetails →
★ 45.1k⟳ todayMIT

yfinance

Python access to Yahoo Finance market data

yfinance wraps Yahoo Finance public APIs so Python code can pull quotes, history, fundamentals, options, and related market metadata. It is unofficial and meant for research and education.

  • Single and multi-ticker objects
  • Historical price download helper
  • Fundamentals and calendar fields
PythonDetails →
★ 26.1k⟳ 6 days agoApache-2.0

AKShare

Python interface library for China financial market data

AKShare is a Python package that fetches stocks, futures, funds, bonds, FX, and macroeconomic series from many public sources. Results come back as pandas DataFrames with Chinese column names.

  • Nearly 1000 finance and macro data endpoints
  • pandas DataFrame output with Chinese headers
  • Offline keyword search across interface catalog
PythonDetails →
★ 23.6k⟳ todayMIT

TA Lib Python

Python bindings for TA-Lib technical analysis indicators

ta-lib-python wraps the TA-Lib C library with Cython and NumPy for technical analysis on financial price series. It exposes function, abstract, and streaming APIs with optional Pandas and Polars inputs.

  • 200+ technical indicators
  • Function, abstract, streaming APIs
  • NumPy, Pandas, Polars inputs
CythonDetails →
★ 12.5k⟳ 6 days agoBSD-2-Clause

PyPortfolioOpt

Portfolio optimization methods in Python

PyPortfolioOpt implements mean-variance optimization, Black-Litterman allocation, hierarchical risk parity, and related portfolio methods with scikit-learn-style APIs.

  • Mean-variance optimization
  • Black-Litterman allocation
  • Hierarchical risk parity
Jupyter NotebookDetails →
★ 6.2k⟳ 4 months agoMIT

GoPay

Go SDK for WeChat Alipay and other payment APIs

GoPay wraps many Chinese and international payment providers in one Go module. Separate packages cover WeChat, Alipay, Douyin, PayPal, Apple verification, and others.

  • Multi-provider payment clients
  • WeChat and Alipay v3
  • PayPal and Apple verify
GoDetails →
★ 5.8k⟳ 3 months agoApache-2.0