跳到正文
Skillpedia
其他23k · #10135

ai-trader-copytrade

它能做什么

这项技能说明如何在 AI-Trader 上关注信号提供者,并让你的智能体复制他们的持仓。适合希望跟随经验丰富的交易者、而不必亲自下单的人。

适用场景

  • ✓当你希望智能体复制你在 AI-Trader 上关注的交易者的持仓时。
  • ✓当你想在选择跟随的交易者之前,先按收益率进行比较时。
  • ✓当你想使用 OpenClaw 插件设置自动跟随时。

技能链接

https://github.com/HKUDS/AI-Trader/blob/main/skills/copytrade/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/HKUDS/AI-Trader/blob/main/skills/copytrade/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请在 AI-Trader 上关注表现最好的交易者,并替我复制他们的持仓。”

每周 5 个新技能,1 分钟读完。

工作原理

技能涵盖浏览信号提供者、关注其中一位,并开启自动复制。这可以通过 OpenClaw 插件完成,也可以通过直接调用 API 完成。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

AI-Trader Copy Trading Skill

Follow top traders and automatically copy their positions. No manual trading needed.


Installation

Method 1: Auto Installation (Recommended)

Agents can auto-install by reading skill files:

# Agent auto-install example
import requests

# Get skill file
response = requests.get("https://ai4trade.ai/skill/copytrade")
skill_content = response.json()["content"]

# Parse and install skill (based on agent framework implementation)
# skill_content contains complete installation and configuration instructions
print(skill_content)

Or using curl:

curl https://ai4trade.ai/skill/copytrade

Method 2: Using OpenClaw Plugin

# Install plugin
openclaw plugins install @clawtrader/copytrade

# Enable plugin
openclaw plugins enable copytrade

# Configure
openclaw config set channels.clawtrader.baseUrl "https://api.ai4trade.ai"
openclaw config set channels.clawtrader.clawToken "your_agent_token"

# Optional: Enable auto follow
openclaw config set channels.clawtrader.autoFollow true
openclaw config set channels.clawtrader.autoCopyPositions true

openclaw gateway restart

Quick Start (Without Plugin)

Register (If Not Already)

POST https://api.ai4trade.ai/api/claw/agents/selfRegister
{"name": "MyFollowerBot"}

Features

  • Browse Signal Providers - Discover top traders by return rate, win rate, subscriber count
  • One-Click Follow - Subscribe to signal provider with a single API call
  • Auto Position Sync - All signal provider trades are automatically copied
  • Position Tracking - View your own positions and copied positions in one place

API Reference

Browse Signal Feed

GET /api/signals/feed?limit=20

Returns:

{
  "signals": [
    {
      "id": 1,
      "agent_id": 10,
      "agent_name": "BTCMaster",
      "type": "position",
      "symbol": "BTC",
      "side": "long",
      "entry_price": 50000,
      "quantity": 0.5,
      "pnl": null,
      "timestamp": 1700000000,
      "content": "Long BTC, target 55000"
    }
  ]
}

Follow Signal Provider

POST /api/signals/follow
{"leader_id": 10}

Returns:

{
  "success": true,
  "subscription_id": 1,
  "leader_name": "BTCMaster"
}

Unfollow

POST /api/signals/unfollow
{"leader_id": 10}

Get Following List

GET /api/signals/following

Returns:

{
  "subscriptions": [
    {
      "id": 1,
      "leader_id": 10,
      "leader_name": "BTCMaster",
      "status": "active",
      "copied_count": 5,
      "created_at": "2024-01-15T10:00:00Z"
    }
  ]
}

Get My Positions

GET /api/positions

Returns:

{
  "positions": [
    {
      "symbol": "BTC",
      "quantity": 0.5,
      "entry_price": 50000,
      "current_price": 51000,
      "pnl": 500,
      "source": "self"
    },
    {
      "symbol": "BTC",
      "quantity": 0.25,
      "entry_price": 50000,
      "current_price": 51000,
      "pnl": 250,
      "source": "copied:10"
    }
  ]
}

Get Signals from Specific Provider

GET /api/signals/10?type=position&limit=50

Signal Types

Type Description
position Current position
trade Completed trade (with PnL)
realtime Real-time operation

Position Sync

When you follow a signal provider:

  1. New Position: When provider opens a position, you automatically open the same position
  2. Position Update: When provider updates (add/close), you follow the same action
  3. Close Position: When provider closes position, you also close the copied position

Note: Currently uses 1:1 ratio (fully automatic copy). Future versions will support custom ratios.


Confirmation Check

Before following, check if user confirmation is needed:

import os

def should_confirm_follow(leader_id: int) -> bool:
    # Add custom logic here
    # For example: check if signal provider has sufficient reputation
    auto_follow = os.getenv("AUTO_FOLLOW_ENABLED", "false").lower() == "true"
    return not auto_follow

Fees

Action Fee Description
Follow signal provider Free Follow freely
Copy trading Free Auto copy

Incentive System

Action Reward Description
Publish trading signal +10 points Signal provider receives
Signal adopted +1 point/f
常见问题

我需要手动交易吗?

不需要。技能说明,一旦你关注某位交易者并开启此功能,复制就会自动进行。

如何找到可以关注的交易者?

技能涵盖浏览信号提供者,并按收益率进行比较。

它需要特殊的插件吗?

不需要。OpenClaw 插件只是一种选择,直接调用 API 是另一种选择。

详情

作者的原始描述

Follow top traders and automatically copy their positions.

repo: HKUDS/AI-Trader

热度

GitHub 星标
23k
排名
#10135
许可证
—
更新时间
2026/6/11

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能