微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

OpenD CLI for MooMoo

OpenD CLI for MooMoo · v1.0.0
安全 unknown 级 作者 oscraters 公开目录收录
1.1k 下载 0 安装 3.9k 收藏 1 浏览

简介

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、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/opend-cli-for-moomoo/
Codex CLI~/.codex/skills/opend-cli-for-moomoo/
DeepSeek Harness~/.agents/skills/opend-cli-for-moomoo/

包是「根级 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

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

openclaw reads these defaults when present:

  • OPEND_HOST
  • OPEND_PORT
  • OPEND_MARKET
  • OPEND_SECURITY_FIRM
  • OPEND_TRD_ENV
  • OPEND_CREDENTIAL_METHOD
  • OPEND_OUTPUT
  • OPEND_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

Older scripts now delegate to opend_cli.py:

  • get_market_snapshot.py
  • query_positions.py
  • place_order.py
  • place_order_env.py
  • place_order_keyring.py
  • place_order_config.py

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill