BinanceBot
Market Maker Bot for Binance
- The `BinanceBot.MarketViewer.Console` project: __Order book updating in near-real time__ (via _Binance WebSocket API_). - The `BinanceBot.MarketBot.Console` project: __Create and cancel orders__ (via _Binance REST API_) depends on current Market Depth. The project is written primarily in C#, distributed under the MIT License license, first published in 2018. Key topics include: algorithmic-trading, binance, binance-bot, binance-exchange, binance-trader.
Market Bot for Binance
Naive Market Maker Bot for Binance exchange.
Solution contains two console projects:
- The
BinanceBot.MarketViewer.Consoleproject: Order book updating in near-real time (via Binance WebSocket API). - The
BinanceBot.MarketBot.Consoleproject: Create and cancel orders (via Binance REST API) depends on current Market Depth.

In picture below BinanceBot create order to Order Book only if price spread by ETH/BTC greater than 0.2%.
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.
Requirements
- .NET 9.0
- Binance Account.
Setup Instructions
Setting up API Credentials
Both console applications (BinanceBot.MarketBot.Console and BinanceBot.MarketViewer.Console) now support environment variables for API credentials using .env files.
-
Copy the example file:
bash# For MarketBot cp src/BinanceBot.MarketBot.Console/.env.example src/BinanceBot.MarketBot.Console/.env # For MarketViewer cp src/BinanceBot.MarketViewer.Console/.env.example src/BinanceBot.MarketViewer.Console/.env -
Edit the
.envfile with your actual Binance API credentials:bashBINANCE_API_KEY=your_actual_api_key_here BINANCE_SECRET=your_actual_secret_key_here -
Run the application - it will automatically load the credentials from the
.envfile.
⚠️ Never commit/share your .env file to version control! It contains sensitive credentials.
References
Contributors
Showing top 2 contributors by commit count.
