← 返回 Skills 市场
276
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install choice-emquantcli-skill
功能描述
使用 emq-cli 命令行进行安装与环境准备、认证登录、行情查询(market)、组合创建与下单(portfolio)、额度查询(quota)、以及 raw 透传命令调用与常见排障。遇到“如何安装 emq”“如何登录”“如何查快照/序列”“如何创建组合/下单”“参数报错如何修复”等场景时使用本技能。
使用说明 (SKILL.md)
EMQ CLI
快速开始
- 安装并确认命令可用:
pip install emq-cli
emq --help
- 登录(支持环境变量):
export EMQ_USER='your_user'
export EMQ_PASS='your_pass'
emq auth login
- 查看状态:
emq auth status
任务流程
- 先确认认证状态(
auth status)。 - 数据查询优先使用
market snapshot/market series。 - 组合操作优先使用
portfolio create/portfolio list/portfolio qorder。 - 额度检查使用
quota usage。 - 需要直接透传 SDK 参数时使用
raw css/csd/pquery/porder。
常用命令模板
emq market snapshot 000001.SZ CLOSE --output table
emq market series 000001.SZ CLOSE --start 2025-01-01 --end 2025-01-31 --output csv
emq portfolio create --code DEMO_PF --name "Demo Portfolio" --initial-fund 1000000
emq portfolio list --output table
emq portfolio qorder --code DEMO_PF --stock 300059.SZ --volume 1000 --price 10.5 --date 2025-01-15
emq quota usage --start 2025-01-01 --end 2025-01-31
emq raw css 000001.SZ CLOSE --options "TradeDate=2025-01-15"
输出与参数规则
- 默认输出为
json;可用--output json|table|csv。 - 叶子命令末尾的
--output会覆盖全局--output。 - 日期参数统一使用
YYYY-MM-DD。
排障约定
- 参数报错先执行
emq \x3Cdomain> \x3Ccommand> --help确认 flags。 - 登录失败先检查
EMQ_USER/EMQ_PASS,再尝试显式auth login --user ... --password ...。 - 业务命令失败时先执行
auth status --check验证远端状态。
参考
更完整的场景化命令见 references/command-recipes.md。
安全使用建议
What to consider before installing/use:
- The SKILL.md expects you to install a Python package (emq-cli) but the registry provides no homepage or repository; verify the package name on PyPI and inspect its project/release page and source repository before pip installing.
- The instructions rely on EMQ_USER and EMQ_PASS but the skill metadata doesn't declare these credentials — treat this as a missing disclosure. Only supply credentials you trust the tooling with, and avoid using production credentials until you validate the package and skill origin.
- The skill can build and run portfolio/order commands (e.g., qorder, raw porder) which may execute real trades or financial operations. Do not run write/order commands with live credentials or live accounts without explicit confirmation and testing in a sandbox.
- Because pip packages can run code at install time, review the package source or use an isolated environment (container/VM) if you must install it.
- Prefer to use the skill for read-only queries first (market snapshot/series, quota usage) and review any generated command lines before executing them.
- Additional information that would raise confidence: an official homepage/repo link in metadata, declared required env vars matching instructions (EMQ_USER/EMQ_PASS), a well-known package maintainer or repository, and clear documentation about sandboxing or dry-run modes for order commands.
功能分析
Type: OpenClaw Skill
Name: choice-emquantcli-skill
Version: 0.1.1
The skill bundle provides instructions and examples for using the `emq-cli` tool, a legitimate command-line interface for financial data services (EmQuant). It covers installation via pip, authentication using environment variables, and commands for market data and portfolio management. No malicious indicators, such as data exfiltration, suspicious network calls, or harmful prompt injections, were found in the provided files (SKILL.md, references/command-recipes.md).
能力评估
Purpose & Capability
Name/description indicate a CLI helper for emq-cli (market/portfolio/quota/raw). That capability aligns with the commands shown, but the skill metadata declares no required environment variables or credentials while the runtime instructions explicitly reference EMQ_USER / EMQ_PASS for authentication. The omission of these expected credential declarations is an inconsistency.
Instruction Scope
SKILL.md instructs the agent to install via 'pip install emq-cli', to set EMQ_USER / EMQ_PASS, and to run read and write commands including portfolio creation and qorder/raw porder (actual order submission). The instructions allow arbitrary raw command passthrough (raw porder/pquery) which can perform destructive/financial actions; they also reference local files (orders.json). The skill gives the agent broad discretion to construct executable CLI commands that may have real-world effects.
Install Mechanism
This is an instruction-only skill (no install spec in metadata), but the guide tells users to run 'pip install emq-cli'. Installing an unvetted PyPI package is a moderate risk because pip packages execute arbitrary code on install; additionally, the registry metadata provides no homepage or repository to verify the package's origin.
Credentials
The skill metadata lists no required env vars or primary credential, yet the instructions explicitly instruct setting EMQ_USER and EMQ_PASS and using auth login. Requesting authentication credentials for the EMQ service is expected for this purpose, but the mismatch (not declaring them) and the lack of guidance about storing/handling secrets is a red flag. The skill also permits running commands that may use local files containing sensitive order data.
Persistence & Privilege
always:false and no install spec means the skill does not request forced permanent inclusion or elevated agent-wide privileges. It does not attempt to modify other skills' configs or system-wide settings in the provided files.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install choice-emquantcli-skill - 安装完成后,直接呼叫该 Skill 的名称或使用
/choice-emquantcli-skill触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.1
Version 0.1.1
- Added initial agent configuration (agents/openai.yaml).
- Added command recipe references (references/command-recipes.md).
- SKILL.md updated: simplified user guidance, streamlined workflows, clarified error-handling and output conventions, and changed language to Chinese.
- Removed legacy documentation (README.md).
v0.1.0
Initial release of emq CLI skill for EmQuantAPI.
- Provides CLI commands for market data, portfolio management, quota checks, and raw EmQuant SDK access
- Supports unified output in JSON (default), table, or CSV formats
- Features auto-login with credential persistence and environment variable support
- Detailed command structure and usage examples included in documentation
- Helps manage authentication, market snapshot/series queries, portfolio orders, and quota statistics from command line
元数据
常见问题
Emq 是什么?
使用 emq-cli 命令行进行安装与环境准备、认证登录、行情查询(market)、组合创建与下单(portfolio)、额度查询(quota)、以及 raw 透传命令调用与常见排障。遇到“如何安装 emq”“如何登录”“如何查快照/序列”“如何创建组合/下单”“参数报错如何修复”等场景时使用本技能。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 276 次。
如何安装 Emq?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install choice-emquantcli-skill」即可一键安装,无需额外配置。
Emq 是免费的吗?
是的,Emq 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Emq 支持哪些平台?
Emq 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Emq?
由 彭泳翔(@greapi)开发并维护,当前版本 v0.1.1。
推荐 Skills