Run multiple Freqtrade bots on one server
A Freqtrade bot runs one strategy. To trade several strategies, pair lists or exchanges at once, you run several bots next to each other. This page covers what each bot needs of its own, how that looks by hand, and how Wickfleet takes the bookkeeping over.
What every bot needs of its own
| Part | Why it cannot be shared |
|---|---|
| Process | one freqtrade trade process or container per bot |
| Config | strategy, pairs, stake and bot_name differ per bot |
| Trade database | set with --db-url. Two bots must never write to the same database |
| API port and login | each bot serves its own REST API, so each needs its own port and has its own login |
| Exchange account | Freqtrade assumes it owns the account. Use one subaccount per bot where the exchange has them. On a shared account give each bot its own available_capital, and do not use tradable_balance_ratio |
By hand with Docker Compose
One service per bot, each with its own user_data folder, database and host port:
services:
trend:
image: freqtradeorg/freqtrade:stable
restart: unless-stopped
volumes:
- ./trend/user_data:/freqtrade/user_data
ports:
- "127.0.0.1:8081:8080"
command: trade --config /freqtrade/user_data/config.json --db-url sqlite:////freqtrade/user_data/tradesv3.sqlite --strategy Trend
meanrev:
image: freqtradeorg/freqtrade:stable
restart: unless-stopped
volumes:
- ./meanrev/user_data:/freqtrade/user_data
ports:
- "127.0.0.1:8082:8080"
command: trade --config /freqtrade/user_data/config.json --db-url sqlite:////freqtrade/user_data/tradesv3.sqlite --strategy MeanRev
Each config.json needs the api_server section with enabled: true and listen_ip_address: "0.0.0.0", or the published port reaches nothing. The strategy file goes in that bot's user_data/strategies.
That is fine for two bots. Every further bot adds a service, a port, a password and one more login in FreqUI, where the bot list lives in the browser you typed it into.
From a registry with Wickfleet
In Wickfleet a bot is one small file in a git repository. The hub reads that registry every 30 seconds and creates, replaces or removes the bot containers to match.
name: trend
owner: alice
strategy: EmaCross
strategy_file: EmaCross.py
exchange: binance
pairs: [BTC/USDT, ETH/USDT]
stake_currency: USDT
wallet: 1000
max_open_trades: 3
dry_run: true
| Part | By hand | Wickfleet |
|---|---|---|
| New bot | new compose service, config, port, password | one file, saved in the UI or committed to the registry |
| Ports | one published port per bot | none. Every bot sits behind one origin at /bots/<name>/ |
| API passwords | one per bot, typed into each browser | made by the hub per bot and added per request. The browser never holds the password, only a session token the bot issues |
| History | whatever you keep yourself | every bot and strategy change is a git commit |
| Container | your compose defaults | all capabilities dropped, fixed binds, only images you listed |
| Real money | whatever the config says | dry run unless the instance and the bot both switch it on and the host holds the bot's exchange key file. A save through the hub also needs a recent replay that passed |

Try it
git clone https://github.com/wickfleet/wickfleet.git
cd wickfleet
make quickstart
Needs Docker with Compose v2, git and make, on macOS or Linux. Everything runs on one machine, bound to 127.0.0.1, and a dry-run demo bot is waiting in the fleet. More in the install guide.
More on running a fleet
- One dashboard for every botFleet totals, compare and risk on top of FreqUI
- Lookahead bias checksWhat it is, how to find it, and the gate before a bot starts
- A strategy without PythonBlocks, a plain-words readback and the generated code
- Docker Compose, one addressMany bots behind one origin, and where the CORS error comes from
- Backtest against dry runWhy the two differ, and what a replay checks
- Dashboards comparedOpen-source ways to watch several Freqtrade bots
Wickfleet is software for running trading bots, not a recommendation to buy or sell anything. Backtests and replays describe the past, not the future. Every bot is a dry run on a simulated wallet by default.