{"id":"6187d976-2365-4235-bed4-5eb04e7ef198","slug":"clawhub-jeffersonling1217-png-futu-trading-bot","name":"futu-trading-bot","description":"Use Futu Trade Bot Skills to run account, quote, and trade workflows with real HK market data.","canonicalUrl":"https://www.xpersona.co/agent/clawhub-jeffersonling1217-png-futu-trading-bot","sourceUrl":"https://clawhub.ai/jeffersonling1217-png/futu-trading-bot","homepage":"https://clawhub.ai/jeffersonling1217-png/skills/futu-trading-bot","source":"CLAWHUB","vendor":{"slug":"clawhub","label":"Clawhub","url":"https://clawhub.ai/jeffersonling1217-png/skills/futu-trading-bot"},"protocols":["OPENCLEW"],"capabilities":[],"trustScore":null,"trustConfidence":"unknown","artifactCount":0,"benchmarkCount":0,"lastRelease":"1.0.9","freshnessAt":"2026-10-09T21:51:03.969Z","freshnessLabel":"Oct 9, 2026","securityReviewed":true,"openapiReady":false,"stats":[{"label":"Trust score","value":"Unknown"},{"label":"Compatibility","value":"OpenClaw"},{"label":"Freshness","value":"Oct 9, 2026"},{"label":"Vendor","value":"Clawhub"},{"label":"Artifacts","value":"0"},{"label":"Benchmarks","value":"0"},{"label":"Last release","value":"1.0.9"}],"factsPreview":[{"factKey":"vendor","category":"vendor","label":"Vendor","value":"Clawhub","href":"https://clawhub.ai/jeffersonling1217-png/skills/futu-trading-bot","sourceUrl":"https://clawhub.ai/jeffersonling1217-png/skills/futu-trading-bot","sourceType":"profile","confidence":"medium","observedAt":"2026-10-09T21:51:03.969Z","isPublic":true},{"factKey":"protocols","category":"compatibility","label":"Protocol compatibility","value":"OpenClaw","href":"https://www.xpersona.co/api/v1/agents/clawhub-jeffersonling1217-png-futu-trading-bot/contract","sourceUrl":"https://www.xpersona.co/api/v1/agents/clawhub-jeffersonling1217-png-futu-trading-bot/contract","sourceType":"contract","confidence":"medium","observedAt":"2026-10-09T21:51:03.969Z","isPublic":true},{"factKey":"traction","category":"adoption","label":"Adoption signal","value":"2K downloads","href":"https://clawhub.ai/jeffersonling1217-png/futu-trading-bot","sourceUrl":"https://clawhub.ai/jeffersonling1217-png/futu-trading-bot","sourceType":"profile","confidence":"medium","observedAt":"2026-10-09T21:51:03.969Z","isPublic":true},{"factKey":"latest_release","category":"release","label":"Latest release","value":"1.0.9","href":"https://clawhub.ai/jeffersonling1217-png/futu-trading-bot","sourceUrl":"https://clawhub.ai/jeffersonling1217-png/futu-trading-bot","sourceType":"release","confidence":"medium","observedAt":"2026-08-06T09:43:55.466Z","isPublic":true},{"factKey":"handshake_status","category":"security","label":"Handshake status","value":"UNKNOWN","href":"https://www.xpersona.co/api/v1/agents/clawhub-jeffersonling1217-png-futu-trading-bot/trust","sourceUrl":"https://www.xpersona.co/api/v1/agents/clawhub-jeffersonling1217-png-futu-trading-bot/trust","sourceType":"trust","confidence":"medium","observedAt":null,"isPublic":true}],"highlights":["2K downloads","Trust evidence available"],"agentCard":{"name":"futu-trading-bot","description":"Use Futu Trade Bot Skills to run account, quote, and trade workflows with real HK market data.","source":"CLAWHUB","sourceId":"clawhub:s178bcyctp44ydnda4m1apj4hx83hv3f:futu-trading-bot","homepage":"https://clawhub.ai/jeffersonling1217-png/skills/futu-trading-bot","repository":"https://clawhub.ai/jeffersonling1217-png/futu-trading-bot","documentation":"https://www.xpersona.co/agent/clawhub-jeffersonling1217-png-futu-trading-bot","protocols":["OPENCLEW"],"examples":[{"kind":"example","language":"text","snippet":"File v1.0.9:README.md\n\n# Futu Trading Bot Skills\r\n\r\n> **⚠️ Safety first**\r\n>\r\n> This skill can unlock a Futu brokerage account and place, modify, or cancel **real-money** orders via local OpenD.\r\n> - Prefer **`SIMULATE`** until you fully trust the setup.\r\n> - `REAL` orders, unlock/lock, and **`cancel_all_orders`** require explicit human approval and API `confirm=True`.\r\n> - Do not store plaintext passwords in git; prefer `trade_password_md5`.\r\n> - `get_account_info()` does **not** write disk by default (`persist=False`).\r\n\r\n这是一个为 AI Agent 打造的自然语言交易执行工具。它将富途 OpenAPI 的底层逻辑封装为语义能力，支持通过自然语言驱动账户解锁、下单及风控管理。系统支持（模拟/实盘）环境隔离，能够将“帮我买 200 股腾讯”或“清仓一半持仓”这类模糊意图，转化为符合金融规范的执行动作。\r\n\r\nA robust trade execution tool designed for AI Agents. It abstracts Futu OpenAPI logic into high-level semantic capabilities, enabling natural language control over account unlocking, order placement, and risk management. With native support for MD5 credential handling and environment isolation (Simulated/Real), it accurately translates vague intents—such as \"buy 200 shares of Tencent\" or \"close half of my positions\"—into execution actions that comply with financial standards.\r\n\r\n适用对象：配合 OpenClaw 使用，或任何能通过命令行调用工具并能编写 Python 脚本的 Agent/LLM。\r\n\r\n核心代码在 `src/`，配置与运行数据在 `json/`。\r\n\r\n## 功能\r\n- 账户查询：`get_account_info()`\r\n- 交易解锁：`unlock_trade(password=None, password_md5=None)`\r\n- 交易锁定：`lock_trade(password=None, password_md5=None)`\r\n- 预检：`run_preflight()`\r\n- 行情拉取：`get_stock_basicinfo()`、`get_market_state()`、`get_market_snapshot()`、`get_cur_kline()`、`request_history_kline()`、`get_rt_ticker()`\r\n- 行情统一启动：`start_quote_stream()`、`start_orderbook_stream()`\r\n- 下单：`submit_order(...)`\r\n- 改单/撤单：`modify_order(...)`、`cancel_order(...)`、`cancel_all_orders(...)`\r\n- 策略运行：`run_strategy(...)`\r\n- 策略辅助：状态、交易锁、交易时段判断、回调 payload 解析\r\n\r\n## 当前行为说明\r\n- `submit_order` 必须显式传入 `acc_id` 和 `trd_env`（`REAL` / `SIMULATE`）。`REAL` 还需要 `confirm=True`。\r\n- `cancel_all_orders` 在任何环境下都需要 `confirm=True`。\r\n- `get_account_info(persist=False)` 默认只返回内存结果；仅当 `per"},{"kind":"example","language":"json","snippet":"{\n  \"futu_api\": {\n    \"host\": \"127.0.0.1\",\n    \"port\": 11111,\n    \"security_firm\": \"FUTUSECURITIES\",\n    \"trade_password\": \"\",\n    \"trade_password_md5\": \"\",\n    \"default_env\": \"SIMULATE\"\n  },\n  \"logging\": {\n    \"level\": \"INFO\",\n    \"format\": \"%(asctime)s - %(levelname)s - %(message)s\"\n  }\n}"}]}}