Xpersona
F

Freqtrade Tools

CLAWHUB · Unverified

Shell aliases and helper commands for Freqtrade (cryptocurrency trading bot) that speed up common tasks. Use when setting up Freqtrade shortcuts, downloading... Skill: Freqtrade Tools Owner: djc00p Summary: Shell aliases and helper commands for Freqtrade (cryptocurrency trading bot) that speed up common tasks. Use when setting up Freqtrade shortcuts, downloading... Tags: latest:1.0.4 Version history: v1.0.4 | 2026-05-06T01:13:28.826Z | user Security: add live trading warning box, Safety section with dry-run vs live-trade confirmation guidance for bot control commands. v1.0.3

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17akx17qd32yxnr1065qq0kdd83h2c3:freqtrade-tools
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-djc00p-freqtrade-tools/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

66,343 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: freqtrade-tools
description: "Shell aliases and helper commands for Freqtrade (cryptocurrency trading bot) that speed up common tasks. Use when setting up Freqtrade shortcuts, downloading market data quickly, running backtests from the command line, or controlling the bot. ⚠️ Bot control commands (ftstart/ftstop/ftrestart) require confirmation when connected to live trading. Covers bash/zsh (Linux/macOS) and PowerShell/Command Prompt (Windows). Trigger phrases: freqtrade aliases, freqtrade shortcuts, ftdata, ftback, freqtrade commands, freqtrade windows."
metadata: {"clawdbot":{"emoji":"⚡","requires":{"bins":["docker","docker-compose"]},"os":["linux","darwin","win32"]}}
---

# 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

| Command | Purpose |
|---------|---------|
| `ftdata` | Download market data from Kraken |
| `ftback` | Run backtesting on a strategy |
| `ftstart` | Start docker-compose services |
| `ftstop` | Stop docker-compose services |
| `ftrestart` | Restart docker-compose services |
| `ftlogs` | Stream live logs from bot |
| `ftstatus` | Check service status + tail logs |
| `ftlist` | List downloaded data files |
| `ftui` | Open bot UI in browser |

## ftdata — Download Data

Download market data with automatic date range calculation.

**Usage:**
```bash
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:**
```bash
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, 

_meta.json

{
  "ownerId": "kn75k4jwpn9qgy3pk38e93gkt982zqmg",
  "slug": "freqtrade-tools",
  "version": "1.0.4",
  "publishedAt": 1778030008826
}

references/bash-zsh-aliases.md

# Bash/Zsh Aliases for Freqtrade

Add these functions to your `.bashrc`, `.zshrc`, or source this file directly.

## ftdata — Download Data

```bash
ftdata() {
  PAIR=${1:-"BTC/USDT"}
  DAYS=${2:-30}
  TIMEFRAME=${3:-"5m"}
  
  # Validate PAIR (alphanumeric + /)
  if [[ ! "$PAIR" =~ ^[A-Za-z0-9/]+$ ]]; then
    echo "Error: invalid pair format. Use alphanumeric and / only (e.g., BTC/USDT)"; return 1
  fi
  
  # Validate TIMEFRAME (alphanumeric + m/h/d)
  if [[ ! "$TIMEFRAME" =~ ^[0-9]+(m|h|d)$ ]]; then
    echo "Error: invalid timeframe format. Use format like 5m, 1h, 1d"; return 1
  fi
  
  # Handle --erase flag safely
  ERASE_FLAG=""
  if [[ "$4" == "--erase" ]]; then
    ERASE_FLAG="--erase"
  fi
  
  START_DATE=$(date -d "$DAYS days ago" +%Y%m%d 2>/dev/null || \
    date -v-${DAYS}d +%Y%m%d)
  docker-compose run --rm freqtrade download-data \
    --exchange kraken \
    --pairs "$PAIR" \
    --timerange "${START_DATE}-" \
    --timeframe "$TIMEFRAME" \
    $ERASE_FLAG
}
```

**Usage Examples:**
```bash
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
```

**Critical Notes:**
- Call with ONE pair at a time. Multiple pairs cause errors.
- Use `--erase` when extending your data range backward in time.

## ftback — Run Backtest

```bash
ftback() {
  STRATEGY=${1:-"SampleStrategy"}
  DAYS=${2:-30}
  TIMEFRAME=${3:-"5m"}
  PAIRS=${4:-}
  
  # Validate STRATEGY (alphanumeric, underscore, hyphen only)
  if [[ ! "$STRATEGY" =~ ^[A-Za-z0-9_-]+$ ]]; then
    echo "Error: invalid strategy name. Use alphanumeric, underscore, or hyphen only"; return 1
  fi
  
  # Validate TIMEFRAME (alphanumeric + m/h/d)
  if [[ ! "$TIMEFRAME" =~ ^[0-9]+(m|h|d)$ ]]; then
    echo "Error: invalid timeframe format. Use format like 5m, 1h, 1d"; return 1
  fi
  
  # Validate PAIRS if provided (alphanumeric + /)
  if [[ -n "$PAIRS" ]] && [[ ! "$PAIRS" =~ ^[A-Za-z0-9/,]+$ ]]; then
    echo "Error: invalid pairs format. Use alphanumeric, /, and comma only"; return 1
  fi
  
  START_DATE=$(date -d "$DAYS days ago" +%Y%m%d 2>/dev/null || \
    date -v-${DAYS}d +%Y%m%d)
  if [ -z "$PAIRS" ]; then
    docker-compose run --rm freqtrade backtesting \
      --strategy "$STRATEGY" \
      --timerange "${START_DATE}-" \
      --timeframe "$TIMEFRAME" \
      --breakdown day
  else
    docker-compose run --rm freqtrade backtesting \
      --strategy "$STRATEGY" \
      --timerange "${START_DATE}-" \
      --timeframe "$TIMEFRAME" \
      --pairs "$PAIRS" \
      --breakdown day
  fi
}
```

