# chrisleekr/binance-trading-bot

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/chrisleekr-binance-trading-bot).**

5,462 stars · 1,189 forks · JavaScript · mit

## Links

- GitHub: https://github.com/chrisleekr/binance-trading-bot
- awesome-repositories: https://awesome-repositories.com/repository/chrisleekr-binance-trading-bot.md

## Topics

`binance` `binance-api` `binance-api-node` `binance-trading-bot` `bot` `cryptocurrency` `cryptotrading` `grid-trading` `technical-analysis-indicators` `trading-bot` `traidingview`

## Description

This project is an automated cryptocurrency trading platform for the Binance exchange. It functions as a technical analysis trading tool and grid trader, executing strategies and managing assets without manual intervention.

The platform is distinguished by its multi-service containerized architecture, which orchestrates a listener, cache, and database. It utilizes a secure web dashboard for monitoring active trades and adjusting bot parameters, protected by password and token-based authentication.

The system covers a broad range of trading capabilities, including grid and trailing order automation, real-time portfolio monitoring via WebSockets, and technical signal integration. Risk management is handled through automated stop-loss protection, high-price purchase restrictions, and global spending limits. Additional utilities include a demo trading simulation for testing strategies and a tool for converting residual asset dust into a primary currency.

The software is deployed as a coordinated set of containers using Docker and Docker Compose.

## Tags

### Business & Productivity Software

