stockstats
DataFrame with inline stock statistics support.
Decision gist · record as of 2026-08-14
Yes. stockstats is actively maintained, has no security vulnerabilities, low install friction, and a permissive license. It provides a comprehensive, well-documented library of technical indicators for stock analysis. Install it if you need to add technical analysis to pandas-based financial workflows; skip it only if you require indicators not in its supported list or need real-time streaming optimizations.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9+.
- Input DataFrame must contain OHLCV columns: close, high, low, volume (case-insensitive).
- Low install friction with only numpy and pandas as dependencies.
License · maintenance · safety
BSD-3-Clause (permissive) — BSD-3-Clause is permissive and poses no restriction on commercial or private use.
last release 2026-02-16 (179 days) · last repo commit 2026-06-19 · 1,486 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 219,665 downloads/mo, #9,322 on PyPI
Alternatives
Verify before relying
pip install stockstats
import pandas as pd
from stockstats import wrap
df = wrap(pd.read_csv('stock.csv'))
rsi = df['rsi']
sma_20 = df['close_20_sma']- Whether indicator calculations match industry-standard implementations or have known deviations from common trading platforms
- Performance characteristics when working with large datasets or real-time streaming data
- Accuracy of less common indicators like Ichimoku, Wave Trend, or Quantitative Qualitative Estimation relative to reference implementations
What it is and what it does
stockstats wraps pandas DataFrames to add inline technical analysis indicators commonly used in stock trading and financial analysis. It provides a large library of pre-built indicators—moving averages (SMA, EMA, SMMA, TEMA, LRMA, KAMA, VWMA, DMA), momentum oscillators (RSI, MACD, Stochastic, KDJ, ROC, CMO, KST, Coppock, AO, BOP, CTI, Inertia, PSL), trend indicators (Supertrend, Aroon, Ichimoku, DMI, TRIX, Wave Trend), volatility measures (Bollinger Bands, ATR, CCI, Williams %R, CHOP, KER, Z-Score, MAD, PGO), volume analysis (VR, MFI, PVO, VWMA), and oscillators (QQE, RVGI, ERI, FTR)—plus utility functions for delta, shifts, log returns, and cross-over detection.
You initialize it by wrapping a pandas DataFrame containing standard OHLCV columns (close, high, low, volume, optionally date), then access indicators by column name patterns like `df['rsi']` or `df['close_20_sma']`. Indicators are calculated on first access and cached; you can delete a column to force re-evaluation. Multi-line indicators like MACD and Bollinger Bands generate multiple columns at once. The library supports Python 3.9+ and has no compiled dependencies.
Use it for
- Build trading signal detection systems by accessing RSI, MACD, or Bollinger Bands to identify overbought/oversold conditions and trend reversals.
- Analyze historical stock data with cross-over detection (e.g., golden cross of 10-period and 50-period SMAs) to backtest trading strategies.
- Generate multi-indicator dashboards by wrapping pandas data and accessing dozens of indicators with simple column access patterns.
- Calculate momentum and volatility metrics (Stochastic RSI, ATR, CCI) for risk assessment and position sizing in algorithmic trading.
- Detect trend changes using Supertrend, Aroon, Ichimoku, or DMI indicators to automate entry and exit signals.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
stockstats is actively maintained, has no security vulnerabilities, low install friction, and a permissive license. It provides a comprehensive, well-documented library of technical indicators for stock analysis. Install it if you need to add technical analysis to pandas-based financial workflows; skip it only if you require indicators not in its supported list or need real-time streaming optimizations.
Install
stockstats on PyPI
Before you install
Low install friction with only numpy and pandas as dependencies. Active maintenance with a recent release on 2026-02-16 and last commit on 2026-06-19; the repository has 1486 stars.
Requires Python 3.9+. Input DataFrame must contain OHLCV columns: close, high, low, volume (case-insensitive).
License in practice
BSD-3-Clause is permissive and poses no restriction on commercial or private use.
Quickstart
pip install stockstats
import pandas as pd
from stockstats import wrap
df = wrap(pd.read_csv('stock.csv'))
rsi = df['rsi']
sma_20 = df['close_20_sma']
Verify before relying
- Whether indicator calculations match industry-standard implementations or have known deviations from common trading platforms
- Performance characteristics when working with large datasets or real-time streaming data
- Accuracy of less common indicators like Ichimoku, Wave Trend, or Quantitative Qualitative Estimation relative to reference implementations
Package facts
| License | BSD-3-Clause permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesnumpypandas |
| Maintenance | Actively maintained 179 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 219,665 / month, #9,322 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: Financial and Insurance IndustryNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonTopic :: Utilities |
Evidence: stockstats-0.6.8-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “stock technical indicators”
- stockstatsAdds technical analysis indicators and statistics to pandas…
- tradingview-taRetrieves technical analysis indicators and trading signals from…
- alpha-vantageFetches real-time and historical stock, cryptocurrency, forex, and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also ft-pandas-ta · technical · ta · pandas-ta-classic · TA-Lib · hampel · pandas-ta · tushare · alpha-vantage · finance-datareader