Giter Club home page Giter Club logo

binancebot's Introduction

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.

binancebot's People

Contributors

codez0mb1e avatar

Stargazers

Minh Nguyen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.