Freqtrade

免费开源的加密货币交易机器人。(Free, open source crypto trading bot)

Github stars Tracking Chart

Freqtrade

Freqtrade 是一个用 Python 编写的免费开源加密货币交易机器人。它旨在支持所有主要的交换,并通过 Telegram 进行控制。 它回溯测试、绘图和资金管理工具,以及通过机器学习进行的策略优化。

免责声明

本软件仅用于教学目的。不要拿你害怕失去的钱去冒险。使用软件的风险由你自己承担。作者和所有附属公司对您的交易结果不承担任何责任。

一定要先在 Dry-run 中运行一个交易机器人,在你理解它是如何运作的以及你应该预期的利润损失之前不要涉及金钱。

我们强烈建议您具有编码和 Python 知识。 不要犹豫,阅读源代码并了解该机器人的机制。

支持交易所市场

文档

我们邀请您阅读机器人文档,以确保您了解机器人的工作方式。

请在我们的网站上找到完整的文档。

特性

  • 基于 Python 3.6+:适用于任何操作系统 -- Windows、macOS 和 Linux。
  • 持久性:持久性是通过 sqlite 实现的。
  • 空运行:在不花钱的情况下运行机器人。
  • 回测:模拟您的购买/出售策略。
  • 通过机器学习进行策略优化:使用机器学习通过真实的交易数据来优化您的买卖策略参数。
  • 优势头寸规模计算每个特定市场的头寸之前,计算您的获胜率、风险回报率、最佳止损并调整头寸大小。学到更多
  • 白名单加密货币:选择要交易或使用动态白名单的加密货币。
  • 黑名单加密货币:选择要避免使用的加密货币。
  • 可通过电报管理:使用电报管理机器人。
  • 以法币显示利润/亏损:以33法币显示您的利润/亏损。
  • 每日损益汇总:提供您的损益每日汇总。
  • 绩效状态报告:提供您当前交易的绩效状态。

快速开始


Freqtrade 提供了一个 Linux/macOS 脚本来安装所有依赖项并帮助您配置 bot。

git clone git@github.com:freqtrade/freqtrade.git
cd freqtrade
git checkout develop
./setup.sh --install

对于任何其他类型的安装,请参考安装文档

要求

最新时钟

时钟必须准确,并非常频繁地同步到NTP服务器,以避免与交换机的通信出现问题。

最低硬件要求

要运行此机器人,我们建议您至少使用以下云实例:

最低(建议)的系统要求:2GB RAM,1GB磁盘空间,2vCPU

软件需求


Overview

Name With Ownerfreqtrade/freqtrade
Primary LanguagePython
Program languagePython (Language Count: 8)
Platform
License:GNU General Public License v3.0
Release Count88
Last Release Name2024.4 (Posted on )
First Release Name0.9.0 (Posted on 2017-09-10 22:57:11)
Created At2017-05-17 23:48:53
Pushed At2024-05-13 17:52:00
Last Commit At
Stargazers Count25.7k
Watchers Count624
Fork Count5.7k
Commits Count24.5k
Has Issues Enabled
Issues Count4494
Issue Open Count39
Pull Requests Count4987
Pull Requests Open Count9
Pull Requests Close Count668
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

Freqtrade

Build Status
Coverage Status
Documentation
Maintainability

Freqtrade is a free and open source crypto trading bot written in Python. It is designed to support all major exchanges and be controlled via Telegram. It contains backtesting, plotting and money management tools as well as strategy optimization by machine learning.

freqtrade

Disclaimer

This software is for educational purposes only. Do not risk money which
you are afraid to lose. USE THE SOFTWARE AT YOUR OWN RISK. THE AUTHORS
AND ALL AFFILIATES ASSUME NO RESPONSIBILITY FOR YOUR TRADING RESULTS.

Always start by running a trading bot in Dry-run and do not engage money
before you understand how it works and what profit/loss you should
expect.

We strongly recommend you to have coding and Python knowledge. Do not
hesitate to read the source code and understand the mechanism of this bot.

Exchange marketplaces supported

Documentation

We invite you to read the bot documentation to ensure you understand how the bot is working.

Please find the complete documentation on our website.

Features

  • Based on Python 3.6+: For botting on any operating system - Windows, macOS and Linux.
  • Persistence: Persistence is achieved through sqlite.
  • Dry-run: Run the bot without playing money.
  • Backtesting: Run a simulation of your buy/sell strategy.
  • Strategy Optimization by machine learning: Use machine learning to optimize your buy/sell strategy parameters with real exchange data.
  • Edge position sizing Calculate your win rate, risk reward ratio, the best stoploss and adjust your position size before taking a position for each specific market. Learn more.
  • Whitelist crypto-currencies: Select which crypto-currency you want to trade or use dynamic whitelists.
  • Blacklist crypto-currencies: Select which crypto-currency you want to avoid.
  • Manageable via Telegram: Manage the bot with Telegram.
  • Display profit/loss in fiat: Display your profit/loss in 33 fiat.
  • Daily summary of profit/loss: Provide a daily summary of your profit/loss.
  • Performance status report: Provide a performance status of your current trades.

Quick start

Freqtrade provides a Linux/macOS script to install all dependencies and help you to configure the bot.

git clone git@github.com:freqtrade/freqtrade.git
cd freqtrade
git checkout develop
./setup.sh --install

For any other type of installation please refer to Installation doc.

Basic Usage

Bot commands

usage: freqtrade [-h] [-v] [--logfile FILE] [--version] [-c PATH] [-d PATH]
                 [-s NAME] [--strategy-path PATH] [--dynamic-whitelist [INT]]
                 [--db-url PATH] [--sd-notify]
                 {backtesting,edge,hyperopt} ...

Free, open source crypto trading bot

positional arguments:
  {backtesting,edge,hyperopt}
    backtesting         Backtesting module.
    edge                Edge module.
    hyperopt            Hyperopt module.

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         Verbose mode (-vv for more, -vvv to get all messages).
  --logfile FILE        Log to the file specified
  --version             show program's version number and exit
  -c PATH, --config PATH
                        Specify configuration file (default: None). Multiple
                        --config options may be used.
  -d PATH, --datadir PATH
                        Path to backtest data.
  -s NAME, --strategy NAME
                        Specify strategy class name (default:
                        DefaultStrategy).
  --strategy-path PATH  Specify additional strategy lookup path.
  --dynamic-whitelist [INT]
                        Dynamically generate and update whitelist based on 24h
                        BaseVolume (default: 20). DEPRECATED.
  --db-url PATH         Override trades database URL, this is useful if
                        dry_run is enabled or in custom deployments (default:
                        None).
  --sd-notify           Notify systemd service manager.

Telegram RPC commands

Telegram is not mandatory. However, this is a great way to control your bot. More details and the full command list on our documentation

  • /start: Starts the trader
  • /stop: Stops the trader
  • /status [table]: Lists all open trades
  • /count: Displays number of open trades
  • /profit: Lists cumulative profit from all finished trades
  • `/forcesell <trade_id>
To the top