aicoincom avatar

Aicoin Freqtrade

Wraps Freqtrade's entire lifecycle inside CoinClaw containers: strategy creation, backtesting, hyperopt, and live deployment. The main trick here is daemon awareness. OpenClaw, Hermes, and Claude Code all run Freqtrade as a supervisord process on port 8080, so this skill never spawns competing instances. It auto-detects which engine you're in, finds the right config paths, and handles restarts through supervisorctl. Includes a quick strategy generator for common indicators (RSI, MACD, Bollinger) and integrates AiCoin's whale signals, funding rates, and liquidation data into custom Python strategies. Strong on guarding against common mistakes like forgetting to reload config or misreporting P&L by skipping the profit API.

skills.sh installs
660
GitHub stars
58
last updated
Aug 21, 2026

Install

$ npx -y skills add aicoincom/coinos-skills --skill aicoin-freqtrade --agent claude-code

Installs into .claude/skills of the current project.

Files

AiCoin Freqtrade

Freqtrade 策略 / 回测 / 部署 / 实时控制 — 跨 CoinClaw 三引擎自动适配。

关键原则(读完再动手)

一、CoinClaw 容器里 freqtrade 是常驻 daemon

OpenClaw / Hermes / Claude Code 三个引擎容器都通过 supervisord 把 freqtrade 起为常驻进程, 监听 127.0.0.1:8080, 默认跑 NoOpStrategy(空跑). 不要自己起 freqtrade 进程 — 会跟 daemon 抢端口, dashboard 立刻 offline.

正确流程是: 写策略文件 → 调 ft-deploy.mjs deploy {"strategy":"..."} → 脚本改 config + 重启 daemon. dashboard 会自动刷出新策略.

scripts/ft.mjs + scripts/ft-deploy.mjs 内置三引擎自动识别(lib/coinclaw-env.mjs), 路径 / auth / supervisord socket 都自动解析, agent 不用关心是哪个引擎.

二、永远先调 freqtrade REST API, 不要"自己计算"

用户问必须先调
现在赚多少 / 总盈亏 / 今天涨了多少ft.mjs profit (/api/v1/profit)
持仓 / 现在开了哪些ft.mjs trades_open (/api/v1/status)
余额 / 资金多少ft.mjs balance (/api/v1/balance)
跑的什么策略 / 当前模式ft.mjs daemon_info 或 config
历史交易 / 已平仓ft.mjs trades_history
单交易对绩效ft.mjs profit_per_pair

dashboard 数字对齐规则(关键): 用户问"赚了多少"必须报告两个数字:

  • 已平仓累计盈亏 = profit_closed_coin (USDT) — dashboard 顶栏的累计盈亏 = 这个
  • 含浮动总盈亏 = profit_all_coin (USDT) — 已平仓 + 当前持仓的浮动盈亏

只调 /status 拿持仓浮动盈亏会漏掉已平仓部分, 导致跟 dashboard 数字不一致 — 用户立刻发现, 信任度归零.

Sponsors

Details

Repository
github.com/aicoincom/coinos-skills
Category
Finance & Trading
First seen
Jun 3, 2026

More from aicoincom/coinos-skills

All 6
1personamanagmentlayer avataraccountant-expertpersonamanagmentlayer/pclExpert-level accounting, tax, financial reporting, and accounting systems642skills.sh installs
2aicoincom avataraicoin-hyperliquidaicoincom/coinos-skillsHyperliquid on-chain perpetuals analytics from AiCoin Open API v3 — the primary source for on-chain whale / smart-money / large-fund movement. Use this skill wh596skills.sh installs
3star23 avatarus-market-sentimentstar23/day1global-skillsUS stock market sentiment monitoring and position recommendation system. Evaluates market sentiment by tracking 5 core indicators (NAAIM Exposure Index, Institu590skills.sh installs
4dylantarre avatarfintech-bankingdylantarre/animation-principlesUse when designing animations for banking apps, payment systems, investment platforms, or financial dashboards581skills.sh installs
5rkiding avataralphaear-signal-trackerrkiding/awesome-finance-skillsTrack finance investment signal evolution and update logic based on new finance market information. Use when monitoring finance signals and determining if they 563skills.sh installs
6aicoincom avataraicoin-accountaicoincom/coinos-skillsExchange account management: balance, positions, order history, registration, API key setup, tier upgrade. **用户问'我的'账户事件 / 活跃记录 / 活动 / 操作日志 / 登录历史 / 下单历史 / 最近操作548skills.sh installs