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), Flutter, and Go, plus a C API.

Binder Open in Colab Documentation


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-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, 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, including 215 registry-generated streams that match their batch functions bar for bar on every surface (catalog).
  • 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-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 a streaming class for nearly every indicator (215 registry-generated streams plus the hand-written originals) with a tick→bar builder 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.6.0

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.6.0
File Size Uploaded Provenance Actions
ferro_ta-1.6.0.tar.gz 2.6 MB With provenance Details for ferro_ta-1.6.0.tar.gz

Built distributions (wheels)

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

Total release size: 28.2 MB

Release files / ferro_ta-1.6.0.tar.gz

Download URL ferro_ta-1.6.0.tar.gz
Size 2.6 MB
Tags Source
SHA-256 checksum
How to use checksums
3727c8d22e32be48ecd9831ca8f4f9efa75927e7e22796a9c02f537141e85272
BLAKE2b-256 checksum
How to use checksums
cc6f2ec17edaab2d8319bfd0b5c050045bd37039a283b137fae5b73f6cbdd195
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 19, 2026.

Transparency log

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

Download URL ferro_ta-1.6.0-cp310-abi3-win_arm64.whl
Size 3.1 MB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
a070688a92ba801c4032eac7397fc55c8842460f39a12e2c2e2731e836e6fcb9
BLAKE2b-256 checksum
How to use checksums
e146e01dea96cae4e040fe8c9f2888f04441d7a9d341c0efcaff5da2fa7bc4a7
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 19, 2026.

Transparency log

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

Download URL ferro_ta-1.6.0-cp310-abi3-win_amd64.whl
Size 3.6 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
a2bc498d24a0fdd40c3e8521060e8fb308554edf1c4a25325c7978335a1ed6ab
BLAKE2b-256 checksum
How to use checksums
f4287aa59804841285ee1b28b73a5766fe78506c07a1d0a37f4073962782ec86
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 19, 2026.

Transparency log

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

Download URL ferro_ta-1.6.0-cp310-abi3-musllinux_1_2_x86_64.whl
Size 3.5 MB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
bb4e28cc2d69dfbdd40095aa4391c3680e24dfeeb7af01618027478fd0e5185b
BLAKE2b-256 checksum
How to use checksums
db8cf743eb57ab0a7b3d5662c05c3d413e7281296fcea5e83a2fc869ee9ddc70
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 19, 2026.

Transparency log

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

Download URL ferro_ta-1.6.0-cp310-abi3-musllinux_1_2_aarch64.whl
Size 3.2 MB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
86b2542f0ae78c92e2f92265b4b5abcb65339ffe736db9e809ae96a40d9a5922
BLAKE2b-256 checksum
How to use checksums
5992724839851028c17540dba09825d9fa09117cfaed303a361a9de33f88cbb1
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 19, 2026.

Transparency log

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

Download URL ferro_ta-1.6.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 3.2 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
7fe44d0c268b2bba7a83ba5901d13f14707eed18cb42e6674521b34f51558b69
BLAKE2b-256 checksum
How to use checksums
61f9e2d8b38cdc951fc4713c8da0b3c7bf85567d31e40b61ce65dfc9be0d44fa
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 19, 2026.

Transparency log

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

Download URL ferro_ta-1.6.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 3.0 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
f6cf212a7d2b25dd98d017913420c3152f0c68adf9adc98bdc8860b8affe09cc
BLAKE2b-256 checksum
How to use checksums
31322d3355041680bf7aff67a022c7031db20ab13a517e3d5349c14ff6620774
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 19, 2026.

Transparency log

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

Download URL ferro_ta-1.6.0-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Size 6.0 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
f3e119e8110e6913cc1c785e064ba5011f48a9a46176bffc4768f688d6fbb531
BLAKE2b-256 checksum
How to use checksums
6774f8a8a1d2f818e6e16ca9071c2e9db02f9070e004d9b6e344f63215dbd530
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 19, 2026.

Transparency log

Security for ferro-ta 1.6.0

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.6.0.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 19, 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