0.2.21 • Published 4 months ago

talib-stream v0.2.21

Weekly downloads
35
License
MIT
Repository
github
Last release
4 months ago

Intro

no-talib is now renamed to talib-stream

This lib for efficiently calculating weighted ta-lib metrics with streaming support.

Often we need realtime calculation some weighted metric that requires previous knowledge, such as EMA, RSI, ATR. Ideally longer priods are better. But it would cost a lot of time to simply calculate from the beginning.

This lib is intended for fast calculating indicators from data stream.

Usage

npm i talib-stream --save 

example code

import { AtrKeeper } from 'talib-stream';

const atrKeeperRes: any = [];
const atrKeeper = new AtrKeeper({ periods: period });
_.each(sampleCandles, c => {
  atrKeeper.add({
    close,
    high,
    low,
  });
  atrKeeperRes.push(atrKeeper.get());
});

more usages please check spec files

Testing

npm run test

Build from source

npm build to build the lib

publish code

npm publish

0.2.21

4 months ago

0.2.20

7 months ago

0.2.19

8 months ago

0.2.18

9 months ago

0.2.17

9 months ago

0.2.16

2 years ago

0.2.15

3 years ago

0.2.14

3 years ago

0.2.13

3 years ago

0.2.12

3 years ago

0.2.11

3 years ago

0.2.10

3 years ago

0.2.9

3 years ago

0.2.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.0.14

3 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago