sindelio / binance-bot

A Binance trader bot written in Node.js.
MIT License
57 stars 28 forks source link
bot bot-binance ehlers-filter node node-js stochrsi-indicator

Introduction

This project consists of an automated trading program, aka a bot, to be used with the Binance trading platform. The bot is fully written in Javascript.

Features

The bot is set for XRP/USDT trading in Binance. Every minute the bot updates the prices with the latest closing price for candlesticks 1min from Binance, calculates the stochRSI indicator, smoothes the stochRSI with an Ehlers filter and make a buy order if the smoothed indicator shows an oversold situation. Then, the bot awaits to sell with a small profit margin, which can be set in the code (default 0.2%). It's also simple to change the code for another trading pair.

The bot relies only in the StochRSI + Ehlers filter logic, so it's quite simple.

Future development

I will continue evolving this bot in the second semester of 2019. Here are some points that deserve attention:

Dependencies

The bot depends on the following Node modules:

Setup

Clone the repository with HTTPS:

$ git clone https://github.com/sindelio/binance_bot.git

Or with SSH:

$ git clone git@github.com:sindelio/binance_bot.git

Then move into the cloned directory:

cd binance_bot

Install the module dependencies:

$ yarn

Make sure the directory path name has no spaces or Yarn will complain!

Running

Inside the project root directory (/bot_binance):

$ node bot_public.js

Contributions

All contributions and comments are welcome!

License

This code is licensed under the MIT license.