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.
  • 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 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.4.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.4.0
File Size Uploaded Provenance Actions
ferro_ta-1.4.0.tar.gz 2.1 MB With provenance Details for ferro_ta-1.4.0.tar.gz

Built distributions (wheels)

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

Total release size: 12.3 MB

Release files / ferro_ta-1.4.0.tar.gz

Download URL ferro_ta-1.4.0.tar.gz
Size 2.1 MB
Tags Source
SHA-256 checksum
How to use checksums
3d0506e69d23d9156d2ee98f1a1e0caca0b9cd63f46b41d87b948b77fb143312
BLAKE2b-256 checksum
How to use checksums
6baed027d63f9207caa723f5c83657741a762374b5433fdb9af2508b497b3343
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 1, 2026.

Transparency log

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

Download URL ferro_ta-1.4.0-cp310-abi3-win_arm64.whl
Size 1.2 MB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
691094a968f141a38fcb3a8facfec62839e555e5ae74704053d7105eca6356fb
BLAKE2b-256 checksum
How to use checksums
377d6280621b793811ddd6055dad3c4c941b6e955bad705f190b69263b9c0c51
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 1, 2026.

Transparency log

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

Download URL ferro_ta-1.4.0-cp310-abi3-win_amd64.whl
Size 1.4 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
37d4edcf2c19804ae32463447aaeb258af6b9c72b2de3a9f0edb9f218419c78a
BLAKE2b-256 checksum
How to use checksums
4361f59b40ab667f3fca44644b626349278bccd0d285e0acb0180d3b9159ce7e
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 1, 2026.

Transparency log

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

Download URL ferro_ta-1.4.0-cp310-abi3-musllinux_1_2_x86_64.whl
Size 1.5 MB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
c2d86a1f7421e82f75f87d5f266d964a263767860dc8716a9617627b76456be0
BLAKE2b-256 checksum
How to use checksums
ad541f923886519e310399c25d100d6920dbbdd57d57fa3c37f7e6d95bcd86c4
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 1, 2026.

Transparency log

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

Download URL ferro_ta-1.4.0-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
a20ab3997d80c0a4eb99029e3d55c4aa0b27924034e26624d4ca01af33da282e
BLAKE2b-256 checksum
How to use checksums
b946ec4f811cfe9ebe3c806387c5c0eef6d3e1bfe2b40819b20b63a216beb29c
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 1, 2026.

Transparency log

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

Download URL ferro_ta-1.4.0-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
d9b741609f753eba6dfc8edb70eaadb8734364e6f4efec1455bcfcac05975ed6
BLAKE2b-256 checksum
How to use checksums
55cbcee99de4bc098f29315e7329d2eccff48f9c2630b40c625a119b8f1d76c8
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 1, 2026.

Transparency log

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

Download URL ferro_ta-1.4.0-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
f4fd62f371c30fda2f782cbfe5c62c4ab7769b4488f32a5ce8ddd035b8bc589d
BLAKE2b-256 checksum
How to use checksums
735342c888849c4f1cf06b3aab147097bfe5bc550ea2e3753c57cb98866fd811
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 1, 2026.

Transparency log

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

Download URL ferro_ta-1.4.0-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
c8d39689034324926e7669c9168f2763dec5bfd7094acd555267b6afde96b16f
BLAKE2b-256 checksum
How to use checksums
025f640f0cb8b5ebf5b9c90ea514b5ac83414ee03d7fab231a85c83ae9fcd000
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 1, 2026.

Transparency log

Security for ferro-ta 1.4.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.4.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 1, 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