Skip to main content

⚡ 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), and Flutter.

Binder Open in Colab Documentation


ferro-ta is a Rust-core technical analysis library with first-class bindings for Python, Rust, JavaScript (WASM), and Flutter.

Python, JavaScript (WASM), and Flutter wrap ferro_ta_core; Rust uses that crate directly. 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), and Flutter
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

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

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);
}

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-ta achieves 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×), and SMA (1.93×) vs TA-Lib.
  • TA-Lib maintains performance advantages on STOCH and ADX; EMA, ATR, and OBV are statistical ties.
  • Compared to pure-Python libraries like Tulipy, ferro-ta provides 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, and 194 generated Flutter wrappers. 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, and Flutter natives (web reuses WASM).
  • 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-ta implements 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 9 streaming classes that TA-Lib does not provide. Not yet implemented: ACCBANDS, IMI, AVGDEV, MINMAX, MINMAXINDEX.
  • Most functions are marked Exact or Close; the remaining notable non-exact categories are the Hilbert cycle indicators plus MAMA, SAR, and SAREXT.
  • The full parity matrix and coverage summary now live in TA_LIB_COMPATIBILITY.md.

Migration and compatibility references:

Docs map

Languages:

Python guides:

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.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ferro-ta 1.3.1
File Size Uploaded Provenance Actions
ferro_ta-1.3.1.tar.gz 1.3 MB With provenance Details for ferro_ta-1.3.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for ferro-ta 1.3.1
File Actions
ferro_ta-1.3.1-cp310-abi3-win_arm64.whl CPython 3.10 abi3 Windows ARM64 Details for ferro_ta-1.3.1-cp310-abi3-win_arm64.whl
ferro_ta-1.3.1-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for ferro_ta-1.3.1-cp310-abi3-win_amd64.whl
ferro_ta-1.3.1-cp310-abi3-musllinux_1_2_x86_64.whl CPython 3.10 abi3 Linux musl 1.2+ x86-64 Details for ferro_ta-1.3.1-cp310-abi3-musllinux_1_2_x86_64.whl
ferro_ta-1.3.1-cp310-abi3-musllinux_1_2_aarch64.whl CPython 3.10 abi3 Linux musl 1.2+ ARM64 Details for ferro_ta-1.3.1-cp310-abi3-musllinux_1_2_aarch64.whl
ferro_ta-1.3.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for ferro_ta-1.3.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
ferro_ta-1.3.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for ferro_ta-1.3.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
ferro_ta-1.3.1-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl CPython 3.10 abi3 macOS 10.12+ universal2 (ARM64, x86-64), macOS 11.0+ ARM64, macOS 10.12+ x86-64 Details for ferro_ta-1.3.1-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl

Total release size: 11.6 MB

Release files / ferro_ta-1.3.1.tar.gz

Download URL ferro_ta-1.3.1.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
60002dcaf96c71fdd38590d2e6377bdde48dc4dba464427812487cba9c27ac7d
BLAKE2b-256 checksum
How to use checksums
6fbb6e2b2abdd7e7cb8f38601b72c104adf4bf51b5c162e71d5b8e283d471d64
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 Sep 21, 2026.

Transparency log

Release files / ferro_ta-1.3.1-cp310-abi3-win_arm64.whl

Download URL ferro_ta-1.3.1-cp310-abi3-win_arm64.whl
Size 1.2 MB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
18c80de452f34c00f307a5d1e24052dc74fb2dc103314e626fdbbc08f5c7752c
BLAKE2b-256 checksum
How to use checksums
3dd25580e7b75f520560bb2d99a5ff685411477af13005a6ffaf14de9384641c
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 Sep 21, 2026.

Transparency log

Release files / ferro_ta-1.3.1-cp310-abi3-win_amd64.whl

Download URL ferro_ta-1.3.1-cp310-abi3-win_amd64.whl
Size 1.4 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
95228c3de2e0d4c52e347ee3181152203d2fd77c7227b26301600bd0af6e6972
BLAKE2b-256 checksum
How to use checksums
83a0fa55f08be604f568f3fc4decec5d050d71eedeef89f6f739202e541376ce
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 Sep 21, 2026.

Transparency log

Release files / ferro_ta-1.3.1-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL ferro_ta-1.3.1-cp310-abi3-musllinux_1_2_x86_64.whl
Size 1.6 MB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
e49d9ef21ebd5297b439790a7eddf2a295d5cea8ef4bd42465aaf01cb5b46b2e
BLAKE2b-256 checksum
How to use checksums
78ed1a2001bc541ecb1b0bfacf8a3b92b4cb671b588f3a1c5567e7f7ba513c6a
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 Sep 21, 2026.

Transparency log

Release files / ferro_ta-1.3.1-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL ferro_ta-1.3.1-cp310-abi3-musllinux_1_2_aarch64.whl
Size 1.4 MB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
960e39a25f1157a5e612449b802e68d268f57c0aebe7ab9afc6bac7aea519d80
BLAKE2b-256 checksum
How to use checksums
a835d2294f932ac3e9bb96ec0def5a4181bc03cee08945922adf7ac127107aaf
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 Sep 21, 2026.

Transparency log

Release files / ferro_ta-1.3.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL ferro_ta-1.3.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.3 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
23f205b42a624edaea601bc239b27df928c2d5489f27a91a1754a81898b396d1
BLAKE2b-256 checksum
How to use checksums
86b97b75e142187c08ca026f0aec5728a15f916258e550794dea5c48ac307af6
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 Sep 21, 2026.

Transparency log

Release files / ferro_ta-1.3.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL ferro_ta-1.3.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.2 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
db51ebcd47370de45702c959aa8dda6e09c18c459514bcea5add7262fd3ecd1f
BLAKE2b-256 checksum
How to use checksums
081a24c676bedd8fefc3553ba0325759f4226213b4babec7888cde9ae1c9b36f
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 Sep 21, 2026.

Transparency log

Release files / ferro_ta-1.3.1-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl

Download URL ferro_ta-1.3.1-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Size 2.2 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
ef408e3b45c6243c23e34c5d30dd36c5689cc3eebcdee3927fd6678d68424ebc
BLAKE2b-256 checksum
How to use checksums
41c9b3f775e6457184d5983b2d57ce3fff7e447b83f9ac64718c09174368130d
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 Sep 21, 2026.

Transparency log

Security for ferro-ta 1.3.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.

Select from 8 files

Attestation for ferro_ta-1.3.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 Sep 21, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page