How saamy4r/freqtrade_reply works
Freqtrade Replay is a command-line harness that runs the real Freqtrade bot over historical local candle data. The workflow parses replay options, validates or downloads missing data, then advances virtual time while a replay exchange serves historical candles and simulated fills; results are persisted for FreqUI and analysis, with an optional HTML report. The runner and exchange excerpts support the principal runtime links; README statements cover documented output compatibility and automatic downloads.
Main entry points: runner.py Replay runner · exchange.py Replay exchange · data_store.py Candle data store · cli.py Replay CLI
Components 12
Replay entry
- Replay CLI
cli.py - Replay runner
runner.py
Replay simulation
- Replay exchange
exchange.py - Virtual clock
clock.py - Freqtrade bot
Historical data
- Freqtrade downloader
- Feather data
- Candle data store
data_store.py
Results
- Replay SQLite DB
- Run summary
runner.py - HTML report
runner.py
Other components
- Operator
Connections 14
- Operator → Replay CLI: runs with options
cli.py - Replay CLI → Replay runner: starts replay
cli.py - Replay runner → Candle data store: loads and validates
runner.py - Replay runner → Freqtrade downloader: downloads missing data
runner.py - Feather data → Candle data store: provides candles
- Replay runner → Virtual clock: starts and advances
runner.py - Replay runner → Replay exchange: installs replay exchange
runner.py - Replay exchange → Candle data store: reads candle data
exchange.py - Replay exchange → Virtual clock: reads replay time
exchange.py - Replay runner → Freqtrade bot: drives processing
runner.py - Freqtrade bot → Replay exchange: requests market data and fills
- Freqtrade bot → Replay SQLite DB: persists trades
README.md - Replay runner → Run summary: prints statistics
runner.py - Replay runner → HTML report: writes optional report
runner.py