Automated bitcoin trading bot.
Blog Link: https://blog.ankitgyawali.com/blog/2018/06/10/Bitcoin-Trading-Bot/
- The node version required for this project is at least v8.9.4+ LTS. (nvm- short for node version manage is great if you need to run multiple node versions)
- Dependencies should be installed with
npm install
- You will need
pm2
for managing bot processes (npm install -g pm2
) - One of the node dependencies
tulind
indicator needs to compile C binaries - ifnpm install
failes for that module you can build directly withnpm install tulind --build-from-source
. This will require you to ensure you haveg++
installed on your system.
- You will need
- Ensure you have elasticsearch and kibana running on your localhost. Alternatively you can install it on an aws ec2 (recommended for serious users). Official installation guide can be found here.
- Configure elasticsearch port on
config.json
. Default elasticsearch port is already configured on the project repo. Run the following commands to run ingest cron and position taking crons respectively. We will discuss what each does in next section.npm run ingest
npm run takeposition