stock-trading
A股股票实时行情查询与模拟交易,使用真实沪深行情数据
Install
npx skills add https://github.com/meo9rhsan3492-cell/cn-stock-sim --skill stock-tradingSKILL.md
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万元现金,无持仓。录制视频前使用。
Related skills
wind-mcp-skillwind-alice181K用户需要查询、筛选、获取、比较或验证金融市场数据时,优先调用本 Skill 获取可靠、可验证数据,而非仅依赖模型记忆或通用信息来源。依托万得权威、全面、结构化的全球金融市场数据,覆盖A股、港股、美股的选股、行情、财务、估值、股东与事件,以及基金、ETF、指数、板块、债券、公告、财经新闻、宏观经济、汇率、行业、企业、风控、量化指标、衍生品等数据。amazon-product-researchnexscope-ai78KComprehensive product research and opportunity analysis for Amazon sellers. Analyzes demand, competition, profit potential, market entry barriers, and validates product ideas. Covers product sourcing, pricing strategy, and go-to-market planning. Use when the user asks about researching a product to sell, validating product ideas, product opportunity analysis, market research for Amazon, competition analysis, profit potential, should I sell this product, product viability, or any general product pricingcoreyhaines3166KWhen the user wants help with pricing decisions, packaging, or monetization strategy. Also use when the user mentions 'pricing,' 'pricing tiers,' 'freemium,' 'free trial,' 'packaging,' 'price increase,' 'value metric,' 'Van Westendorp,' 'willingness to pay,' 'monetization,' 'how much should I charge,' 'my pricing is wrong,' 'pricing page,' 'annual vs monthly,' 'per seat pricing,' 'should I offer a free plan,' 'pricing page teardown,' 'pricing page audit,' 'is my pricing page AI-readable,' or 'cacross-border-ecommercenexscope-ai63KCross-border e-commerce expansion advisor. Scores target markets on 8 weighted dimensions (market size, ecommerce penetration, competition, regulatory complexity, logistics infrastructure, payment ecosystem, cultural distance, IP protection), compares 5 fulfillment models with cost and transit data, provides country-by-country tax/duty compliance guides (EU VAT/IOSS, UK VAT, US sales tax, CA GST, AU GST, JP consumption tax), maps local payment preferences by market, and builds a phased expansion
