Skip to content

sindelio/binance-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

  • Implement a stop logic if prices drop too low, to cut losses.
  • Use more data points for the stochRSI indicator.
  • Consider other technical indicators to create a more elaborate logic.

Dependencies

The bot depends on the following Node modules:

  • "binance-api-node": "^0.8.10",
  • "technicalindicators": "^2.0.5"

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.

Releases

No releases published

Packages

No packages published