Overview
- Skill Key
- geoion/akshare-cn-market
- Author
- geoion
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/geoion/akshare-cn-market
- Latest Commit SHA
- 47ae989876ecfb4e3ffc1d9bf36ed0f1995bb25f
中国A股行情与宏观经济数据工具,基于 AKShare 库。支持个股K线、大盘指数、财务摘要、GDP/CPI/PMI/M2货币供应、中美国债收益率等。
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 akshare-cn-market 技能。 若已安装,则直接安装 akshare-cn-market 技能。
# AKShare 中国市场数据 ## 安装依赖 ```bash pip install akshare pandas # 验证 python3 -c "import akshare; print(akshare.__version__)" ``` ## 脚本用法 ### 股票行情(scripts/stock.py) ```bash # 个股历史K线(默认最近10条日线,前复权) python3 scripts/stock.py hist 000001 python3 scripts/stock.py hist 600519 --n 20 --start 20240101 # 大盘指数K线(新浪源) python3 scripts/stock.py index sh000001 # 上证综指 python3 scripts/stock.py index sh000300 # 沪深300 python3 scripts/stock.py index sz399001 # 深证成指 python3 scripts/stock.py index sh000016 --n 5 # 上证50,最近5条 # 个股财务摘要(近5年) python3 scripts/stock.py financial 000001 python3 scripts/stock.py financial 600519 ``` ### 宏观数据(scripts/macro.py) ```bash # GDP 季度数据(默认最近8季度) python3 scripts/macro.py gdp python3 scripts/macro.py gdp --n 4 # CPI 月度数据(默认最近12个月) python3 scripts/macro.py cpi # PMI(制造业 + 非制造业,默认最近12个月) python3 scripts/macro.py pmi # 货币供应量 M0/M1/M2(默认最近12个月) python3 scripts/macro.py money # 中美国债收益率(默认最近10个交易日) python3 scripts/macro.py bond --n 5 ``` ### 交易日历(scripts/trade_cal.py) ```bash # 判断今天是否为交易日 python3 scripts/trade_cal.py check today # 判断指定日期 python3 scripts/trade_cal.py check 2026-03-01 # 当天或之后最近的交易日 python3 scripts/trade_cal.py next today python3 scripts/trade_cal.py next 2026-02-01 # 当天或之前最近的交易日(获取最近一个收盘日) python3 scripts/trade_cal.py prev today # 列出区间内所有交易日 python3 scripts/trade_cal.py range 2026-03-02 2026-03-06 ``` 数据来源:新浪财经,覆盖 1990-12-19 至 2026-12-31。 ## 在 Agent 中直接调用 ```python import akshare as ak # A股个股K线 df = ak.stock_zh_a_hist(symbol="000001", period="daily", start_date="20240101", adjust="qfq") # 大盘指数(新浪源,不受东方财富代理限制) df = ak.stock_zh_index_daily(symbol="sh000001") # 宏观:GDP / CPI / PMI / 货币供应 df = ak.macro_china_gdp() df = ak.macro_china_cpi() df = ak.macro...
capt-marbles
Task Router
capncoconut
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay, check marketplace stats, or manage agent credentials. Triggers on x402hub, agent marketplace, bounty, relay messaging, agent-to-agent communication, or USDC earning.
capevace
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
captchasco
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.
carol-gutianle
name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}
canbirlik
Controls Wiz smart bulbs (turn on/off, RGB colors, disco mode) via local WiFi.