https://github.com/facioquo/stock-indicators-python
Stock Indicators for Python. Maintained by @LeeDongGeon1996
https://github.com/facioquo/stock-indicators-python
quantitative-finance stock stock-analysis stock-indicators stock-market technical-analysis technical-indicators trading trading-algorithms
Last synced: about 1 month ago
JSON representation
Stock Indicators for Python. Maintained by @LeeDongGeon1996
- Host: GitHub
- URL: https://github.com/facioquo/stock-indicators-python
- Owner: facioquo
- License: apache-2.0
- Created: 2021-07-12T13:55:50.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2026-05-11T19:48:46.000Z (about 1 month ago)
- Last Synced: 2026-05-11T21:37:03.018Z (about 1 month ago)
- Topics: quantitative-finance, stock, stock-analysis, stock-indicators, stock-market, technical-analysis, technical-indicators, trading, trading-algorithms
- Language: Python
- Homepage: https://python.StockIndicators.dev
- Size: 14.4 MB
- Stars: 384
- Watchers: 14
- Forks: 64
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Contributing: docs/contributing.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: .github/SECURITY.md
- Agents: AGENTS.md
Awesome Lists containing this project
README
[](https://python.stockindicators.dev/)
[](https://badge.fury.io/py/stock-indicators)
[](https://pypistats.org/packages/stock-indicators)
# Stock Indicators for Python
**Stock Indicators for Python** is a PyPI library package that produces financial market technical indicators. Send in historical price quotes and get back desired indicators such as moving averages, Relative Strength Index, Stochastic Oscillator, Parabolic SAR, etc. Nothing more.
It can be used in any market analysis software using standard OHLCV price quotes for equities, commodities, forex, cryptocurrencies, and others. We had trading algorithms, machine learning, and charting systems in mind when originally creating this community library. [Stock Indicators for .NET](https://dotnet.stockindicators.dev/) is also available.
Visit our project site for more information:
- [Overview](https://python.stockindicators.dev/)
- [Indicators and overlays](https://python.stockindicators.dev/indicators/)
- [Guide and Pro tips](https://python.stockindicators.dev/guide/)
- [Release notes](https://github.com/facioquo/stock-indicators-python/releases)
- [Discussions](https://github.com/DaveSkender/Stock.Indicators/discussions)
- [Contributing](https://github.com/facioquo/stock-indicators-python/blob/main/docs/contributing.md#readme)
## Getting started
### Windows
1. Install .NET SDK (8.0 or newer):
- Download from [Microsoft .NET Downloads](https://dotnet.microsoft.com/download)
- Or using winget: `winget install Microsoft.DotNet.SDK.8`
- Verify: `dotnet --info`
2. Install the package:
```bash
pip install stock-indicators
```
### macOS
1. Install .NET SDK (8.0 or newer):
```bash
brew install dotnet-sdk
dotnet --info # Verify installation
```
2. Install the package:
```bash
pip install stock-indicators
```
## Example usage
```python
from stock_indicators import indicators
# fetch your data
quotes = get_history("MSFT")
# calculate 20-period SMA
results = indicators.get_sma(quotes, 20)
```
> **Note:** This is a simple example. For a step-by-step guide, see the [QuickStart Guide](https://github.com/facioquo/stock-indicators-python-quickstart#readme) or our [documentation](https://python.stockindicators.dev/) site.