Skip to content

avele/derebit-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install Node.js if not installed

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
nvm install --lts

Install Node.js packages

Should be run in the project root.

npm install

Install PM2

npm install pm2 -g

Create PM2 cron task

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

Enjoy!

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published