用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/dvcrn/openclaw-skills-marketplace --skill eastmoney-trading命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | eastmoney-trading |
| description | 东方财富证券交易技能,支持自动登录、持仓查询、买入、卖出、撤单、委托查询、资金查询等完整交易功能。使用 CDP 连接浏览器,支持验证码自动识别。⚠️ 高风险操作,需谨慎使用。 |
⚠️ 安全警告 ⚠️
使用此技能前请仔细阅读以下警告:
账号安全风险
交易风险 ⚠️⚠️⚠️
风控风险
数据敏感性
| 功能模块 | 状态 | 命令 | 说明 |
|---|---|---|---|
| 🔐 自动登录 | ✅ 已实现 | login | CDP 连接 + 验证码识别 |
| 📊 持仓查询 | ✅ 已实现 | login | 获取持仓明细、成本、盈亏 |
| 📈 买入操作 | ✅ 已实现 | buy | 支持限价/市价委托 |
| 📉 卖出操作 | ✅ 已实现 | sell | 支持限价/市价委托 |
| ❌ 撤单操作 | ✅ 已实现 | cancel | 按委托编号/股票/全部撤单 |
| 📋 委托查询 | ✅ 已实现 | orders | 当日/历史委托记录 |
| 💰 资金查询 | ✅ 已实现 | balance | 总资产、可用资金、盈亏 |
logs/YYYY-MM-DD/优势:
配置 OpenClaw 浏览器连接:
在 ~/.openclaw/openclaw.json 中添加:
{
"browser": {
"enabled": true,
"attachOnly": true,
"defaultProfile": "remote",
"profiles": {
"remote": {
"cdpUrl": "http://192.168.100.140:9222/",
"color": "#FF4500"
}
}
}
}
启动远程浏览器:
google-chrome --remote-debugging-port=9222 --user-data-dir=/tmp/chrome-profile
pip3 install -r scripts/requirements.txt
sudo apt-get install tesseract-ocr tesseract-ocr-chi-sim tesseract-ocr-eng
export EASTMONEY_ACCOUNT=your_account
export EASTMONEY_PASSWORD=your_password
python3 scripts/eastmoney_trading.py login
输出示例:
📊 东方财富持仓信息
============================================================
💰 总资产:¥125,680.50
💵 可用金额:¥23,450.00
📈 持仓市值:¥102,230.50
🟢 总盈亏:¥8,560.30
📋 持仓明细:
------------------------------------------------------------
600519 贵州茅台
持仓:100 股
成本:¥1800.00 | 现价:¥1850.00
🟢 盈亏:¥5,000.00 (2.78%)
# 限价委托(带确认)
python3 scripts/eastmoney_trading.py buy \
--stock-code 600519 \
--price 1850.00 \
--quantity 100
# 跳过确认
python3 scripts/eastmoney_trading.py buy \
--stock-code 600519 \
--price 1850.00 \
--quantity 100 \
--confirm
python3 scripts/eastmoney_trading.py sell \
--stock-code 600519 \
--price 1900.00 \
--quantity 100
# 撤销指定委托编号
python3 scripts/eastmoney_trading.py cancel --order-id 12345678
# 撤销某股票的所有未成交委托
python3 scripts/eastmoney_trading.py cancel --stock-code 600519
# 撤销所有未成交委托
python3 scripts/eastmoney_trading.py cancel
# 查询当日委托
python3 scripts/eastmoney_trading.py orders
# 查询历史委托
python3 scripts/eastmoney_trading.py orders --type history
输出示例:
📋 委托记录
================================================================================
委托编号 股票代码 股票名称 方向 价格 数量 状态 时间
--------------------------------------------------------------------------------
20260314001 600519 贵州茅台 买入 1850.00 100 已报 09:35:20
20260314002 300750 宁德时代 卖出 380.00 200 已成 10:20:15
================================================================================
共 2 条委托记录
python3 scripts/eastmoney_trading.py balance
输出示例:
💰 账户资金信息
============================================================
💎 总资产:¥125,680.50
💵 可用资金:¥23,450.00
🧊 冻结资金:¥500.00
📈 证券市值:¥102,230.50
🟢 持仓盈亏:¥8,560.30
🟢 当日盈亏:¥1,230.00
📊 仓位:81.3%
============================================================
eastmoney-trading/
└── logs/
└── 2026-03-14/
├── eastmoney_trading_093015.log
└── screenshots/
├── login_page.png
├── login_success.png
├── position_page.png
├── before_buy.png
├── buy_success.png
├── before_sell.png
├── sell_success.png
├── before_cancel.png
├── cancel_success.png
├── orders_page.png
├── balance_page.png
└── ...
export EASTMONEY_ACCOUNT=your_account
export EASTMONEY_PASSWORD=your_password
安装 Tesseract:
sudo apt-get install tesseract-ocr tesseract-ocr-chi-sim tesseract-ocr-eng
配置大模型 API(提高识别率):
export BAILIAN_API_KEY=your_api_key
⚠️ 最后提醒: 投资有风险,自动化登录和交易需谨慎。
监控 OpenClaw GitHub 版本更新,获取最新版本发布说明,翻译成中文, 并推送到 Telegram 和 Feishu。用于:(1) 定时检查版本更新 (2) 推送版本更新通知 (3) 生成中文版发布说明
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your agent a soul.
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
基于 SOC 职业分类