Algorithmic trading with Binance using Wolfinch

Joshith Rayaroth Koderi
2 min readJul 9, 2020
Photo by Austin Distel on Unsplash

Wolfinch is an open source algorithmic trading platform written in python. It allows users to create a trading strategy and execute trades automatically. Wolfinch supports algorithmic trading on equity markets and cryptocurrency markets. It supports multiple brokers and exchanges for placing the trades.

You can read more about installing and using Wolfinch bot here.
Wolfinch project is hosted here in github.

Now let’s focus on using Wolfinch for algorithmic trading on Binance. There are primarily two steps in this.

Setting up Wolfinch

Wolfinch configuration is done through a YAML config file. There are tons of configuration options available to tweak and tune various features in bot. The config file is divided in to multiple sections to configure exchanges, strategies, various limits etc.

here is a sample config file for BinanceUS.

The YAML config file is pretty intuitive by itself. However, you can find more details here.

The sample config file above is pretty exhaustive to show the config options. In reality the config file can be much simpler.
The only section specific to Binance is the exchange config at the top. This is where the products and their limits are configured. Also, it takes an exchange specific config file for configuring Binance exchange specific details.

Setting up Binance

Wolfinch takes trading decisions based on the strategy configured. However, the trades are ultimately placed in an exchange or a broker.

Since we are using Binance for placing our trades, we need to configure Binance access for Wolfinch. The exchange config for Wolfinch is done with a simple YAML config file. This is a separate file from the main bot config file for security reasons.

Here is a sample exchange config file for BinanceUS.

You can read more details about creating key and secret for API access here: https://www.binance.com/en/support/articles/360002502072

or here: https://help.3commas.io/en/articles/3109051-binance-how-to-create-api-keys

or here: https://medium.com/@cloud_20885/how-to-create-and-setup-binance-api-key-d2d5292c847b

Closing notes

Binance and Wolfinch provides a perfect combination for a successful algorithmic trading system. Finding an efficient strategy is the real creative work behind any successful algorithmic trading system. Wolfinch provides the right platform and the necessary tools for making that quest seamless.
Happy trading!

--

--