talib-with-promise

1.0.1 • Public • Published

talib-with-promise

Promised based wrapper for Node.js Technical Analysis Library (https://github.com/oransel/node-talib)

talib promisify module

const talib = require('talib-with-promise');
 
talib.execute({
    name: "SMA",
    startIdx: 0,
    endIdx: marketData.close.length - 1,
    inReal: marketData.close,
    optInTimePeriod: 9
}).then(function(data) {
    // data ready here
}).catch ( function (err){
    // catch error exception here
}) ;

Package Sidebar

Install

npm i talib-with-promise

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

2.81 kB

Total Files

4

Last publish

Collaborators

  • p_snehanshu