This is a helper utility to take the profits from your completed deals and compound them to the bots base order size.
Be aware that this will take your profit numbers and round them down. So $0.147
will be calculated as $0.14
and not $0.15
.
To get started copy .env.example
to .env
and fill in the fields.
This uses mongoosedb
to store and save the deal ID into a database to keep track of deals already compounded.
npm install
or yarn install
node index.js
this will run once every minute. In the console you'll get results like these:
- reformat to make code modular
- change data storage medium
- options to specify how to distribute the profits. Into the base order size, safety orders, etc.
- add ability to compound grid bots
- send you a text message everytime compounding occurs with Twilio
- option to use Telegram to get messages when something happens
- and/or Slack messages
- provide guide on using AWS lambda functions to fire off the API