# ccxt/binance-trade-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/ccxt-binance-trade-bot).**

_How this analysis was created: the description and tags below were written by an AI model that read this project's README and public documentation pages; stars, license and language come straight from the GitHub API. The model does not read the source code._

8,811 stars · 2,264 forks · Python · GPL-3.0

## Links

- GitHub: https://github.com/ccxt/binance-trade-bot
- awesome-repositories: https://awesome-repositories.com/repository/ccxt-binance-trade-bot.md

## Description

binance-trade-bot is an automated cryptocurrency trading bot for the Binance exchange. It places buy and sell orders according to a chosen strategy, swapping between altcoins through a stable bridge currency such as USDT. Its default approach is ratio-based accumulation: a swap happens only when price ratios, adjusted for exchange fees, make the move profitable, so the holding of each coin grows and never shrinks.

Trading strategies are pluggable. Users can pick a built-in strategy, such as holding a single coin or spreading holdings across several, or write their own in a separate file that is discovered automatically. Strategies can also be kept in other repositories and shared as git submodules. Configuration covers API credentials, the regional exchange domain, the coin list, the bridge currency, scouting intervals, trigger margins, order timeouts, and paying fees with BNB for the discount. Stale limit orders are cancelled after a set number of minutes.

Before risking real funds, users can replay a strategy against historical market data. The backtester reports simulated balances and portfolio value over time. Alternatively, the bot can run against the exchange's test network. Trade history and state are kept in a local database that survives restarts, and an optional web-based browser lets you inspect it.

The bot can run from an official Docker image with Docker Compose, with the config file, coin list, data and logs mounted from the host. It can also be deployed as a free cloud background worker. A web interface for monitoring and notifications to Telegram, Discord, Slack and Gotify keep the user informed of activity.

## Tags

### Part of an Awesome List

