qmetrics.net

TA Lib Python

Python bindings for TA-Lib technical analysis indicators

TA Lib Python screenshot

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.

Overview

This package is a Python wrapper around the TA-Lib C library, which implements widely used technical analysis algorithms and candlestick pattern recognition. Bindings use Cython and NumPy, and callers can also pass Pandas or Polars series and data frames.

The function API mirrors classic TA-Lib calls, returning arrays with configurable parameters and documented lookback behavior before the first valid value. The abstract API accepts named OHLCV inputs and can return frame-like outputs. The streaming API maintains per-indicator state for O(1) updates on new bars without recomputing full history.

PyPI wheels bundle the underlying C library for common Linux, macOS, and Windows architectures across supported Python versions, avoiding a separate C install when a matching wheel exists. Source builds can download and statically link a pinned C release or link an existing system installation via environment variables.

Hundreds of grouped indicators cover overlap studies, momentum, volume, cycles, volatility, patterns, and math operators, with process-wide settings for unstable periods and compatibility modes.

Key features

  • 200+ technical indicators
  • Function, abstract, streaming APIs
  • NumPy, Pandas, Polars inputs
  • Binary wheels with bundled C lib
  • Candlestick pattern recognition
  • Configurable unstable periods
  • Thread-safe stream handles
  • Conda Forge distribution

Use cases

  • Quantitative strategy research
  • Batch indicator calculation
  • Incremental bar updates
  • OHLCV dataframe analysis
  • Pattern recognition on prices

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

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

FinanceToolkit

Transparent Python financial metrics and analysis toolkit

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.

  • Documented ratio and model catalog
  • Financial Modeling Prep data access
  • Yahoo Finance fallback option
PythonDetails →
★ 5.6k⟳ todayMIT