freqtrade-bot

freqtrade-bot is a skill for Claude Code from mahmoud20138/Tradecraft. It costs 61 tokens per session (4,417 once invoked), scanned A, original, MIT.

Freqtrade is a free, open-source Python program for automated cryptocurrency trading. It supports backtesting, parameter optimization, adaptive machine-learning strategies, exchange connections, and control through a command line, Telegram, or a web interface.

In plain words
What is it for?
Use it to create Python trading strategies, test them against historical data, optimize their parameters, run spot or futures bots on supported exchanges, and manage them through Telegram or a web interface.
Why use it?
It lets developers test and run crypto trading strategies in one framework instead of building exchange connections, testing tools, and controls separately. Backtesting and optimization help examine a strategy before or while using it.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the tradecraft plugin — 58 skills shipped together

Good fit Use it to create Python trading strategies, test them against historical data, optimize their parameters, run spot or futures bots on supported exchanges, and manage them through Telegram or a web interface.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mahmoud20138/tradecraft/freqtrade-bot
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mahmoud20138/Tradecraft --skill freqtrade-bot
Clone the repo
git clone --depth 1 https://github.com/mahmoud20138/Tradecraft

Made for: Claude Code.

Or install tradecraft, the plugin that ships this one along with the rest of its 58 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for freqtrade-bot

README.md
[![agentmods](https://agentmods.dev/badge/skills/mahmoud20138/tradecraft/freqtrade-bot/github.svg)](https://agentmods.dev/skills/mahmoud20138/tradecraft/freqtrade-bot)
Your own site
<a href="https://agentmods.dev/skills/mahmoud20138/tradecraft/freqtrade-bot"><img src="https://agentmods.dev/badge/skills/mahmoud20138/tradecraft/freqtrade-bot/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for freqtrade-bot

Your own site · 80×15
<a href="https://agentmods.dev/skills/mahmoud20138/tradecraft/freqtrade-bot"><img src="https://agentmods.dev/badge/skills/mahmoud20138/tradecraft/freqtrade-bot.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,417 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00061 $0.04417
Opus 5 $0.00030 $0.02209
Sonnet 5 $0.00012 $0.00883
Haiku 4.5 $0.00006 $0.00442

Measured 12d ago against content hash cfb9c470c84a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

freqtrade-bot scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

data = requests.get(batch_url).json()
plugins/tradecraft/skills/freqtrade-bot/SKILL.md · 551 lines

How it starts

The opening of the file, as written. The whole thing — 551 lines — stays where its author put it; the contents beside it link to each section on GitHub.

freqtrade-bot

USE FOR:

  • "crypto trading bot Python"
  • "freqtrade strategy development"
  • "backtesting crypto strategy"
  • "hyperopt parameter optimization"
  • "FreqAI machine learning trading"
  • "Binance/Bybit/Kraken automated bot"
  • "Telegram trading bot" tags: [freqtrade, crypto, trading-bot, backtesting, hyperopt, FreqAI, Binance, Bybit, Python, Telegram, ML] kind: framework category: crypto-defi-trading

What Is Freqtrade?

Free open-source Python crypto trading bot with full backtesting and ML optimization.


Supported Exchanges

Type Exchanges
Spot Binance · Kraken · Gate.io · OKX · Bybit · Kucoin · Bitvavo
Futures Binance · Bitget · Gate.io · OKX · Bybit

Installation

# Docker (recommended)
docker compose up -d

# pip install
pip install freqtrade
freqtrade install-ui   # optional WebUI

# From source
git clone https://github.com/freqtrade/freqtrade
cd freqtrade
./setup.sh -i

CLI Commands

# Create new strategy template
freqtrade new-strategy --strategy MyStrategy

# Run backtesting
freqtrade backtesting --strategy MyStrategy --timerange 20240101-20241231

# Hyperopt (ML parameter search)
freqtrade hyperopt --strategy MyStrategy --hyperopt-loss SharpeHyperOptLoss --epochs 500

# Paper trading (dry run)
freqtrade trade --strategy MyStrategy --dry-run

# Live trading
freqtrade trade --strategy MyStrategy

# Plot strategy signals
freqtrade plot-dataframe --strategy MyStrategy

Strategy Structure

from freqtrade.strategy import IStrategy, DecimalParameter, IntParameter
import pandas as pd
from pandas import DataFrame
import talib.abstract as ta

class MyStrategy(IStrategy):
    # Required settings
    minimal_roi = {"0": 0.10, "30": 0.05, "60": 0.01}
    stoploss = -0.05
    timeframe = "1h"

    # Hyperopt parameters (searchable)
    rsi_period = IntParameter(10, 30, default=14, space="buy")
    rsi_buy    = IntParameter(20, 40, default=30, space="buy")
    rsi_sell   = IntParameter(60, 80, default=70, space="sell")

    def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
        dataframe["rsi"]  = ta.RSI(dataframe, timeperiod=self.rsi_period.value)
        dataframe["macd"], dataframe["macdsignal"], _ = ta.MACD(dataframe)
        dataframe["ema20"] = ta.EMA(dataframe, timeperiod=20)
        return dataframe

    def populate_entry_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
        dataframe.loc[
            (dataframe["rsi"] < self.rsi_buy.value) &
            (dataframe["close"] > dataframe["ema20"]),
            "enter_long"
        ] = 1
        return dataframe

    def populate_exit_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
        dataframe.loc[
            dataframe["rsi"] > self.rsi_sell.value,
            "exit_long"
        ] = 1
        return dataframe

Read the full file on GitHub · 551 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 551 lines · 61 tokens per session scan A cfb9c470c84a

Subscribe to this mod's changes

freqtrade-bot is a skill published in the GitHub repository mahmoud20138/Tradecraft (15 stars, last pushed 4mo ago), licensed MIT. It adds 61 tokens to every session and 4,417 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories