New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

talib-stream

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

talib-stream

no-talib is now renamed to talib-stream

latest
Source
npmnpm
Version
0.2.21
Version published
Maintainers
1
Created
Source

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

Keywords

nodejs

FAQs

Package last updated on 05 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts