1.0.1 • Published 6 years ago

talib-with-promise v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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
}) ;