curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
nvm install --lts
Should be run in the project root.
npm install
npm install pm2 -g
Should be run in the root of the project.
*/30 * * * *
- is cron time for every 30 minutes
pm2 --no-autorestart --cron-restart="*/30 * * * *" start npm --name "derebit-logger" -- start
Results folder is located in ./results/
. First results should appear right after running pm2. Each file represents one run of script with name of UTC date of run time. Logged instruments and results folder can be configured in ./config.ts
.