- [Cryptocurrency](https://awesome-repositories.com/f/awesome-lists/devtools/trading-bots/cryptocurrency.md) — Automated bot that places buy and sell orders for digital assets on the Binance cryptocurrency exchange according to a selected strategy.
- [Crypto Trading Bots](https://awesome-repositories.com/f/awesome-lists/devtools/crypto-trading-bots.md) — Runs an unattended bot that buys and sells coins on Binance following a chosen strategy to grow holdings over time.
- [Binance Exchange Connectors](https://awesome-repositories.com/f/awesome-lists/devtools/exchange-integration-apis/binance-exchange-connectors.md) — Connects to Binance with user API credentials and a regional domain to place buy and sell orders automatically. ([source](https://github.com/ccxt/binance-trade-bot/blob/master/.user.cfg.example))
- [Trading Automation](https://awesome-repositories.com/f/awesome-lists/devtools/trading-automation.md) — Places buy and sell orders on Binance on the user's behalf according to a selected trading strategy. ([source](https://github.com/ccxt/binance-trade-bot/tree/master/binance_trade_bot))

### Business & Productivity Software

- [Bridge-Currency Swap Routing](https://awesome-repositories.com/f/business-productivity-software/bridge-currency-swap-routing.md) — Routes each altcoin swap through a stable bridge currency such as USDT so any listed coin can be exchanged for any other.
- [Ratio-Based Coin Accumulation](https://awesome-repositories.com/f/business-productivity-software/ratio-based-coin-accumulation.md) — Moves from a stronger coin to a weaker one and back only when profitable after fees, so holdings of each coin grow and never shrink. ([source](https://github.com/ccxt/binance-trade-bot/blob/master/README.md))
- [Ratio-Threshold Trade Triggers](https://awesome-repositories.com/f/business-productivity-software/ratio-threshold-trade-triggers.md) — Triggers a swap only when the price ratio between coins, adjusted for fees, shows the move will increase holdings of the target coin.
- [Trading Strategy Frameworks](https://awesome-repositories.com/f/business-productivity-software/trading-strategy-frameworks.md) — Offers built-in strategies, such as holding a single coin or spreading holdings across several, selectable to control trade decisions and allocations. ([source](https://github.com/ccxt/binance-trade-bot/blob/master/app.json))
- [Bridge Currency Settings](https://awesome-repositories.com/f/business-productivity-software/bridge-currency-settings.md) — Lets the user set the stable bridge currency, such as USDT, through which every coin-to-coin swap is routed. ([source](https://github.com/ccxt/binance-trade-bot/blob/master/app.json))
- [Tradable Coin Lists](https://awesome-repositories.com/f/business-productivity-software/tradable-coin-lists.md) — Reads a coin list that defines which cryptocurrencies may be held and traded, with an optional manual or random starting coin. ([source](https://github.com/ccxt/binance-trade-bot/blob/master/app.json))
- [Trade Parameter Tuning](https://awesome-repositories.com/f/business-productivity-software/trade-parameter-tuning.md) — Lets users tune trigger margins, scouting intervals, order timeouts and BNB fee discounts through configuration to suit risk and cost preferences.
- [Trade Trigger Thresholds](https://awesome-repositories.com/f/business-productivity-software/trade-trigger-thresholds.md) — Adjusts a multiplier and polling interval controlling how large a price-ratio difference must be before a swap executes. ([source](https://github.com/ccxt/binance-trade-bot/blob/master/app.json))
- [Trading Bot Settings](https://awesome-repositories.com/f/business-productivity-software/trading-bot-settings.md) — Configures API keys, starting coin, bridge currency, strategy, scouting intervals, margins and order timeouts through a config file or environment variables. ([source](https://github.com/ccxt/binance-trade-bot#readme))
- [Trading Strategy Backtesters](https://awesome-repositories.com/f/business-productivity-software/trading-strategy-backtesters.md) — Replays a chosen strategy against historical market data and reports simulated balances and portfolio value, with a test network alternative.
- [Custom Strategy Plugins](https://awesome-repositories.com/f/business-productivity-software/trading-strategy-frameworks/custom-strategy-plugins.md) — Loads user-written strategy files that extend a base trader class and define their own scouting logic, discovered automatically by file name suffix. ([source](https://github.com/ccxt/binance-trade-bot/blob/master/binance_trade_bot/strategies/README.md))

### Data & Databases

- [Trading Record Persistence](https://awesome-repositories.com/f/data-databases/atomic-transaction-models/accounting-engines/account-databases/trading-record-persistence.md) — Stores trade history, scouted prices and bot state in a local embedded SQL database that survives restarts and prunes old records.
- [Local Trade History Stores](https://awesome-repositories.com/f/data-databases/local-trade-history-stores.md) — Store trade records and program state in a local database so history is kept and work can resume with context after a restart. ([source](https://github.com/ccxt/binance-trade-bot/blob/master/requirements.txt))
- [Exchange Market Data Streams](https://awesome-repositories.com/f/data-databases/real-time-data-streaming/exchange-market-data-streams.md) — Maintains a streaming connection to the exchange that feeds live prices into a cache, avoiding repeated polling. ([source](https://github.com/ccxt/binance-trade-bot/blob/master/requirements.txt))

### Development Tools & Productivity

- [Trading Strategy Development Environments](https://awesome-repositories.com/f/development-tools-productivity/python-development-tools/script-execution-engines/python-scripting-environments/trading-strategy-development-environments.md) — Supports writing custom trading strategies in separate files and tuning margins, intervals, timeouts and fee discounts to match preferences.

### DevOps & Infrastructure

- [Docker-Deployed Trading Bots](https://awesome-repositories.com/f/devops-infrastructure/container-orchestration/container-runtimes/runtime-configuration-interfaces/docker-socket-orchestrators/docker-target-configurators/docker-container-deployments/docker-deployed-trading-bots.md) — Runs the trading bot and an optional database browser from container images or free cloud workers, with settings and history persisting across restarts.

### Software Engineering & Architecture

- [Backtesting Simulations](https://awesome-repositories.com/f/software-engineering-architecture/event-driven-architectures/backtesting-simulations.md) — Replaces the live exchange with a simulated one that replays historical prices step by step to run the same strategy code against past data.
- [Pluggable Trading Strategies](https://awesome-repositories.com/f/software-engineering-architecture/pluggable-trading-strategies.md) — Discovers strategy files automatically by naming suffix, letting users add, share or swap trading logic without touching core code.
- [Strategy Selection by Name](https://awesome-repositories.com/f/software-engineering-architecture/strategy-selection-by-name.md) — Selects the active trading strategy by a name in the config file that matches the strategy file's prefix. ([source](https://github.com/ccxt/binance-trade-bot/blob/master/binance_trade_bot/strategies/README.md))
