← Back to Skills Marketplace
276
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install choice-emquantcli-skill
Description
使用 emq-cli 命令行进行安装与环境准备、认证登录、行情查询(market)、组合创建与下单(portfolio)、额度查询(quota)、以及 raw 透传命令调用与常见排障。遇到“如何安装 emq”“如何登录”“如何查快照/序列”“如何创建组合/下单”“参数报错如何修复”等场景时使用本技能。
README (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。
Usage Guidance
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.
Capability Analysis
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).
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install choice-emquantcli-skill - After installation, invoke the skill by name or use
/choice-emquantcli-skill - Provide required inputs per the skill's parameter spec and get structured output
Version History
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
Metadata
Frequently Asked Questions
What is Emq?
使用 emq-cli 命令行进行安装与环境准备、认证登录、行情查询(market)、组合创建与下单(portfolio)、额度查询(quota)、以及 raw 透传命令调用与常见排障。遇到“如何安装 emq”“如何登录”“如何查快照/序列”“如何创建组合/下单”“参数报错如何修复”等场景时使用本技能。 It is an AI Agent Skill for Claude Code / OpenClaw, with 276 downloads so far.
How do I install Emq?
Run "/install choice-emquantcli-skill" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Emq free?
Yes, Emq is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Emq support?
Emq is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Emq?
It is built and maintained by 彭泳翔 (@greapi); the current version is v0.1.1.
More Skills