JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q35428F

co-based wrapper for talib

Package Exports

  • co-talib

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (co-talib) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

co-talib

co-based wrapper for talib

Getting started

Install oransel/node-talib

npm install talib
npm install co-talib

Usage

exec({...}) integrates with co and the yield keyword The input parameters please referred to

var talib = require('co-talib');
var result = yield talib.exec({...});

Example

var talib = require('co-talib');
var co = require('co');

co(function*(symbol, share) {
var WILLR_9 = yield talib.exec({
                name: "WILLR",
                startIdx: 0,
                endIdx: quotelength,
                high: highs,
                low: lows,
                close: closes,
                open: opens,
                inReal: closes,
                optInTimePeriod: 9
            });
  return WILLR_9;          
}).then(function(result){
  console.log(result);
});

License

Copyright (c) 2012-2015 Ma Chun Hung

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.