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 is also available.
Visit our project site for more information:
Getting started
Windows
-
Install .NET SDK (6.0 or newer):
- Download from Microsoft .NET Downloads
- Or using winget:
winget install Microsoft.DotNet.SDK.6 - Verify:
dotnet --info
-
Install the package:
pip install stock-indicators
macOS
-
Install .NET SDK (6.0 or newer):
brew install dotnet-sdk dotnet --info # Verify installation
-
Install the package:
pip install stock-indicators
Example usage
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 or our documentation site.
Metadata
Release files for stock-indicators 1.3.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| stock_indicators-1.3.5.tar.gz | 4.7 MB | With provenance | Details for stock_indicators-1.3.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stock_indicators-1.3.5-py3-none-any.whl | Python 3 | none | any | Details for stock_indicators-1.3.5-py3-none-any.whl |
Total release size: 4.9 MB
Release files / stock_indicators-1.3.5.tar.gz
| Download URL | stock_indicators-1.3.5.tar.gz |
|---|---|
| Size | 4.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1218768cab45f513702468a60e6dab5ac9fa1fcc3b33502fc562a4daf78ef139
|
|
BLAKE2b-256 checksum How to use checksums |
6a84d60bfbd389fdfe8a81b194de4611355a3e0995bea80df5f56fde7b54e1b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 2, 2025.
Transparency logRelease files / stock_indicators-1.3.5-py3-none-any.whl
| Download URL | stock_indicators-1.3.5-py3-none-any.whl |
|---|---|
| Size | 185.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0936b1e95479161295aa99238f097d296f28de3f354cf629086812940af613f3
|
|
BLAKE2b-256 checksum How to use checksums |
b715710e67b12fd45e2499190a58e627ff7458d24f04c9e797ba6975ba5f11b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 2, 2025.
Transparency logSecurity for stock-indicators 1.3.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for stock_indicators-1.3.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 2, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.