← 返回 Skills 市场
xxxwang

XTrade Futu Paper Trade

作者 XXXWANG · GitHub ↗ · v1.0.0
darwinlinuxwin32 ⚠ suspicious
356
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install xtrade-futu-paper-trade
功能描述
使用富途纸面交易API查询行情、持仓并下单
安全使用建议
This skill will run code on your machine: it auto-creates a virtual environment and pip-installs futu-api and akshare, then contacts a local FutuOpenD service to query and place simulated trades. Before installing or enabling it, consider the following: - Source & provenance: the skill's homepage/source is unknown. Prefer skills from a verified repository or author. Review the full xtrade_futu_skill.py source yourself (it is included) or run it in an isolated environment first. - Credentials: it expects sensitive environment variables (FUTU_TRADE_PWD, FUTU_PASSWORD, FUTU_ACCOUNT). Do not set real account passwords in long-lived environment variables. Prefer temporary or limited-scope credentials and confirm FUTU_TRD_ENV is set to PAPER/SIMULATE. - Runtime install: the script will pip install packages at runtime. That fetches and executes third-party code from PyPI; if you do not trust futu-api/akshare or want deterministic installs, inspect requirements and pin versions, or pre-create the venv yourself. - Network behavior: besides communicating with the local FutuOpenD daemon, akshare may fetch data from public web sources. If you need to restrict outbound network access, run the skill in a sandbox with network policies. - Testing: run the skill in a sandboxed VM or container first and verify it only talks to your local OpenD and expected external services. Check logs and network traffic. - If you rely on the agent autonomously invoking this skill, remove autonomous privileges or monitor actions: automatic order placement can have costly consequences even in paper mode if misconfigured. Given the metadata mismatch (no declared env vars) and unknown origin, proceed with caution — the behavior is coherent for a paper-trading tool but the missing declarations and runtime package installs elevate risk.
功能分析
Type: OpenClaw Skill Name: xtrade-futu-paper-trade Version: 1.0.0 The skill bundle provides a legitimate interface for Futu paper trading and financial data retrieval using the official 'futu-api' and 'akshare' libraries. It includes explicit safety checks in `xtrade_futu_skill.py` to prevent execution in real-money environments (rejecting 'REAL' and defaulting to 'SIMULATE'). While the script performs automated environment setup by creating a virtual environment and installing dependencies, this behavior is transparently documented in `SKILL.md` and serves a functional purpose for ensuring Python version compatibility. No evidence of data exfiltration, malicious code execution, or harmful prompt injection was found.
能力评估
Purpose & Capability
The skill's stated purpose (Futu paper trading) matches the included code and the use of futu-api/akshare. However the registry metadata declares no required environment variables or credentials while the SKILL.md and code clearly rely on environment variables (FUTU_TRADE_PWD, FUTU_HOST, FUTU_PORT, etc.). The skill's source/homepage is 'unknown', increasing risk that the package bundle may not be from a trusted origin.
Instruction Scope
SKILL.md instructs the agent to run the bundled Python script which will: create a virtual environment, pip install requirements, and re-exec itself. The instructions reference several environment variables and local FutuOpenD service access. The skill will access environment variables containing sensitive data (trade password, optional account/password). The runtime instructions will install and execute third-party packages (futu-api, akshare) which can perform network I/O beyond the local OpenD service.
Install Mechanism
There is no explicit install spec in the registry, but the bundled script auto-creates a .venv and runs pip install -r requirements.txt at runtime. This is a common pattern for Python tools but means arbitrary package code from PyPI will be fetched and executed on the host. The packages used (futu-api, akshare) are plausible for the stated purpose; the install is runtime and not pinned to exact versions.
Credentials
SKILL.md and the code require several environment variables (FUTU_TRADE_PWD mandatory for trading, FUTU_TRD_ENV, FUTU_HOST, FUTU_PORT, FUTU_ACCOUNT, FUTU_PASSWORD). The registry metadata, however, lists no required env vars or primary credential — an inconsistency. Requiring passwords via environment variables is sensitive and should be declared and justified in metadata. The skill does check and disallow REAL trading env, which is a mitigating control for intent but does not eliminate credential risk.
Persistence & Privilege
The skill does not request 'always: true' and does not appear to modify other skills or global agent configurations. Its persistence is limited to creating a .venv inside the skill directory and installing dependencies there. Autonomous invocation is allowed by default (normal), but that increases blast radius if the skill were malicious.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install xtrade-futu-paper-trade
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /xtrade-futu-paper-trade 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release - 港股模拟交易工具
元数据
Slug xtrade-futu-paper-trade
版本 1.0.0
许可证
累计安装 1
当前安装数 1
历史版本数 1
常见问题

XTrade Futu Paper Trade 是什么?

使用富途纸面交易API查询行情、持仓并下单. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 356 次。

如何安装 XTrade Futu Paper Trade?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install xtrade-futu-paper-trade」即可一键安装,无需额外配置。

XTrade Futu Paper Trade 是免费的吗?

是的,XTrade Futu Paper Trade 完全免费(开源免费),可自由下载、安装和使用。

XTrade Futu Paper Trade 支持哪些平台?

XTrade Futu Paper Trade 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(darwin, linux, win32)。

谁开发了 XTrade Futu Paper Trade?

由 XXXWANG(@xxxwang)开发并维护,当前版本 v1.0.0。

💬 留言讨论