New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@debut/plugin-reinvest

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@debut/plugin-reinvest

Reinvest profit, plugin for debut

latest
Source
npmnpm
Version
1.3.2
Version published
Maintainers
1
Created
Source

@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,
        // ...
    ]);
}

Keywords

Debut

FAQs

Package last updated on 04 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts