qmetrics.net

arch

Python econometrics library for ARCH and volatility models

arch screenshot

arch provides Python implementations of ARCH and GARCH volatility models, unit root and cointegration tests, bootstraps, and related financial econometrics tools.

Overview

arch is a Python package for financial econometrics, centered on autoregressive conditional heteroskedasticity models and companion methods used in empirical finance. Core areas include univariate volatility modeling, unit root testing, cointegration analysis, bootstrap inference, multiple comparison procedures, and long-run covariance estimation.

Volatility modeling supports many mean specifications from constant and AR through ARCH-in-mean, plus variance processes such as ARCH, GARCH, EGARCH, FIGARCH, MIDAS, and RiskMetrics-style EWMA. Distributions cover normal, Student-t, skewed variants, and generalized error forms, with residual diagnostics and value-at-risk backtests.

Unit root tooling covers Augmented Dickey-Fuller, DF-GLS, Phillips-Perron, KPSS, Zivot-Andrews, and variance ratio tests. Cointegration features Engle-Granger and Phillips-Ouliaris tests with estimation via canonical cointegrating regression, dynamic OLS, and fully modified OLS. Bootstrap modules implement IID, stationary, and block schemes, while SPA, StepM, and model confidence set routines address predictive ability comparisons.

Performance-sensitive paths may use Cython or Numba. The library installs from PyPI or conda-forge as arch-py, with prebuilt wheels for Linux, macOS, and Windows when binaries are enabled.

Key features

  • ARCH, GARCH, and extended volatility models
  • Unit root and cointegration test suite
  • Bootstrap confidence intervals and inference
  • SPA and model confidence set tests
  • Long-run covariance estimators
  • VaR backtesting diagnostics
  • Optional Numba-accelerated recursions
  • PyPI and conda-forge installation

Use cases

  • Modeling financial return volatility
  • Hypothesis testing for unit roots
  • Cointegration analysis in time series
  • Bootstrap evaluation of trading statistics

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