Freqtrade 是一個用 Python 寫的免費開源加密貨幣交易機器人。它旨在支援所有主要交易所並透過 Telegram 或 webUI 進行控制。它包含回測、繪圖和資金管理工具以及透過機器學習進行的策略最佳化。
該軟體僅用於教育目的。不要拿您害怕損失的錢去冒險。使用該軟體的風險由您自行承擔。作者和所有附屬機構對您的交易結果不承擔任何責任。
始終從在試運行中運行交易機器人開始,並且在了解其工作原理以及您應該預期的利潤/損失之前不要投入資金。
我們強烈建議您具備編碼和 Python 知識。請毫不猶豫地閱讀原始程式碼並了解該機器人的機制。
請閱讀交易所特定說明,以了解每個交易所最終所需的特殊配置。
在開始之前,請務必閱讀交易所的具體說明以及槓桿交易文件。
交易所確認了社區的工作:
我們邀請您閱讀機器人文檔,以確保您了解機器人的工作原理。
請在 freqtrade 網站上找到完整的文件。
如何快速入門請參考 Docker 快速入門文件。
如需更多(本機)安裝方法,請參閱安裝文件頁面。
usage: freqtrade [-h] [-V]
{trade,create-userdir,new-config,show-config,new-strategy,download-data,convert-data,convert-trade-data,trades-to-ohlcv,list-data,backtesting,backtesting-show,backtesting-analysis,edge,hyperopt,hyperopt-list,hyperopt-show,list-exchanges,list-markets,list-pairs,list-strategies,list-freqaimodels,list-timeframes,show-trades,test-pairlist,convert-db,install-ui,plot-dataframe,plot-profit,webserver,strategy-updater,lookahead-analysis,recursive-analysis}
...
Free, open source crypto trading bot
positional arguments:
{trade,create-userdir,new-config,show-config,new-strategy,download-data,convert-data,convert-trade-data,trades-to-ohlcv,list-data,backtesting,backtesting-show,backtesting-analysis,edge,hyperopt,hyperopt-list,hyperopt-show,list-exchanges,list-markets,list-pairs,list-strategies,list-freqaimodels,list-timeframes,show-trades,test-pairlist,convert-db,install-ui,plot-dataframe,plot-profit,webserver,strategy-updater,lookahead-analysis,recursive-analysis}
trade Trade module.
create-userdir Create user-data directory.
new-config Create new config
show-config Show resolved config
new-strategy Create new strategy
download-data Download backtesting data.
convert-data Convert candle (OHLCV) data from one format to
another.
convert-trade-data Convert trade data from one format to another.
trades-to-ohlcv Convert trade data to OHLCV data.
list-data List downloaded data.
backtesting Backtesting module.
backtesting-show Show past Backtest results
backtesting-analysis
Backtest Analysis module.
edge Edge module.
hyperopt Hyperopt module.
hyperopt-list List Hyperopt results
hyperopt-show Show details of Hyperopt results
list-exchanges Print available exchanges.
list-markets Print markets on exchange.
list-pairs Print pairs on exchange.
list-strategies Print available strategies.
list-freqaimodels Print available freqAI models.
list-timeframes Print available timeframes for the exchange.
show-trades Show trades.
test-pairlist Test your pairlist configuration.
convert-db Migrate database to different system
install-ui Install FreqUI
plot-dataframe Plot candles with indicators.
plot-profit Generate plot showing profits.
webserver Webserver module.
strategy-updater updates outdated strategy files to the current version
lookahead-analysis Check for potential look ahead bias.
recursive-analysis Check for potential recursive formula issue.
options:
-h, --help show this help message and exit
-V, --version show program's version number and exit
電報不是強制性的。然而,這是控制機器人的好方法。文件中的更多詳細資訊和完整命令列表
/start
:啟動交易者。/stop
:停止交易者。/stopentry
:停止進入新交易。/status <trade_id>|[table]
:列出所有或特定的未平倉交易。/profit [<n>]
:列出過去 n 天所有已完成交易的累積利潤。/forceexit <trade_id>|all
:立即退出給定交易(忽略minimum_roi
)。/fx <trade_id>|all
: /forceexit
的別名/performance
:顯示按對分組的每筆已完成交易的表現/balance
:顯示每種貨幣的帳戶餘額。/daily <n>
:顯示過去 n 天每天的利潤或損失。/help
: 顯示幫助訊息。/version
:顯示版本。 該項目目前分為兩個主要分支:
develop
- 此分支通常具有新功能,但也可能包含重大變更。我們努力保持這個分支盡可能穩定。stable
- 該分支包含最新的穩定版本。該分支通常經過良好測試。feat/*
- 這些是功能分支,正在大量開發。除非您想測試特定功能,否則請不要使用它們。 對於文件中未涵蓋的任何問題或有關機器人的更多信息,或者只是與志趣相投的人交流,我們鼓勵您加入 Freqtrade Discord 伺服器。
如果您發現機器人中存在錯誤,請先搜尋問題追蹤器。如果尚未報告,請建立新問題並確保遵循範本指南,以便團隊可以盡快為您提供協助。
對於創建的每個問題,請跟進並標記滿意或在達到平衡點時提醒關閉問題。
--維護github的社區政策--
您有改進機器人的好點子嗎?請先搜尋是否尚未討論此功能。如果尚未要求,請建立新請求並確保遵循範本指南,以免它在錯誤報告中遺失。
感覺機器人缺少某個功能嗎?我們歡迎您的請求!
在發送拉取請求之前,請閱讀貢獻文件以了解要求。
編碼並不是貢獻的必要條件-也許可以從改進文件開始?標記為“goodfirst issues”的問題可以是“goodfirstcontribution”,並將幫助您熟悉程式碼庫。
請注意,在開始任何主要新功能工作之前,請打開一個問題描述您計劃做什麼或在 Discord 上與我們交談(請使用 #dev 頻道)。這將確保感興趣的各方可以對該功能提供有價值的回饋,並讓其他人知道您正在開發該功能。
重要提示:始終針對develop
分支建立 PR,而不是stable
。
時鐘必須準確,並且經常與 NTP 伺服器同步,以避免與交換器的通訊出現問題。
要運行此機器人,我們建議您使用至少具有以下配置的雲端實例: