# ta-rs

> Node.js bindings for varios Rust based Technical Analysis methods and indicators

Latest version **0.2.0** (published 2022-09-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install ta-rs
pnpm add ta-rs
yarn add ta-rs
bun add ta-rs
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2022-09-22 |
| First published | 2022-09-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >= 10 |
| Dependencies | 10 |
| Unpacked size | 20.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | deman4ik |
| Keywords | napi-rs, NAPI, N-API, Rust, node-addon, node-addon-api |

## Links

- npm: https://www.npmjs.com/package/ta-rs
- Repository: https://github.com/cryptuoso/ta-rs
- Homepage: https://github.com/cryptuoso/ta-rs#readme
- Issues: https://github.com/cryptuoso/ta-rs/issues
- npm.io page: https://npm.io/package/ta-rs

## Dependencies (10)

- [@cryptuoso/ta-rs-darwin-x64](https://npm.io/package/@cryptuoso/ta-rs-darwin-x64.md) 0.2.0
- [@cryptuoso/ta-rs-darwin-arm64](https://npm.io/package/@cryptuoso/ta-rs-darwin-arm64.md) 0.2.0
- [@cryptuoso/ta-rs-linux-x64-gnu](https://npm.io/package/@cryptuoso/ta-rs-linux-x64-gnu.md) 0.2.0
- [@cryptuoso/ta-rs-linux-x64-musl](https://npm.io/package/@cryptuoso/ta-rs-linux-x64-musl.md) 0.2.0
- [@cryptuoso/ta-rs-win32-x64-msvc](https://npm.io/package/@cryptuoso/ta-rs-win32-x64-msvc.md) 0.2.0
- [@cryptuoso/ta-rs-linux-arm64-gnu](https://npm.io/package/@cryptuoso/ta-rs-linux-arm64-gnu.md) 0.2.0
- [@cryptuoso/ta-rs-win32-ia32-msvc](https://npm.io/package/@cryptuoso/ta-rs-win32-ia32-msvc.md) 0.2.0
- [@cryptuoso/ta-rs-linux-arm64-musl](https://npm.io/package/@cryptuoso/ta-rs-linux-arm64-musl.md) 0.2.0
- [@cryptuoso/ta-rs-win32-arm64-msvc](https://npm.io/package/@cryptuoso/ta-rs-win32-arm64-msvc.md) 0.2.0
- [@cryptuoso/ta-rs-linux-arm-gnueabihf](https://npm.io/package/@cryptuoso/ta-rs-linux-arm-gnueabihf.md) 0.2.0

## Recent versions

- 0.2.0 (latest) — 2022-09-22
- 0.1.0 — 2022-09-12
- 0.0.8 — 2022-09-09
- 0.0.7 — 2022-09-06
- 0.0.6 — 2022-09-05
- 0.0.5 — 2022-09-01
- 0.0.4 — 2022-09-01
- 0.0.3 — 2022-09-01
- 0.0.2 — 2022-09-01

## README

<a href="https://cryptuoso.com">
 <img align="left" width="150" height="150" src="https://cryptuoso.com/favicon_color.svg">  
</a> 
<br>
<h2 align="center"><a href="https://cryptuoso.com">Cryptuoso - Cryptocurrency Trading Automation</a></h2>
<h2 align="center">ta-rs</h3>
<h3 align="center">Node.js bindings for varios Rust based Technical Analysis methods and indicators</h3>
<br>
<br>
<br>

## Install

```bash
npm install ta-rs
```

## Use

```js
import { TaSMA } from 'ta-rs'

const sma = new TaSMA(5) // period = 5
await sma.next(10) // first value = 10
const result = await sma.next(20) // current value = 20

console.log(result) // current result = 15
```

## Supports:

- [TA](https://github.com/greyblake/ta-rs) - Technical Analysis for Rust (available with 'Ta' prefix)
  - ATR
  - EMA
  - MACD
  - SMA
  - RSI
  - Minimum
  - Maximum
  - StandardDeviation
  - MeanAbsoluteDeviation
- [YATA](https://github.com/amv-dev/yata) - Yet Another Technical Analysis library (available with 'Yata' prefix)
  - SMA
  - WMA
  - EMA
  - WSMA
  - RMA
  - SMM
  - HMA
  - SWMA
  - LSMA
  - Conv
  - VWMA
  - TRIMA
  - Differential
  - Sum
  - ROC
  - TSI
  - StDev
  - LinearVolatility
  - CCI
  - MedianAbsDev
  - Vidya
  - Cross
  - ReversalSignal
  - HighestLowestDelta
- Custom (without prefix)
  - ATR
  - RSI
  - ADX
  - MaxADX
  - RachSupTrend - https://www.tradingview.com/script/baEa7vSy-Supertrend-V1-0-Buy-or-Sell-Signal/

---

### Operating systems support matrix

|                  | node14 | node16 | node18 |
| ---------------- | ------ | ------ | ------ |
| Windows x64      | ✓      | ✓      | ✓      |
| Windows x32      | ✓      | ✓      | ✓      |
| Windows arm64    | ✓      | ✓      | ✓      |
| macOS x64        | ✓      | ✓      | ✓      |
| macOS arm64      | ✓      | ✓      | ✓      |
| Linux x64 gnu    | ✓      | ✓      | ✓      |
| Linux x64 musl   | ✓      | ✓      | ✓      |
| Linux arm gnu    | ✓      | ✓      | ✓      |
| Linux arm64 gnu  | ✓      | ✓      | ✓      |
| Linux arm64 musl | ✓      | ✓      | ✓      |
| Android arm64    | x      | x      | x      |
| Android armv7    | x      | x      | x      |
| FreeBSD x64      | x      | x      | x      |

---

<a href="https://napi.rs/">
<img width="15" height="15" src="https://napi.rs/img/favicon.png">  
</a> 
Built with awesome <a href="https://napi.rs">NAPI-RS</a> framework.

---
_Source: https://npm.io/package/ta-rs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
