Skip to content

Market Maker Bot for Binance Exchange

Notifications You must be signed in to change notification settings

jorzhikgit/BinanceBot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Market Bot for Binance Exchange

Naive Market Maker Bot for Binance.

Solution contains two console projects:

  • The BinanceBot.MarketViewer.Console project demonstrates Order Book updating in near-real time (via Binance WebSocket API).
  • The BinanceBot.MarketBot.Console project demonstrates how BinanceBot create and cancel orders (via Binance REST API) depends on current Market Depth.

Most of the BinanceDotNet.BinanceExchange.API project was taken from BinanceDotNet project [2], but BinanceBot solution is not a branch of BinanceDotNet project.

In picture below BinanceBot create order to Order Book only if price spread by ETH/BTC greater than 0.2%.

alt text

Warn: BinanceBot uses test order create API by default (without real order creation). Turn off TEST_ORDER_CREATION_MODE compilation symbol in MarketMakerBot.cs to create real order in order book.

Roadmap

Throlling

Binance has numerous limits to requests, orders count, min/max volume of order, etc. The networks restrictions should be taken into BinanceBot working as part of BinanceClientConfiguration, and the orders restrictions - as part of MarkerStrategyConfiguration.

Security

Binance API keys should be stored in secured storage (such as Azure Key Vault service) instead of plain text such it is now.

Configurations

Any configuration (of connectors or bot) should be placed in separate configuration storage (such as JSON files in local file system). This will allow you to reconfigure the bot without the need for recompilation.

Other

BinanceBot doesn’t processed network connection errors. It would be to implement Retry Policies for the broken connections and handling other network errors.

The solution doesn’t contain any Unit Tests/Integration Tests, which is a bad practice.

Requirements

  • .NET Core 3.1.

References

  1. Binance official API docs.
  2. Official C# Wrapper for the Binance exchange API.

About

Market Maker Bot for Binance Exchange

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%