Specification
- Skill ID
- meo9rhsan3492-cell/cn-stock-sim/stock-trading
- Publisher
- meo9rhsan3492-cell
- Repository
- cn-stock-sim
- Installs
- 0
- Files
- 9
- Synced
- Sep 23, 2026
How to use it
Open any RiverX project, open the Skills panel in the chat, and search for this identifier. The files are fetched from the source repository at install time.
meo9rhsan3492-cell/cn-stock-sim/stock-tradingInstalls these files- SKILL.md
- gold-copper-trading/SKILL.md
- gold-copper-trading/scripts/get_price.py
- gold-copper-trading/scripts/portfolio.py
- gold-copper-trading/scripts/trade.py
- scripts/get_price.py
- scripts/portfolio.py
- scripts/trade.py
- strategy.md
What this skill tells the agent
A股智能交易技能
连接新浪财经实时行情接口,提供A股股票的实时价格查询、模拟买卖和持仓管理。 行情数据为沪深交易所真实数据,交易为模拟盘,不涉及真实账户和资金。
可用命令
查询股票实时价格
python3 {baseDir}/scripts/get_price.py --code 600519支持沪深两市股票代码。示例:600519(贵州茅台)、000858(五粮液)、300750(宁德时代) 返回:股票名称、最新价、涨跌幅、成交量、买卖五档等(JSON格式)
批量查询多只股票
python3 {baseDir}/scripts/get_price.py --code 600519,000858,000001用逗号分隔多个股票代码,一次查询多只。
查询大盘指数
python3 {baseDir}/scripts/get_price.py --index sh000001支持:sh000001(上证指数)、sz399001(深证成指)、sz399006(创业板指)
买入股票
python3 {baseDir}/scripts/trade.py --action buy --code 600519 --shares 100买入指定股数的股票。shares 必须为100的整数倍(A股最小交易单位为1手=100股)。 ⚠️ 重要:调用前必须先告知用户交易计划并等待确认。
卖出股票
python3 {baseDir}/scripts/trade.py --action sell --code 600519 --shares 100查看持仓和损益
python3 {baseDir}/scripts/portfolio.py查看交易记录
python3 {baseDir}/scripts/portfolio.py --history重置账户
python3 {baseDir}/scripts/portfolio.py --reset重置为初始状态:100万元现金,无持仓。录制视频前使用。
Use this skill in a project
Open any RiverX project, search the Skills panel for meo9rhsan3492-cell/cn-stock-sim/stock-trading, and install it in one click.
