TA-Lib Python — Technical Analysis Indicators
Python wrapper for TA-Lib: 150+ technical indicators (MACD, RSI, Bollinger, candlestick patterns) in C speed.
TA-Lib Python — Technical Analysis Indicators
TA-Lib Python is the most widely-used Python binding for the battle-tested C library TA-Lib, providing 150+ technical analysis indicators used by algorithmic traders worldwide. Computation runs in native C, so it handles millions of bars without performance issues.
Key features
- 150+ indicators: MACD, RSI, Bollinger Bands, ADX, Stochastic, ATR, OBV, MFI
- 61 candlestick pattern recognizers (doji, hammer, engulfing, etc.)
- Array-in / array-out API — integrates directly with NumPy and Pandas
- Used in Backtrader, Zipline, and QuantConnect strategies
- BSD-licensed, no viral restrictions
Quick start
pip install TA-Lib
import talib
import numpy as np
close = np.random.random(100)
macd, signal, hist = talib.MACD(close)
rsi = talib.RSI(close, timeperiod=14)
pattern = talib.CDLDOJI(open_, high, low, close)
npx ai-supply add ta-lib-python-technical-analysis
Curated mirror of the open-source TA-Lib Python (BSD-2-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/ta-lib-python-technical-analysis/check). Click a policy:
Consume TA-Lib Python — Technical Analysis Indicators 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/ta-lib-python-technical-analysis
# Gate against your org policy (returns { pass, violations })
curl -X POST https://ai-supply.store/api/v1/trust/ta-lib-python-technical-analysis/check \
-H "Content-Type: application/json" \
-d '{"minGrade":"B","denyPermissions":["shell"],"denyUnknownEgress":true}'
# CLI
npx ai-supply add ta-lib-python-technical-analysis
# REST (install → download)
curl -X POST https://ai-supply.store/api/v1/listings/ta-lib-python-technical-analysis/install \
-H "Authorization: Bearer $AIM_KEY"
# MCP tool
install_listing({ "slug": "ta-lib-python-technical-analysis" })OpenAPI spec →Curated mirror — latest upstream source. See the repository for tagged releases.