⚡ ferro-ta
Rust-core technical analysis with first-class language bindings
ferro-ta is a Rust-core technical analysis library with first-class bindings for Python, Rust, JavaScript (WASM), Flutter, and Go, plus a C API.
ferro-ta is a Rust-core technical analysis library with first-class bindings for Python, Rust, JavaScript (WASM), Flutter, and Go, plus a C API.
Python, JavaScript (WASM), Flutter, and Go wrap ferro_ta_core; Rust uses that crate directly. Go and C/C++ go through one shared C ABI crate, ferro_ta_ffi, that future C-ABI languages build on. New languages may only wrap the core — reimplementing indicators is out of scope. See Adding a language.
Python is the most complete ergonomic surface (TA-Lib names, pandas/polars, Sphinx autodoc). It is not the only product.
What ferro-ta is
| TA-Lib | ferro-ta | |
|---|---|---|
| Core | C implementations | Pure Rust ferro_ta_core |
| Languages | C API plus community wrappers | First-class Python, Rust, JavaScript (WASM), Flutter, and Go, plus a C API |
| API shape | talib.SMA(close, 20) |
Same indicators in each language (SMA, sma, overlap::sma) |
| Installation | Often requires a native/system toolchain | Pre-built packages on supported targets |
| Scope | Technical indicators | Technical indicators first; other tooling is optional |
Install
| Language | Package | Install |
|---|---|---|
| Python | PyPI ferro-ta |
pip install ferro-ta |
| Rust | crates.io ferro_ta_core |
cargo add ferro_ta_core |
| JavaScript | npm ferro-ta-wasm |
npm install ferro-ta-wasm |
| Flutter / Dart | pub.dev ferro_ta |
flutter pub add ferro_ta |
| Go | github.com/pratikbhadane24/ferro-ta/bindings/go |
go get github.com/pratikbhadane24/ferro-ta/bindings/go |
| C / C++ | GitHub Release assets | ferro_ta.h + static/shared library per platform |
Python extras:
pip install "ferro-ta[pandas]" # pandas.Series support
pip install "ferro-ta[polars]" # polars.Series support
pip install "ferro-ta[gpu]" # PyTorch-backed GPU helpers
pip install "ferro-ta[options]" # derivatives analytics helpers
pip install "ferro-ta[mcp]" # MCP server for agent/tool clients
pip install "ferro-ta[all]" # most optional extras (excluding gpu)
Language guides: Python · Rust · WASM · Flutter · Go · C / C++
Quick start
The same four indicators — SMA, RSI, MACD, BBANDS — on every binding.
Python
import numpy as np
from ferro_ta import SMA, RSI, MACD, BBANDS
close = np.linspace(44.0, 48.0, 40)
sma = SMA(close, timeperiod=5)
rsi = RSI(close, timeperiod=14)
macd_line, signal, histogram = MACD(close, fastperiod=12, slowperiod=26, signalperiod=9)
upper, middle, lower = BBANDS(close, timeperiod=5, nbdevup=2.0, nbdevdn=2.0)
Rust
use ferro_ta_core::{momentum, overlap};
fn main() {
let close: Vec<f64> = (0..40).map(|i| 44.0 + i as f64 * 0.1).collect();
let sma = overlap::sma(&close, 5);
let rsi = momentum::rsi(&close, 14);
let (macd, signal, hist) = overlap::macd(&close, 12, 26, 9);
let (upper, middle, lower) = overlap::bbands(&close, 5, 2.0, 2.0);
}
JavaScript (WASM)
const { sma, rsi, macd, bbands } = require('ferro-ta-wasm');
const close = Float64Array.from({ length: 40 }, (_, i) => 44 + i * 0.1);
console.log(sma(close, 5));
console.log(rsi(close, 14));
const [macdLine, signal, hist] = macd(close, 12, 26, 9);
const [upper, middle, lower] = bbands(close, 5, 2.0, 2.0);
Flutter
import 'dart:typed_data';
import 'package:ferro_ta/ferro_ta.dart';
Future<void> main() async {
await FerroTa.init();
final close = Float64List.fromList([
for (var i = 0; i < 40; i++) 44.0 + i * 0.1,
]);
final smaOut = await sma(close: close, timeperiod: 5);
final rsiOut = await rsi(close: close, timeperiod: 14);
final (macdLine, signal, hist) =
await macd(close: close, fastperiod: 12, slowperiod: 26, signalperiod: 9);
final (upper, middle, lower) =
await bbands(close: close, timeperiod: 5, nbdevup: 2, nbdevdn: 2);
}
Go
import ferrota "github.com/pratikbhadane24/ferro-ta/bindings/go"
sma, err := ferrota.Sma(close, 20)
macd, signal, hist, err := ferrota.Macd(close, 12, 26, 9)
upper, middle, lower, err := ferrota.Bbands(close, 20, 2, 2, ferrota.MATypeSMA)
rsi, _ := ferrota.NewStreamRsi(14) // bar-by-bar
defer rsi.Close()
value, err := rsi.Update(lastPrice)
Benchmark evidence
The latest checked-in TA-Lib comparison artifact uses contiguous float64
arrays at 10k and 100k bars on an Apple M3 Max, CPython 3.13.5, and Rust 1.91.1.
ferro-taachieves competitive parity with TA-Lib, winning on 7 of 12 tested indicators at 100k bars (5 of 12 at 10k bars).- Strong performance wins at 100k bars include
MFI(3.25×),WMA(2.20×),BBANDS(1.97×), andSMA(1.93×) vs TA-Lib. - TA-Lib maintains performance advantages on
STOCHandADX;EMA,ATR, andOBVare statistical ties. - Compared to pure-Python libraries like Tulipy,
ferro-taprovides 150-350x speedups through Rust-optimized implementations.
See the benchmark methodology and artifacts:
Capabilities
- 240+ indicators over a shared Rust core, including adaptive moving averages, volume oscillators,
and signal utilities (
ALMA,VIDYA,KVO,VORTEX,CROSSOVER, and related). - The extended catalog is bound on every surface: 360 core symbols, 247 Python names, 344 WASM exports, 194 generated Flutter wrappers, and 262 C ABI / Go exports. See docs/languages/coverage for the per-indicator table.
- Batch and streaming APIs for multi-series and bar-by-bar workloads.
- Python extras: NumPy-first execution with pandas and polars adapters, type stubs, and Sphinx autodoc.
- Pre-built artifacts: Python wheels, crates.io, npm, Flutter natives (web reuses WASM), a Go module with prebuilt static archives, and C/C++ libraries on each GitHub Release.
- Reproducible benchmarks instead of blanket speed claims.
Adjacent surfaces — derivatives analytics, MCP, GPU helpers, plugins, and agent wrappers — remain opt-in. See docs/adjacent_tooling.rst.
TA-Lib compatibility
ferro-taimplements 156 of TA-Lib 0.6.4's 161 functions, plus an extended catalog (adaptive MAs, volume/oscillator studies, statistic helpers, and signal utilities) and 13 streaming classes plus a tick→bar builder that TA-Lib does not provide. Not yet implemented:ACCBANDS,IMI,AVGDEV,MINMAX,MINMAXINDEX.- Most functions are marked
ExactorClose; the remaining notable non-exact categories are the Hilbert cycle indicators plusMAMA,SAR, andSAREXT. - The full parity matrix and coverage summary now live in TA_LIB_COMPATIBILITY.md.
Migration and compatibility references:
- docs/migration_talib.rst
- docs/compatibility/talib.md
- docs/support_matrix.rst
- docs/languages/coverage.rst — generated Python / Rust / WASM / Flutter coverage
Docs map
Languages:
Python guides:
- docs/migration_talib.rst
- docs/support_matrix.rst
- docs/batch.rst
- docs/streaming.rst
- docs/derivatives.rst
Evidence and optional tooling:
Project and release docs:
Development
uv sync --extra dev
uv run pytest tests/unit tests/integration
uv run maturin build --release --out dist
More setup details live in CONTRIBUTING.md. New language bindings must wrap ferro_ta_core — see docs/languages/adding.rst.
Metadata
Release files for ferro-ta 1.5.1
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 |
|---|---|---|---|---|
| ferro_ta-1.5.1.tar.gz | 2.2 MB | With provenance | Details for ferro_ta-1.5.1.tar.gz |
Built distributions (wheels)
Total release size: 14.5 MB
Release files / ferro_ta-1.5.1.tar.gz
| Download URL | ferro_ta-1.5.1.tar.gz |
|---|---|
| Size | 2.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2bbc274415129be0f15ffb348ac6319e84d052c7a8bb1c3cd24f4767124da9db
|
|
BLAKE2b-256 checksum How to use checksums |
20cb61dd234a9ef5269e4edd8f6d6cd0e0369d512d44641a9b843ab2148031f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 17, 2026.
Transparency logRelease files / ferro_ta-1.5.1-cp310-abi3-win_arm64.whl
| Download URL | ferro_ta-1.5.1-cp310-abi3-win_arm64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.10 Windows ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
bacd523e019d9803721e8b3b4c2a30ee1b2898c542a4bca985f6ce307740e782
|
|
BLAKE2b-256 checksum How to use checksums |
1a2b9b0a4560a4e2e27f4f6e2dd895b53cb51749b104fa4dae43a3d8a2a6f915
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 17, 2026.
Transparency logRelease files / ferro_ta-1.5.1-cp310-abi3-win_amd64.whl
| Download URL | ferro_ta-1.5.1-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
9e478d2eecab68966bbc7df2ee002106b4ee3bf3677fd0b8e59032c12309370a
|
|
BLAKE2b-256 checksum How to use checksums |
d9bddba1bcc4d01576d53deecf4b02d20af68e3591642230b3da802c84c16341
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 17, 2026.
Transparency logRelease files / ferro_ta-1.5.1-cp310-abi3-musllinux_1_2_x86_64.whl
| Download URL | ferro_ta-1.5.1-cp310-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | CPython 3.10 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
bdc6fb1f48965e871da1238baf489f81262cb659e0406f2fdc9b31cc47da516e
|
|
BLAKE2b-256 checksum How to use checksums |
01499c13abd6bfd0acb8e98441b757c7b2918d5ba3b5b2484a01da1efbd05e58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 17, 2026.
Transparency logRelease files / ferro_ta-1.5.1-cp310-abi3-musllinux_1_2_aarch64.whl
| Download URL | ferro_ta-1.5.1-cp310-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.10 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
a05b9a661bc0dd18ca2d4ffc21a9e1d586d58db5043b0f7e6a17c59cd188dac6
|
|
BLAKE2b-256 checksum How to use checksums |
d36bacc059ef2de547616ffa919b0151078f6eeb5a3a6e4eff6c9190a7bbd71a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 17, 2026.
Transparency logRelease files / ferro_ta-1.5.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | ferro_ta-1.5.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
a8d178fa9a9ae08b9736954c78a903760be624b1771df1ed2bd932cba5acf3e1
|
|
BLAKE2b-256 checksum How to use checksums |
92d5667baab4e47f7b1da82eb2fa32af74a6e2e50b67cbf9b20b83c94e11c1ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 17, 2026.
Transparency logRelease files / ferro_ta-1.5.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | ferro_ta-1.5.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
74b4f3a30defc7061690cb98417bad1591487a7782a156017c2bbb468ce6ff24
|
|
BLAKE2b-256 checksum How to use checksums |
b940ea8528f70cf2b445287880334ec3e94bf95ba69e18d6dae88e10b4598ed0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 17, 2026.
Transparency logRelease files / ferro_ta-1.5.1-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
| Download URL | ferro_ta-1.5.1-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl |
|---|---|
| Size | 2.8 MB |
| Tags | CPython 3.10 abi3 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
b6087a9eb65a217cc1a3a9f6d6b6a031a95aa3aacffae885acfafec27bf8a61d
|
|
BLAKE2b-256 checksum How to use checksums |
6b49a4479e3e842540317b3779ded0b42e437e1a586b5c181da50519bf229fc8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 17, 2026.
Transparency logSecurity for ferro-ta 1.5.1
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
All 8 files in this release have been uploaded with provenance metadata.
Attestation for ferro_ta-1.5.1.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 Oct 17, 2026.
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.