**Usage Examples:**
```bash
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 Co

references/windows-equivalents.md

# Windows PowerShell & Command Prompt Equivalents

## PowerShell Functions

Add these to your PowerShell profile (`$PROFILE`) or dot-source this file.

### ftdata — Download Data

```powershell
function ftdata {
  param(
    [string]$Pair = "BTC/USDT",
    [int]$Days = 30,
    [string]$Timeframe = "5m",
    [string]$Erase = ""
  )
  
  # Validate Pair (alphanumeric + / only)
  if ($Pair -notmatch '^[A-Za-z0-9/]+$') {
    Write-Host "Error: invalid pair format. Use alphanumeric and / only (e.g., BTC/USDT)"
    return
  }
  
  # Validate Timeframe (digits + m/h/d)
  if ($Timeframe -notmatch '^\d+(m|h|d)$') {
    Write-Host "Error: invalid timeframe format. Use format like 5m, 1h, 1d"
    return
  }
  
  # Handle --erase flag safely
  $EraseFlag = ""
  if ($Erase -eq "--erase") {
    $EraseFlag = "--erase"
  }
  
  $StartDate = (Get-Date).AddDays(-$Days).ToString("yyyyMMdd")
  docker-compose run --rm freqtrade download-data `
    --exchange kraken `
    --pairs "$Pair" `
    --timerange "${StartDate}-" `
    --timeframe "$Timeframe" `
    $EraseFlag
}
```

**Usage Examples:**
```powershell
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
```

**Critical Notes:**
- Call with ONE pair at a time. Multiple pairs cause errors.
- Use `--erase` when extending your data range backward in time.

### ftback — Run Backtest

```powershell
function ftback {
  param(
    [string]$Strategy = "SampleStrategy",
    [int]$Days = 30,
    [string]$Timeframe = "5m",
    [string]$Pairs = ""
  )
  
  # Validate Strategy (alphanumeric, underscore, hyphen only)
  if ($Strategy -notmatch '^[A-Za-z0-9_-]+$') {
    Write-Host "Error: invalid strategy name. Use alphanumeric, underscore, or hyphen only"
    return
  }
  
  # Validate Timeframe (digits + m/h/d)
  if ($Timeframe -notmatch '^\d+(m|h|d)$') {
    Write-Host "Error: invalid timeframe format. Use format like 5m, 1h, 1d"
    return
  }
  
  # Validate Pairs if provided (alphanumeric + / and comma)
  if (-not [string]::IsNullOrEmpty($Pairs) -and $Pairs -notmatch '^[A-Za-z0-9/,]+$') {
    Write-Host "Error: invalid pairs format. Use alphanumeric, /, and comma only"
    return
  }
  
  $StartDate = (Get-Date).AddDays(-$Days).ToString("yyyyMMdd")
  if ([string]::IsNullOrEmpty($Pairs)) {
    docker-compose run --rm freqtrade backtesting `
      --strategy "$Strategy" `
      --timerange "${StartDate}-" `
      --timeframe "$Timeframe" `
      --breakdown day
  } else {
    docker-compose run --rm freqtrade backtesting `
      --strategy "$Strategy" `
      --timerange "${StartDate}-" `
      --timeframe "$Timeframe" `
      --pairs "$Pairs" `
      --breakdown day
  }
}
```

**Usage Examples:**
```powershell
ftback "MyStrategy" 60 5m                      # Test MyStrategy for 60 days
ftback "MyStrat

skill-card.md

## Description:

Shell aliases and helper commands for Freqtrade that help agents set up shortcuts, download market data, run command-line backtests, and control bot services across Linux, macOS, and Windows.

This skill is ready for commercial/non-commercial use.

## Publisher:

[djc00p](https://clawhub.ai/user/djc00p)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and trading-bot operators use this skill to install and adapt Freqtrade shell helpers for market-data downloads, strategy backtesting, service status checks, logs, UI access, and bot start/stop/restart workflows.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Windows batch examples can construct commands unsafely if untrusted arguments are passed.

Mitigation: Prefer the PowerShell functions, validate numeric and symbol inputs before use, and quote or whitelist all batch-file arguments.

Risk: Bot-control shortcuts can start, stop, or restart live trading services.

Mitigation: Confirm dry-run versus live-trading mode and require explicit human confirmation before ftstart, ftstop, or ftrestart on live bots.

## Reference(s):

- [Bash/Zsh Aliases](references/bash-zsh-aliases.md)
- [Windows PowerShell and Command Prompt Equivalents](references/windows-equivalents.md)
- [ClawHub Skill Page](https://clawhub.ai/djc00p/skills/freqtrade-tools)

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]

**Output Format:** [Markdown with shell and PowerShell command snippets]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires docker, docker-compose, and a local Freqtrade setup.]

## Skill Version(s):

1.0.4 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Freqtrade Tools and adjacent AI workflows.