- [Automated Trading Execution](https://awesome-repositories.com/f/business-productivity-software/automated-trading-execution.md) — Executes cryptocurrency trading strategies automatically based on predefined logic without manual intervention. ([source](https://github.com/chrisleekr/binance-trading-bot/blob/master/.nvmrc))
- [Cryptocurrency Trading Platforms](https://awesome-repositories.com/f/business-productivity-software/cryptocurrency-trading-platforms.md) — Provides an automated platform for executing trading strategies and managing assets on the Binance exchange.
- [Algorithmic Trading Platforms](https://awesome-repositories.com/f/business-productivity-software/algorithmic-trading-platforms.md) — Implements a full algorithmic trading suite deployed as a multi-service containerized platform.
- [Grid Trading Strategies](https://awesome-repositories.com/f/business-productivity-software/algorithmic-trading-platforms/grid-trading-strategies.md) — Implements automated buy and sell orders within predefined price ranges to profit from market volatility.
- [Trailing Order Strategies](https://awesome-repositories.com/f/business-productivity-software/algorithmic-trading-platforms/trailing-order-strategies.md) — Monitors price movements and executes trades based on fixed offsets to lock in profits or limit losses. ([source](https://github.com/chrisleekr/binance-trading-bot/blob/master/docker-stack.yml))
- [Automated Risk Management](https://awesome-repositories.com/f/business-productivity-software/automated-risk-management.md) — Mitigates financial exposure through automated stop-loss orders, price thresholds, and trailing exit strategies.
- [Stop-Loss Strategies](https://awesome-repositories.com/f/business-productivity-software/stop-loss-strategies.md) — Automatically places market orders to exit positions when prices drop below a configured threshold. ([source](https://github.com/chrisleekr/binance-trading-bot/wiki/Features))
- [Exchange Account Managers](https://awesome-repositories.com/f/business-productivity-software/account-management/account-management/exchange-account-managers.md) — Provides utilities for monitoring real-time balances and converting small asset dust on Binance.
- [Purchase Restrictions](https://awesome-repositories.com/f/business-productivity-software/purchase-order-management/purchase-restrictions.md) — Blocks purchase orders when the current price exceeds a calculated percentage of the all-time high. ([source](https://github.com/chrisleekr/binance-trading-bot/wiki/Features))
- [Web-Based Portfolio Monitors](https://awesome-repositories.com/f/business-productivity-software/real-time-portfolio-tracking/web-based-portfolio-monitors.md) — Offers a web-based dashboard for real-time monitoring of trading pairs, positions, and account balances via WebSockets.
- [Trade Profitability Recorders](https://awesome-repositories.com/f/business-productivity-software/trading-risk-analysis/trade-profitability-recorders.md) — Records closed trades and calculates net profit or loss to provide historical performance overviews. ([source](https://github.com/chrisleekr/binance-trading-bot/blob/master/CHANGELOG.md))
- [Trading Dashboards](https://awesome-repositories.com/f/business-productivity-software/trading-risk-analysis/trade-profitability-recorders/trading-dashboards.md) — Provides a secure web interface to monitor active trades, track profits, and adjust trading bot parameters.
- [Real-Time Simulated Trading](https://awesome-repositories.com/f/business-productivity-software/trading-simulations/real-time-simulated-trading.md) — Tests trading strategies and configurations in a real-time simulated environment without risking real capital. ([source](https://github.com/chrisleekr/binance-trading-bot/blob/master/CHANGELOG.md))

### Part of an Awesome List

- [Market Data Feeds](https://awesome-repositories.com/f/awesome-lists/data/market-data-feeds.md) — Maintains persistent WebSocket connections to exchange feeds for real-time streaming of market prices and orders.
- [Configuration Interfaces](https://awesome-repositories.com/f/awesome-lists/devtools/trading-bots/configuration-interfaces.md) — Provides a secure frontend interface for adjusting global and symbol-specific trading settings. ([source](https://github.com/chrisleekr/binance-trading-bot/blob/master/README.md))

### Scientific & Mathematical Computing

- [Grid Trading](https://awesome-repositories.com/f/scientific-mathematical-computing/order-execution-engines/grid-trading.md) — Implements grid-based order execution to capture volatility through a series of limit orders at fixed price intervals.
- [Technical Analysis](https://awesome-repositories.com/f/scientific-mathematical-computing/quantitative-finance/technical-analysis.md) — Integrates technical analysis tools to identify market trends and trigger automated trading signals. ([source](https://github.com/chrisleekr/binance-trading-bot/tree/master/tradingview))
- [Trading Signal Triggers](https://awesome-repositories.com/f/scientific-mathematical-computing/trading-signal-triggers.md) — Triggers automated buy and sell orders based on the mapping of technical indicator data to predefined rules.

### Security & Cryptography

- [Trading Risk Management](https://awesome-repositories.com/f/security-cryptography/trading-risk-management.md) — Enforces risk constraints such as stop-loss thresholds and high-price purchase restrictions in an automated environment.
- [Spending Limits](https://awesome-repositories.com/f/security-cryptography/access-control/spending-limits.md) — Sets maximum purchase amounts based on the quote asset to apply consistent spending limits across all pairs. ([source](https://github.com/chrisleekr/binance-trading-bot/wiki/Features))
- [Unified Trading Interfaces](https://awesome-repositories.com/f/security-cryptography/account-management/account-grouping-utilities/trading-account-groups/unified-trading-interfaces.md) — Provides a web interface to monitor account balances, view open trades, and adjust bot settings. ([source](https://github.com/chrisleekr/binance-trading-bot#readme))
- [Token-Based Authentication](https://awesome-repositories.com/f/security-cryptography/token-based-authentication.md) — Secures the management dashboard using password authentication and cryptographic tokens to restrict access.
- [Access Authentication](https://awesome-repositories.com/f/security-cryptography/user-access-management/access-authentication.md) — Protects the trading interface using password authentication and tokens to restrict unauthorized access. ([source](https://github.com/chrisleekr/binance-trading-bot/wiki/Features))

### System Administration & Monitoring

- [Market Insight Monitors](https://awesome-repositories.com/f/system-administration-monitoring/market-insight-monitors.md) — Uses persistent WebSocket connections to track candles, orders, and account information in real-time. ([source](https://github.com/chrisleekr/binance-trading-bot/blob/master/CHANGELOG.md))
- [Multi-Asset Monitoring](https://awesome-repositories.com/f/system-administration-monitoring/multi-asset-monitoring.md) — Tracks and manages multiple cryptocurrency symbols simultaneously within a single bot instance. ([source](https://github.com/chrisleekr/binance-trading-bot/blob/master/CHANGELOG.md))
- [Multi-Symbol Market Monitoring](https://awesome-repositories.com/f/system-administration-monitoring/multi-symbol-market-monitoring.md) — Tracks multiple trading pairs simultaneously with a coordinated cycle to prevent exchange rate limiting.

### Data & Databases

- [Trading Record Persistence](https://awesome-repositories.com/f/data-databases/atomic-transaction-models/accounting-engines/account-databases/trading-record-persistence.md) — Persists trade history and system state in a database to maintain continuity across restarts.

### DevOps & Infrastructure

- [Containerized Service Orchestration](https://awesome-repositories.com/f/devops-infrastructure/containerized-service-orchestration.md) — Deploys the listener, cache, and database as a coordinated set of isolated containers for consistent execution.
