Xpersona
E

eastmoney skills

CLAWHUB · Unverified

妙想提供的股票模拟组合管理系统,支持持仓查询、买卖操作、撤单、委托查询、历史成交查询和资金查询等功能。通过安全认证的API接口实现真实交易体验。 Skill: eastmoney skills Owner: qqk000 Summary: 妙想提供的股票模拟组合管理系统,支持持仓查询、买卖操作、撤单、委托查询、历史成交查询和资金查询等功能。通过安全认证的API接口实现真实交易体验。 Tags: latest:1.0.4 Version history: v1.0.4 | 2026-03-19T03:23:02.881Z | user eastmoney-stock-simulator 1.0.4 Changelog - Added primary_credential field for clearer credential configuration. - No changes to code or functional logic—metadata update only. v1.0.3 | 2026-03-19T03:08:17.773Z | user eastmo

62
Rank
84
Safety
12k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 12.4K downloads reported by the source. Last updated 11/16/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: medium.

clawhub skill install s17frcy5ptth9431pqd3x1fxg183kmjr:eastmoney-stock-simulator
  1. Python environment detected. Create a strict virtual environment (`python -m venv .venv`) before installing dependencies to prevent system-level package conflicts.
  2. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  3. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-qqk000-eastmoney-stock-simulator-imulator-2/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

83,536 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: eastmoney_stock_simulator
title: 妙想模拟组合管理 skill
description: 妙想提供的股票模拟组合管理系统,支持持仓查询、买卖操作、撤单、委托查询、历史成交查询和资金查询等功能。通过安全认证的API接口实现真实交易体验。
required_env_vars:
  - MX_APIKEY
  - MX_API_URL
primary_credential: 
  - MX_APIKEY
credentials:
  - name: MX_APIKEY
    description: 妙想Skills页面获取的专属API密钥,用于接口认证
    required: true
    type: secret
  - name: MX_API_URL
    description: 模拟交易API的基础地址,默认为 https://mkapi2.dfcfs.com/finskillshub
    required: false
    type: string
    default: "https://mkapi2.dfcfs.com/finskillshub"
---

# eastmoney_stock_simulator 妙想模拟组合管理 skill

本 Skill 由妙想提供一个股票模拟组合管理系统,支持股票组合持仓查询、买卖操作、撤单、委托查询、历史成交查询和资金查询等功能。通过调用后端模拟组合交易相关原生接口,实现真实的交易体验,所有操作均通过安全认证的 API 接口完成。

```yaml
tags: ["模拟炒股", "A股", "投资练手", "策略验证"]
use_when:
  - 用户需要模拟炒股练手、验证交易策略
  - 用户需要进行模拟交易操作(买卖/撤单)
  - 用户需要查询模拟账户的持仓、资金、委托、历史成交记录
not_for:
  - 真实资金交易、投资建议生成、交易决策指引
  - 非A股类投资模拟(期货、外汇、港股、美股等)
  - 商业用途、代他人操作、非法交易演示
# 环境变量配置
parameters:
  - name: MX_APIKEY
    description: 妙想Skills页面获取专属API密钥
    required: true
    type: secret
    default: process.env.MX_APIKEY
  - name: MX_API_URL
    description: 模拟交易API基础地址
    required: false
    type: string
    default: process.env.MX_API_URL || "https://mkapi2.dfcfs.com/finskillshub"
```

## 功能说明

根据**用户问句**自动识别意图并调用对应接口,支持以下功能:

1. **持仓查询**:查询指定账户的当前持仓股票。
2. **买入卖出操作**:执行买入和卖出操作,支持限价/市价委托,自动识别市场号和价格小数位。
3. **撤单操作**:撤销指定委托单,也支持一键撤单。
4. **委托查询**:查询账户下的所有委托订单(含已成交、未成交、已撤单)以及账户的历史成交记录。
5. **资金查询**:查询账户可用资金与总资产。

## 配置

- **MX_APIKEY**:妙想Skills页面获取的API密钥,需保密。
- **MX_API_URL**:模拟交易API的基础URL,默认为 `https://mkapi2.dfcfs.com/finskillshub`。
- **默认输出目录**: `/root/.openclaw/workspace/mx_data/output/`(自动创建)
- **输出文件名前缀**: `mx_stock_simulator_`
- **输出文件**:
  - `mx_stock_simulator_{query}.txt` - 提取后的纯文本结果
  - `mx_stock_simulator_{query}.json` - API 原始 JSON 数据

