Linux command
freqtrade 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start trading
freqtrade trade --config [config.json] --strategy [StrategyName]
Run backtesting
freqtrade backtesting --config [config.json] --strategy [StrategyName]
Download historical data
freqtrade download-data --config [config.json] --pairs [BTC/USDT] --timeframes [1h]
Create a new configuration file
freqtrade new-config
Optimize strategy parameters
freqtrade hyperopt --config [config.json] --strategy [StrategyName] --hyperopt-loss [SharpeHyperOptLoss]
List available exchanges
freqtrade list-exchanges
List trading pairs
freqtrade list-pairs --config [config.json] --exchange [binance]
Start the web UI
freqtrade webserver --config [config.json]
说明
freqtrade is an open-source cryptocurrency trading bot written in Python. It supports automated trading on major exchanges including Binance, Kraken, Coinbase, and many others through the CCXT library. The bot executes user-defined trading strategies that specify entry and exit conditions based on technical indicators. Strategies are Python classes that can be backtested against historical data before live deployment. The hyperopt feature uses machine learning to optimize strategy parameters. Freqtrade operates in dry-run mode by default, simulating trades without real money. It can be controlled via Telegram bot or the FreqUI web interface. Trade data is stored in a SQLite database for analysis and the plot commands visualize strategy performance.
参数
- -c, --config _PATH_
- Specify configuration file (default: config.json)
- -s, --strategy _NAME_
- Specify strategy class name
- --strategy-path _PATH_
- Additional strategy lookup path
- -d, --datadir _PATH_
- Path to historical data directory
- --userdir _PATH_
- Path to user data directory
- -v, --verbose
- Verbose mode (-vv for more, -vvv for all)
- --logfile _FILE_
- Log to specified file
- --no-color
- Disable colorized output
- --db-url _URL_
- Database URL for trade storage
- --dry-run
- Run in simulation mode without real trades
- -V, --version
- Show version number
- -h, --help
- Show help message
FAQ
What is the freqtrade command used for?
freqtrade is an open-source cryptocurrency trading bot written in Python. It supports automated trading on major exchanges including Binance, Kraken, Coinbase, and many others through the CCXT library. The bot executes user-defined trading strategies that specify entry and exit conditions based on technical indicators. Strategies are Python classes that can be backtested against historical data before live deployment. The hyperopt feature uses machine learning to optimize strategy parameters. Freqtrade operates in dry-run mode by default, simulating trades without real money. It can be controlled via Telegram bot or the FreqUI web interface. Trade data is stored in a SQLite database for analysis and the plot commands visualize strategy performance.
How do I run a basic freqtrade example?
Run `freqtrade trade --config [config.json] --strategy [StrategyName]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -c, --config _PATH_ do in freqtrade?
Specify configuration file (default: config.json)