stockstats — Technical Indicator Library
Lightweight BSD-licensed Python library providing 80+ stock technical indicators (RSI, MACD, Bollinger Bands, ATR) as simple DataFrame column lookups.
stockstats — Technical Indicator Library
stockstats wraps pandas DataFrames to auto-compute 80+ technical indicators via simple column-name magic — df["close_20_sma"], df["rsi_14"], df["macd"] — making it trivial to build feature matrices for ML trading models, backtests, and screening pipelines.
Key Features
- 80+ indicators: SMA, EMA, RSI, MACD, Bollinger Bands, ATR, ADX, CCI, Stochastic, Williams %R, and more
- Zero-boilerplate API: computed on-demand as DataFrame columns
- Works with any OHLCV data source (Yahoo Finance, Alpha Vantage, Binance)
- Minimal dependencies: only pandas and numpy
- BSD-3-Clause licence — safe for commercial use
Quick Start
import yfinance as yf
from stockstats import StockDataFrame
raw = yf.download("TSLA", start="2023-01-01")
df = StockDataFrame.retype(raw)
print(df[["close_14_rsi", "macd", "boll"]])
npx ai-supply add stockstats-technical-indicators
Curated mirror of the open-source stockstats (BSD-3-Clause). Get it from the source.
Compromise signals — malicious or tampered code (leaked secrets, backdoors, a dropped executable) — reduce the score, and known dependency CVEs carry a bounded penalty (they warrant review but never QUARANTINE — update the dependency to clear). Other dangerous-by-capability traits are risk surface, expected for some capabilities. Every finding is mapped to its OWASP control below.
Findings mapped to the OWASP Top 10 for LLM Applications (2025) and the OWASP Machine Learning Security Top 10. Expand any flagged control for the exact findings — compromise reduces the score; expected/risk-surface do not, except a known CVE, which carries a small bounded penalty (high/critical → Review).
The same gate an agent runs before installing (POST /api/v1/trust/stockstats-technical-indicators/check). Click a policy:
Consume stockstats — Technical Indicator Library programmatically. Authenticate with an API key or session — see Authorize an agent.
# Agents: CHECK BEFORE YOU INSTALL (no auth) — score, grade, level, capability manifest
curl https://ai-supply.store/api/v1/trust/stockstats-technical-indicators
# Gate against your org policy (returns { pass, violations })
curl -X POST https://ai-supply.store/api/v1/trust/stockstats-technical-indicators/check \
-H "Content-Type: application/json" \
-d '{"minGrade":"B","denyPermissions":["shell"],"denyUnknownEgress":true}'
# CLI
npx ai-supply add stockstats-technical-indicators
# REST (install → download)
curl -X POST https://ai-supply.store/api/v1/listings/stockstats-technical-indicators/install \
-H "Authorization: Bearer $AIM_KEY"
# MCP tool
install_listing({ "slug": "stockstats-technical-indicators" })OpenAPI spec →Curated mirror — latest upstream source. See the repository for tagged releases.