1.3.2 • Published 6 months ago

@debut/plugin-reinvest v1.3.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
6 months ago

@debut/plugin-reinvest

Debut plugin, for adding profits from trades to your starting capital (re-investment). It is mainly used to increase profits. When enabled, all profits or losses from trades will be subtracted or added to the initial capital.

Install

npm install @debut/plugin-reinvest --save

Initializing the plugin

import { reinvestPlugin } from '@debut/plugin-reinvest';

// ...
// Strategy constructor in the context of Debut...
constructor(transport: BaseTransport, opts: MyStrategyOpts) {
    super(transport, opts);

    this.registerPlugins([
        // ...
        // You can optionally enable it with a custom configuration, or always enable it
        this.opts.reinvest ? reinvestPlugin() : null,
        // ...
    ]);
}
1.3.2

6 months ago

1.3.1

1 year ago

1.3.0

2 years ago

1.2.0

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.1

2 years ago

1.3.0-beta.1

2 years ago

1.3.0-beta.2

2 years ago

1.3.0-beta.0

2 years ago

1.1.1-esm.0

2 years ago

1.1.0

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.2

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago