π Article 8: Quantitative Trading - Differences Between tradeUI and webserverUI
Although both are often used together, their roles and startup logic are completely different. Below is a detailed comparison π
π Want to learn quantitative trading?
π Click to visit: https://itrade.icu
Here you'll find a wealth of content, including Freqtrade Basic Tutorial, Strategy Source Code, Indicator Analysis, and more, to help you easily master quantitative trading techniques!
| Item | freqtrade trade | 
freqtrade webserver | 
|---|---|---|
| β Startup Content | Starts the trading bot (live or dry-run) | Starts the visualization UI service (for viewing data) | 
| βοΈ Core Function | Executes strategies, places orders, monitors markets | Graphically displays strategy performance/backtest results | 
| π§ Runs Strategy Logic? | β Yes (runs strategy in real-time) | β No (only reads and displays data) | 
| π¦ Data Source | Real-time market data, order execution | Local SQLite database (or strategy output) | 
| β± Use Case | Live trading (simulated or real) | View strategy performance/order info in browser | 
| π Connects to Exchange? | β Yes | β No | 
| π View Backtest Results? | β No | β Supports backtest visualization | 
| π Browser Access Address | Optional UI, runs in background | http://127.0.0.1:8080 (default) | 
β Use Case Distinction
  
  
  1. trade Runs the Bot
You can choose live trading or dry-run (simulated trading):
freqtrade trade \
  --config user_data/config.json \
  --strategy MyStrategy \
  --dry-run
- Continuously fetches real-time market data
 - Executes strategy logic (e.g., buy/sell signals)
 - Connects to the exchange, records orders, funds, and profits
 - Writes all data to a local database (SQLite)
 
π‘ Without this, the bot won't do anything!
  
  
  2. webserver Provides a Graphical Interface
It only reads data and provides a browser-based interface:
freqtrade webserver \
  --config user_data/config.json \
  --username admin --password 123456
- Displays current holdings, trade history, and strategy name
 - Allows viewing of live strategy performance
 - Can also display backtest result charts (e.g., after running backtesting)
 
β Does not run strategies or connect to exchanges!
π Relationship Summary
- 
tradeis the "bot engine" - 
webserveris the "graphical interface" 
You can think of it like this:
- 
tradeis the executor that does the actual work - 
webserveris the observation window 
If you only run webserver without running trade, youβll only see previously recorded data, and no new trades will be generated.
π§© Practical Advice (Docker Environment)
services:
  trader:
    image: freqtradeorg/freqtrade:stable
    command: >
      trade
      --config /quants/freqtrade/user_data/config.json
      --strategy MyStrategy
  ui:
    image: freqtradeorg/freqtrade:stable
    command: >
      webserver
      --config /quants/freqtrade/user_data/config.json
      --username admin
      --password 123456
    ports:
      - "8080:8080"
Then, open your browser and visit: http://localhost:8080 to access your trading bot's dashboard.
              
    
Top comments (0)