OpenParable
Skip to content
← Back to skills

Freqtrade

Apps & Automation
freqtrade

Freqtrade is an Agent Skill for apps & automation published in the mkurman/zorai repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Open-source crypto trading bot. Strategy development in Python, backtesting, hyperparameter optimization, dry-run and live trading. Supports major exchanges via CCXT. Telegram integration for monitoring.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/mkurman/zorai/blob/HEAD/skills/scientific-skills/freqtrade/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/freqtrade, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Overview

Freqtrade is an open-source crypto trading bot written in Python. Supports strategy development, backtesting, hyperparameter optimization, and dry-run or live trading via 100+ exchange backends (CCXT).

Installation

git clone https://github.com/freqtrade/freqtrade.git
cd freqtrade
uv pip install -e .

Strategy

from freqtrade.strategy import IStrategy

class MyStrategy(IStrategy):
    timeframe = "1h"
    minimal_roi = {"0": 0.01}
    stoploss = -0.05

    def populate_indicators(self, dataframe, metadata):
        dataframe["rsi"] = 100 - (100 / (1 + dataframe["close"] / dataframe["close"].shift(14)))
        return dataframe

    def populate_buy_trend(self, dataframe, metadata):
        dataframe.loc[(dataframe["rsi"] < 30) & (dataframe["volume"] > 0), "buy"] = 1
        return dataframe

Run

freqtrade backtesting --strategy MyStrategy --timerange 20240101-20241231
freqtrade trade --strategy MyStrategy --dry-run

References