← 返回
未分类 中文

Freqtrade Tools

Shell aliases and helper commands for Freqtrade (cryptocurrency trading bot) that speed up common tasks. Use when setting up Freqtrade shortcuts, downloading...
Freqtrade(加密货币交易机器人)的Shell别名和辅助命令,加速常见任务。用于设置快捷方式和下载...
djc00p
未分类 clawhub v1.0.4 2 版本 100000 Key: 无需
★ 1
Stars
📥 714
下载
💾 0
安装
2
版本
#latest

概述

Freqtrade Tools

> ⚠️ Live Trading Warning: Before using ftstart, ftstop, or ftrestart, confirm whether Freqtrade is in dry-run or live-trading mode. These commands control real trading services. Verify your config before starting the bot.

Shell aliases and helper commands for faster Freqtrade workflows across Linux, macOS, and Windows.

Installation

Bash/Zsh: Copy functions from references/bash-zsh-aliases.md into ~/.bashrc (Linux) or ~/.zshrc (macOS), then source ~/.bashrc.

PowerShell: Copy functions from references/windows-equivalents.md into your $PROFILE file.

Core Commands

CommandPurpose
------------------
ftdataDownload market data from Kraken
ftbackRun backtesting on a strategy
ftstartStart docker-compose services
ftstopStop docker-compose services
ftrestartRestart docker-compose services
ftlogsStream live logs from bot
ftstatusCheck service status + tail logs
ftlistList downloaded data files
ftuiOpen bot UI in browser

ftdata — Download Data

Download market data with automatic date range calculation.

Usage:

ftdata "BTC/USDT" 90 5m           # Download 90 days of 5-min BTC/USDT data
ftdata "ETH/USDT" 30 1h           # 30 days of 1-hour ETH/USDT
ftdata "SOL/USDT"                 # Use defaults: 30 days, 5-min
ftdata "XRP/USDT" 365 5m --erase  # Download 1 year, erase old data first

Parameters:

  • Pair (required): Trading pair like BTC/USDT
  • Days (optional): Historical days to download (default: 30)
  • Timeframe (optional): Candle size — 5m, 1h, 4h, 1d (default: 5m)
  • --erase (optional): Clear cached data before downloading (use when extending range)

Why --erase? Kraken enforces data continuity. When extending a download window (e.g., 30→90 days), you must erase existing data first to prevent overlaps.

ftback — Run Backtest

Run backtesting with automatic date calculations and optional pair filter.

Usage:

ftback "MyStrategy" 60 5m                      # Test MyStrategy for 60 days
ftback "MyStrategy" 90 1h "BTC/USDT"          # Test on specific pair
ftback                                         # Use defaults: SampleStrategy, 30 days, 5m

Bot Control

Start, stop, restart, and monitor services:

ftstart    # Start services
ftstop     # Stop services
ftrestart  # Restart services
ftlogs     # Stream logs (-f flag for follow)
ftstatus   # Service status + recent logs
ftlist     # View downloaded data inventory
ftui       # Open UI (auto-detect browser)

Safety

Before Using Bot Control Commands

  • Check trading mode: Confirm dry_run: true in your config unless you intend live trading
  • ftstart confirmation: When dry_run: false, ask for explicit human confirmation before starting
  • ftstop/ftrestart: Always notify the human before stopping or restarting services

References

  • See references/bash-zsh-aliases.md for full function implementations
  • See references/windows-equivalents.md for PowerShell and Command Prompt versions

版本历史

共 2 个版本

  • v1.0.4 当前
    2026-05-07 03:40 安全 安全
  • v1.0.3
    2026-05-03 04:59 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Agent Cost Strategy

djc00p
分层模型选择与成本优化,适用于多智能体 AI 工作流。在为任务选择模型或启动子代理时使用此技能。
★ 0 📥 721

Coding Standards

djc00p
通用编码规范,适用于 TypeScript、JavaScript、React、Node.js。原则:可读性优先、KISS、DRY、YAGNI;涵盖命名、类型安全、错误处理等。
★ 0 📥 691

Browser QA

djc00p
自动化视觉测试和 UI 交互验证。四阶段方法:冒烟测试(控制台错误、网络状态、Web Vitals),交互测试(表单等)
★ 1 📥 640