简介
OpenD CLI for MooMoo
原始描述
Agentic trading and market-data workflows for Futu OpenD (MooMoo/Futu OpenAPI), including OpenClaw-compatible secret-ref credential loading, account discover...
通过你的 Agent 添加
安装目录:opend/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: opend
description: Agentic trading and market-data workflows for Futu OpenD (MooMoo/Futu OpenAPI), including secure credential handling, account discovery, position queries, and order placement. Use when tasks require calling local OpenD through Python/Bash automation, especially with repeatable CLI-driven flows and structured JSON output.
OpenD Skill
Use this skill to execute local OpenD operations through a single CLI surface.
Quick Start
- Ensure OpenD is running (default
127.0.0.1:11111).
- Install one provider SDK:
moomoo or futu.
- Optional credential helpers:
pip install keyring cryptography.
- Set password source:
env: export MOOMOO_PASSWORD='...'
config: setup_config.py then export MOOMOO_CONFIG_KEY='...'
keyring: first call prompts and stores in system keyring.
Primary Interface
127.0.0.1:11111).moomoo or futu.pip install keyring cryptography.env:export MOOMOO_PASSWORD='...'config:setup_config.pythenexport MOOMOO_CONFIG_KEY='...'keyring: first call prompts and stores in system keyring.
Use Bash CLI ./openclaw for all routine operations.
Examples:
- Snapshot:
./openclaw snapshot --codes HK.00700,US.AAPL
- Accounts:
./openclaw accounts
- Positions:
./openclaw --trd-env SIMULATE positions
- Place simulated order:
./openclaw --market HK --trd-env SIMULATE place-order --code HK.00700 --price 100 --qty 100 --side BUY
- Cancel order:
./openclaw --market HK --trd-env SIMULATE cancel-order --order-id <ORDER_ID>
Agentic Defaults
- Prefer
--output json (default) so downstream steps can parse results.
- Prefer
SIMULATE unless user explicitly requests live trading.
- Query
accounts first for unknown environments; then pass explicit --acc-id when needed.
- For live trading, unlock is required; simulated accounts skip unlock automatically.
Environment Overrides
--output json (default) so downstream steps can parse results.SIMULATE unless user explicitly requests live trading.accounts first for unknown environments; then pass explicit --acc-id when needed.openclaw reads these defaults when present:
OPEND_HOSTOPEND_PORTOPEND_MARKETOPEND_SECURITY_FIRMOPEND_TRD_ENVOPEND_CREDENTIAL_METHODOPEND_OUTPUTOPEND_SDK_PATH(optional SDK path override)
Files
openclaw: Bash CLI entrypoint.
opend_cli.py: structured command interface.
opend_core.py: shared OpenD logic (SDK load, context, account resolution).
credentials.py: env/keyring/encrypted-config password loading.
references/api_docs.md: official API links and key limits.
Legacy Compatibility
openclaw: Bash CLI entrypoint.opend_cli.py: structured command interface.opend_core.py: shared OpenD logic (SDK load, context, account resolution).credentials.py: env/keyring/encrypted-config password loading.references/api_docs.md: official API links and key limits.Older scripts now delegate to opend_cli.py:
get_market_snapshot.pyquery_positions.pyplace_order.pyplace_order_env.pyplace_order_keyring.pyplace_order_config.py
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。