1.0.5 • Published 3 years ago

external-analytics v1.0.5

Weekly downloads
18
License
MIT
Repository
-
Last release
3 years ago

Exchange-external-analytics

The library is intended for quick testing of enter points algorithms

Installation

npm i external-analytics

Usage

For show help type in the terminal:

npm explore external-analytics -- npm run ea-help

or for detail help:

npm explore external-analytics -- npm run ea-help [needCommand]

For more convenience, you can prescribe the following in your package.json:

{
    "scripts": {
        "help": "npm explore external-analytics -- npm run ea-help"
    }
}

and for show help type in the terminal:

npm run help
npm run help [needCommand]

For calculate:

const ExternalAnalytics = require('external-analytics');

(async () => {

    await externalAnalytics.run('getCandles', 'binance', 'spot', ['BTCUSDT', 'ETHBTC'], ['30m'], '2020-12-20 00:00:00');

    // Your code for find enter points
    ...
    let yourCalculatedEnterPoints =  {BTCUSDT:[1608453902, 1608540302, 1608626702], ETHBTC:[1608453902, 1608540302, 1608626702]};

    externalAnalytics
        .set('ENTER_POINTS', YourEnterPoints)
        .set('CONFIG', {MAX_TP: 15, MAX_SL: 15});

    await externalAnalytics
        .run('getTPSL', yourCalculatedEnterPoints, ['long', 'short'])
        .run('viewTop', 5);

})();

Credits

Written by bofh from VoblaSoft

FAQ for all VoblaSoft products

License

MIT

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.0

3 years ago

0.5.0

3 years ago

0.5.1

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago