In this article, we would like to demonstrate how to build a small yet powerful scalping application that trades on the leading cryptocurrency exchange – Binance. 
The bot will be connected to Binance through XTRD FIX API to receive real-time normalized market data and to place/cancel orders. 
You can reuse this source code in your projects for free. 
Disclaimer: the bot is not a ready-to-use solution because it lacks risk controls and proper positions management. Although our R&D shows promising performance, do not expect to achieve the same results. 
Before we dive into the technical part, it’s worth explaining the logic behind the given trading bot. 
Scalping is a momentum-based trading style where positions hold for minutes or even seconds and then sell for profit (or small loss… a sacrifice to Mr. Market). When performed manually, it requires self-discipline, the ability to handle stress, make quick decisions, and act accordingly. 
Renko chart is one of the technical analysis tools that help reduce market noise and identify market trends more precisely. One of the authors of this article was introduced to Renko about 15 years ago and fell in love with it. 
To construct a single brick on a chart we should perform several simple steps:
Here is our trading logic:
Simply put, it is the good old “buy low, sell high” principle computerized and applied to crypto markets through XTRD FIX API. 
The bot itself contains several main components: