πŸ“˜Chapter 8: Understanding tradeUI vs webserverUI in Freqtrade

This article was produced by the Quantitative Trading Lab at https://www.itrade.icu. Visit for more benefits. Although often used together, trade and webserver serve completely different purposes and have distinct startup logic. Here's a detailed comparison:

Item

freqtrade trade

freqtrade webserver

βœ… Startup Content

Starts the trading bot (live or dry-run)

Starts the visualization UI service (view data)

βš™οΈ Core Function

Execute strategy, place orders, monitor market

Graphically display strategy operation/backtest results

🧠 Runs Strategy Logic

βœ… Yes (real-time execution)

❌ No (only reads data)

πŸ“¦ Data Source

Real-time market data & order execution

Local SQLite database (or strategy output)

⏱ Use Case

Real/simulated trading

Browser view of strategy performance/order info

πŸ”— Connects to Exchange

βœ… Yes

❌ No

πŸ“ˆ View Backtest Results

❌ No

βœ… Supports backtest visualization

πŸš€ Browser Access

Optional UI, mostly backend


βœ… Use Case Distinction

1. trade is the bot engine

You can run live trading or dry-run (simulation):

freqtrade trade \
  --config user_data/config.json \
  --strategy MyStrategy \
  --dry-run
  • Continuously fetches real-time market data

  • Executes strategy logic (buy/sell signals)

  • Connects to the exchange and records orders, balances, profits

  • Writes all data to a local database (SQLite)

πŸ’‘ Without it, the bot does nothing!


2. webserver is the visualization interface

It only reads existing data and provides a browser-based UI:

  • Displays current positions, trade history, strategy names

  • Can monitor running strategies

  • Can also display backtest results (after backtesting)

❗ It does not run strategies or connect to exchanges!


πŸ”„ Relationship Summary

  • trade = the execution engine

  • webserver = the observer UI

If you run only webserver without trade, you can only see historical recordsβ€”no new trades will occur.


🧩 Practical Advice (Docker Setup)

Then open your browser at:

to access the trading bot dashboard.

Last updated