在使用前,请确保已配置以下环境变量:

```javascript
// 导出API Key和API地址
export MX_APIKEY= ${MX_APIKEY} || process.env.MX_APIKEY
export MX_API_URL= process.env.MX_API_URL || "https://mkapi2.dfcfs.com/finskillshub"
```

## 使用方式

1. 在妙想Skills页面获取apikey。
2. 将apikey存到环境变量,命名为MX_APIKEY,检查本地apikey是否存在,若存在可直接用。
3. 使用post请求接口,务必使用post请求,相关接口在后续章节说明。

## 功能概览

| 功能模块       | 状态   | 接口路径                                | 说明                                      |
| -------------- | ------ | --------------------------------------- | ----------------------------------------- |
| 持仓查询       | 已实现 | `POST  /api/claw/mockTrading/positions` | 获取持仓明细、成本、盈亏、总盈亏统计      |
| 买入或卖出操作 | 已实现 | `POST /api/claw/mockTrading/trade`      | 限价/市价委托,自动识别市场号和价格小数位 |
| 撤单操作       | 已实现 | `POST /api/claw/mockTrading/cancel`     | 按委托编号撤单或撤销当日所有未成交委托    |
| 委托查询       | 已实现 | `POST  /api/claw/mockTrading/orders`    | 当日/历史委托记录                         |
| 资金查询       | 已实现 | `POST  /api/claw/mockTrading/balance`   | 总资产、可用资金、盈亏                    |


### 股票代码格式说明

买入/卖出/撤单接口的股票代码入参仅支持A股,格式为6位数字,例如 `600519`、`000001`。

---

## 前置要求

- 用户需在妙想Skills页面获取并配置 `MX_APIKEY` 和 `MX_API_URL` 环境变量。
- 模拟组合账户操作前,用户需在妙想Skills页面(地址:https://dl.dfcfs.com/m/itc4 ),创建模

_meta.json

{
  "ownerId": "kn73m56g83j65mv3bjd848j7vn82t04f",
  "slug": "eastmoney-stock-simulator",
  "version": "1.0.4",
  "publishedAt": 1773890582881
}

scripts/requirements.txt

requests

skill-card.md

## Description:

This skill helps an agent manage a Miaoxiang simulated stock portfolio by querying positions, balances, orders, trade history, and submitting or canceling simulated A-share buy and sell orders.

This skill is ready for commercial/non-commercial use.

## Publisher:

[qqk000](https://clawhub.ai/user/qqk000)

### License/Terms of Use:

MIT-0

## Use Case:

External users use this skill to operate and inspect a simulated A-share portfolio, including holdings, cash, orders, and trade history. It can also prepare API-backed simulated buy, sell, and cancel actions after the exact requested action is confirmed.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill can submit or cancel simulated trades.

Mitigation: Require clear confirmation of the exact action, stock code, quantity, price, and order identifier before allowing buy, sell, or cancel requests.

Risk: The API key is sent to a configurable API URL.

Mitigation: Keep MX_API_URL set to the documented HTTPS service unless the endpoint is explicitly trusted, and use a limited or revocable API key when available.

Risk: Account and order responses are saved locally as raw JSON.

Mitigation: Treat the OpenClaw output directory as sensitive, avoid sharing raw response files, and remove them when they are no longer needed.

Risk: Simulated trading workflows may be mistaken for real-money trading or investment advice.

Mitigation: Use the skill only for simulated account operations and do not rely on its outputs as investment advice or real trading authorization.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/qqk000/skills/eastmoney-stock-simulator)
- [Publisher profile](https://clawhub.ai/user/qqk000)
- [Miaoxiang simulated account setup](https://dl.dfcfs.com/m/itc4)
- [Default simulation API base URL](https://mkapi2.dfcfs.com/finskillshub)

## Skill Output:

**Output Type(s):** [text, json, shell commands, configuration, guidance]

**Output Format:** [Plain text summaries and raw JSON files, with Markdown documentation and shell command examples.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [The helper script saves text summaries and raw JSON responses under /root/.openclaw/workspace/mx_data/output/ using the mx_stock_simulator_ filename prefix.]

## Skill Version(s):

1.0.4 (source: ClawHub release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to eastmoney skills and adjacent AI workflows.