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.
npx skills add mahmoud20138/Tradecraft --skill freqtrade-botgit clone --depth 1 https://github.com/mahmoud20138/TradecraftWrote 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.
[](https://agentmods.dev/skills/mahmoud20138/tradecraft/freqtrade-bot)<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.
<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>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.
| Model | Per session | Once 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 |
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() 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.
- Repo: https://github.com/freqtrade/freqtrade
- Python: 3.11+
- Requirements: 2GB RAM, 1GB disk, 2vCPU
- Control: Telegram · WebUI · CLI
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
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.
- 12d ago First seen · 551 lines · 61 tokens per session scan A cfb9c470c84a
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.
Other skills, from other repositories
defi-yield
DeFi yield analysis and optimization — lending rates, LP yields, staking returns, yield farming strategies, risk-adjusted yield comparison, and protocol-level sustainability assessment.
token-unlock-treasury
Token unlock schedule analysis and project treasury tracking — vesting cliffs, linear unlocks, team/investor/ecosystem token releases, treasury diversification, and sell pressure forecasting.
crypto-derivatives
Crypto-derivatives strategies — perpetual funding-rate arbitrage, futures term-structure contango/backwardation trading, and option volatility-smile / Greeks analysis.
onchain-analysis
On-chain data analysis — active addresses / whale tracking / TVL / DEX liquidity, interpretation and signal generation using on-chain valuation metrics such as MVRV / NVT / SOPR.
stablecoin-flow
Stablecoin supply and flow analysis — USDT/USDC mint-burn signals, exchange stablecoin reserves, on-chain stablecoin velocity, and capital rotation indicators for crypto market timing.
crypto-token-analysis
Deep-dive framework for analyzing crypto tokens — market data, liquidity health, tokenomics, unlock schedules, and risk assessment. Combines on-chain data, API queries, and multi-source validation to generate actionable investment verdicts.