{"id":"1b4730d3-e404-48e2-a378-299aa495b3fd","entityType":"agent","slug":"clawhub-learner1999-akshare","name":"Akshare","canonicalUrl":"https://www.xpersona.co/agent/clawhub-learner1999-akshare","canonicalPath":"/agent/clawhub-learner1999-akshare","generatedAt":"2026-10-09T14:54:18.327Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-10-09T09:33:11.068Z","emptyReason":null},"description":"Fetch Chinese stock market data (A-shares, Hong Kong stocks, futures, funds, macroeconomic indicators) using AKShare library. Use when you need to get real-t... Skill: Akshare Owner: learner1999 Summary: Fetch Chinese stock market data (A-shares, Hong Kong stocks, futures, funds, macroeconomic indicators) using AKShare library. Use when you need to get real-t... Tags: latest:1.0.0 Version history: v1.0.0 | 2026-02-19T14:22:19.248Z | auto - Initial release of the akshare skill. - Fetch Chinese stock market, fund, futures, and macroeconomic data using the AKShare Python librar","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 3.1K downloads reported by the source. Last updated 10/9/2026.","installCommand":"clawhub skill install s176x9ngsgs1vb2e0784fxq8dx8849h0:akshare","sourceUrl":"https://clawhub.ai/learner1999/akshare","homepage":"https://clawhub.ai/learner1999/skills/akshare","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/learner1999/akshare","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/learner1999/skills/akshare","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":70,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Fetch Chinese stock market data (A-shares, Hong Kong stocks, futures, funds, macroeconomic indicators) using AKShare library. Use when you need to get real-t..."},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-09T09:33:11.068Z","emptyReason":null},"protocols":[{"protocol":"OPENCLEW","label":"OpenClaw","status":"self-declared","notes":"Declared in the public agent profile."}],"capabilities":[],"verifiedCount":0,"selfDeclaredCount":1,"capabilityMatrix":{"rows":[{"key":"OPENCLEW","type":"protocol","support":"unknown","confidenceSource":"profile","notes":"Listed on profile"}],"flattenedTokens":"protocol:OPENCLEW|unknown|profile"}},"adoption":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T09:33:11.068Z","emptyReason":null},"stars":null,"forks":null,"downloads":3138,"packageName":null,"latestVersion":"1.0.0","tractionLabel":"3.1K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T09:33:11.067Z","emptyReason":null},"lastUpdatedAt":"2026-10-09T09:33:11.068Z","lastCrawledAt":"2026-10-09T09:33:11.067Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-10T09:33:11.067Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.0","createdAt":"2026-02-19T14:22:19.248Z","changelog":"- Initial release of the akshare skill. - Fetch Chinese stock market, fund, futures, and macroeconomic data using the AKShare Python library. - Supports real-time and historical data, including stock prices, financial statements, market indices, and macro stats. - No API key required; free and open-source. - Added usage examples, key functions, and important notes about rate limits and code formats.","fileCount":5,"zipByteSize":5568}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s176x9ngsgs1vb2e0784fxq8dx8849h0:akshare","setupComplexity":"low","setupSteps":["Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.","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":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-learner1999-akshare/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-learner1999-akshare/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-learner1999-akshare/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-learner1999-akshare/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-learner1999-akshare/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-learner1999-akshare/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-09T14:54:18.327Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-learner1999-akshare/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-learner1999-akshare/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-learner1999-akshare/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-learner1999-akshare/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"high","updatedAt":"2026-10-09T09:33:11.068Z","emptyReason":null},"readme":"Skill: Akshare\n\nOwner: learner1999\n\nSummary: Fetch Chinese stock market data (A-shares, Hong Kong stocks, futures, funds, macroeconomic indicators) using AKShare library. Use when you need to get real-t...\n\nTags: latest:1.0.0\n\nVersion history:\n\nv1.0.0 | 2026-02-19T14:22:19.248Z | auto\n\n- Initial release of the akshare skill.\n- Fetch Chinese stock market, fund, futures, and macroeconomic data using the AKShare Python library.\n- Supports real-time and historical data, including stock prices, financial statements, market indices, and macro stats.\n- No API key required; free and open-source.\n- Added usage examples, key functions, and important notes about rate limits and code formats.\n\nArchive index:\n\nArchive v1.0.0: 5 files, 5568 bytes\n\nFiles: references/api_reference.md (4042b), scripts/get_market_overview.py (1410b), scripts/get_stock_history.py (1948b), SKILL.md (3875b), _meta.json (126b)\n\nFile v1.0.0:SKILL.md\n\n---\nname: akshare\ndescription: Fetch Chinese stock market data (A-shares, Hong Kong stocks, futures, funds, macroeconomic indicators) using AKShare library. Use when you need to get real-time or historical financial data from Chinese markets, including stock prices, trading volumes, financial statements, fund data, futures data, or macroeconomic statistics. Supports daily/weekly/monthly K-line data, stock fundamentals, market indices, and more. No API key required - completely free.\n---\n\n# AKShare - Chinese Financial Data\n\nAKShare is a free, open-source Python library for accessing Chinese financial market data.\n\n## Quick Start\n\n```python\nimport akshare as ak\n\n# Get A-share real-time quotes\nstock_spot = ak.stock_zh_a_spot_em()\n\n# Get historical K-line data (with forward adjustment)\ndf = ak.stock_zh_a_hist(symbol=\"000001\", period=\"daily\", \n                        start_date=\"20200101\", end_date=\"20231231\", \n                        adjust=\"qfq\")\n```\n\n## Core Functions\n\n### Stock Data\n\n**Real-time quotes:**\n```python\n# All A-shares\nak.stock_zh_a_spot_em()\n\n# Individual stock info\nak.stock_individual_info_em(symbol=\"000001\")\n```\n\n**Historical data:**\n```python\n# Daily K-line (symbol without exchange prefix)\nak.stock_zh_a_hist(\n    symbol=\"000001\",      # Stock code\n    period=\"daily\",       # daily/weekly/monthly\n    start_date=\"20200101\",\n    end_date=\"20231231\",\n    adjust=\"qfq\"         # qfq=forward, hfq=backward, \"\"=none\n)\n```\n\n**Index data:**\n```python\n# Shanghai Composite\nak.stock_zh_index_daily(symbol=\"sh000001\")\n\n# Shenzhen Component\nak.stock_zh_index_daily(symbol=\"sz399001\")\n```\n\n### Fund Data\n\n```python\n# Fund rankings\nak.fund_open_fund_rank_em(symbol=\"全部\")\n\n# Fund net value history\nak.fund_open_fund_info_em(fund=\"000001\", indicator=\"单位净值走势\")\n\n# ETF real-time quotes\nak.fund_etf_spot_em()\n```\n\n### Futures Data\n\n```python\n# Futures real-time quotes\nak.futures_zh_spot(symbol=\"主力合约\")\n\n# Futures historical data\nak.futures_zh_daily_sina(symbol=\"CU0\", start_date=\"20230101\", end_date=\"20231231\")\n```\n\n### Macroeconomic Data\n\n```python\n# GDP\nak.macro_china_gdp()\n\n# CPI\nak.macro_china_cpi()\n\n# PMI\nak.macro_china_pmi()\n\n# Money supply\nak.macro_china_money_supply()\n```\n\n## Important Notes\n\n### Rate Limiting\n- AKShare scrapes public websites - add delays between requests\n- Recommended: `time.sleep(1)` between calls\n- Batch downloads may trigger rate limits\n\n### Data Quality\n- Free data may have occasional gaps or errors\n- For production use, consider Tushare Pro (paid)\n- Always validate critical data\n\n### Stock Code Format\n- Use 6-digit code without exchange prefix: `\"000001\"` not `\"sz000001\"`\n- Index codes need prefix: `\"sh000001\"`, `\"sz399001\"`\n\n## Common Patterns\n\n**Get multiple stocks:**\n```python\nimport time\n\nstocks = [\"000001\", \"600519\", \"000858\"]\ndata = {}\n\nfor code in stocks:\n    data[code] = ak.stock_zh_a_hist(symbol=code, period=\"daily\", adjust=\"qfq\")\n    time.sleep(1)  # Avoid rate limiting\n```\n\n**Calculate returns:**\n```python\ndf = ak.stock_zh_a_hist(symbol=\"000001\", period=\"daily\", adjust=\"qfq\")\ndf['日收益率'] = df['收盘'].pct_change() * 100\ntotal_return = ((df['收盘'].iloc[-1] / df['收盘'].iloc[0]) - 1) * 100\n```\n\n## Resources\n\n- **Installation**: `pip install akshare --upgrade`\n- **Official docs**: https://akshare.akfamily.xyz/\n- **GitHub**: https://github.com/akfamily/akshare\n- **Example scripts**: See `scripts/` directory\n- **API reference**: See `references/api_reference.md`\n\n## When to Use\n\nUse AKShare when:\n- Getting Chinese market data (A-shares, Hong Kong, futures)\n- No budget for paid data services\n- Prototyping or learning quantitative strategies\n- Need macroeconomic indicators\n\nConsider alternatives when:\n- Need guaranteed data stability (use Tushare Pro)\n- High-frequency trading (use professional data feeds)\n- Need real-time tick data (use broker APIs)\n\nFile v1.0.0:_meta.json\n\n{\n  \"ownerId\": \"kn75bgq44z2zty8c3zmqcg3vhn80avsd\",\n  \"slug\": \"akshare\",\n  \"version\": \"1.0.0\",\n  \"publishedAt\": 1771510939248\n}\n\nFile v1.0.0:references/api_reference.md\n\n# AKShare API Reference\n\nQuick reference for commonly used AKShare functions.\n\n## Stock Data\n\n### Real-time Quotes\n\n```python\n# All A-shares real-time\nak.stock_zh_a_spot_em()\n# Returns: DataFrame with columns [代码, 名称, 最新价, 涨跌幅, 涨跌额, 成交量, 成交额, ...]\n\n# Individual stock info\nak.stock_individual_info_em(symbol=\"000001\")\n# Returns: DataFrame with stock basic information\n```\n\n### Historical K-line\n\n```python\nak.stock_zh_a_hist(\n    symbol=\"000001\",           # Stock code (6 digits)\n    period=\"daily\",            # \"daily\", \"weekly\", \"monthly\"\n    start_date=\"20200101\",     # YYYYMMDD format\n    end_date=\"20231231\",       # YYYYMMDD format\n    adjust=\"qfq\"               # \"qfq\"=forward, \"hfq\"=backward, \"\"=none\n)\n# Returns: DataFrame with columns [日期, 开盘, 收盘, 最高, 最低, 成交量, 成交额, 振幅, 涨跌幅, 涨跌额, 换手率]\n```\n\n### Index Data\n\n```python\n# Shanghai Composite Index\nak.stock_zh_index_daily(symbol=\"sh000001\")\n\n# Shenzhen Component Index\nak.stock_zh_index_daily(symbol=\"sz399001\")\n\n# ChiNext Index\nak.stock_zh_index_daily(symbol=\"sz399006\")\n\n# Returns: DataFrame with columns [date, open, high, low, close, volume]\n```\n\n## Fund Data\n\n### Fund Rankings\n\n```python\nak.fund_open_fund_rank_em(symbol=\"全部\")\n# symbol options: \"全部\", \"股票型\", \"混合型\", \"债券型\", \"指数型\", \"QDII\", \"FOF\"\n# Returns: DataFrame with fund rankings and performance\n```\n\n### Fund Net Value\n\n```python\nak.fund_open_fund_info_em(fund=\"000001\", indicator=\"单位净值走势\")\n# indicator options: \"单位净值走势\", \"累计净值走势\", \"累计收益率走势\", \"同类排名走势\", \"同类排名百分比走势\"\n# Returns: DataFrame with historical net values\n```\n\n### ETF Data\n\n```python\nak.fund_etf_spot_em()\n# Returns: DataFrame with ETF real-time quotes\n```\n\n## Futures Data\n\n### Futures Quotes\n\n```python\nak.futures_zh_spot(symbol=\"主力合约\")\n# symbol options: \"主力合约\", \"中金所\", \"上期所\", \"大商所\", \"郑商所\"\n# Returns: DataFrame with futures real-time quotes\n```\n\n### Futures Historical\n\n```python\nak.futures_zh_daily_sina(symbol=\"CU0\", start_date=\"20230101\", end_date=\"20231231\")\n# symbol: Futures code (e.g., \"CU0\" for copper main contract)\n# Returns: DataFrame with columns [date, open, high, low, close, volume, hold]\n```\n\n## Macroeconomic Data\n\n### GDP\n\n```python\nak.macro_china_gdp()\n# Returns: DataFrame with quarterly GDP data\n```\n\n### CPI\n\n```python\nak.macro_china_cpi()\n# Returns: DataFrame with monthly CPI data\n```\n\n### PMI\n\n```python\nak.macro_china_pmi()\n# Returns: DataFrame with monthly manufacturing PMI\n```\n\n### Money Supply\n\n```python\nak.macro_china_money_supply()\n# Returns: DataFrame with M0, M1, M2 data\n```\n\n### Foreign Exchange Reserves\n\n```python\nak.macro_china_fx_reserves()\n# Returns: DataFrame with monthly FX reserves\n```\n\n### Interest Rates\n\n```python\nak.macro_china_shibor()\n# Returns: DataFrame with Shibor rates\n```\n\n## US Market Data\n\n### US Stocks\n\n```python\nak.stock_us_daily(symbol=\"AAPL\", adjust=\"qfq\")\n# Returns: DataFrame with US stock historical data\n```\n\n### US GDP\n\n```python\nak.macro_usa_gdp()\n# Returns: DataFrame with US GDP data\n```\n\n## Common Data Columns\n\n### Stock Historical Data (stock_zh_a_hist)\n- 日期: Date\n- 开盘: Open\n- 收盘: Close\n- 最高: High\n- 最低: Low\n- 成交量: Volume\n- 成交额: Amount\n- 振幅: Amplitude\n- 涨跌幅: Change %\n- 涨跌额: Change Amount\n- 换手率: Turnover Rate\n\n### Stock Real-time Data (stock_zh_a_spot_em)\n- 代码: Code\n- 名称: Name\n- 最新价: Latest Price\n- 涨跌幅: Change %\n- 涨跌额: Change Amount\n- 成交量: Volume\n- 成交额: Amount\n- 今开: Open\n- 昨收: Previous Close\n- 最高: High\n- 最低: Low\n\n## Tips\n\n1. **Rate Limiting**: Add `time.sleep(1)` between requests\n2. **Data Validation**: Always check for missing values\n3. **Encoding**: Use `encoding='utf-8-sig'` when saving to CSV\n4. **Stock Codes**: Use 6-digit format without exchange prefix\n5. **Date Format**: Use YYYYMMDD string format (e.g., \"20230101\")","readmeExcerpt":"Skill: Akshare Owner: learner1999 Summary: Fetch Chinese stock market data (A-shares, Hong Kong stocks, futures, funds, macroeconomic indicators) using AKShare library. Use when you need to get real-t... Tags: latest:1.0.0 Version history: v1.0.0 | 2026-02-19T14:22:19.248Z | auto - Initial release of the akshare skill. - Fetch Chinese stock market, fund, futures, and macroeconomic data using the AKShare Python librar","codeSnippets":[],"executableExamples":[{"language":"python","snippet":"import akshare as ak\n\n# Get A-share real-time quotes\nstock_spot = ak.stock_zh_a_spot_em()\n\n# Get historical K-line data (with forward adjustment)\ndf = ak.stock_zh_a_hist(symbol=\"000001\", period=\"daily\", \n                        start_date=\"20200101\", end_date=\"20231231\", \n                        adjust=\"qfq\")"},{"language":"python","snippet":"# All A-shares\nak.stock_zh_a_spot_em()\n\n# Individual stock info\nak.stock_individual_info_em(symbol=\"000001\")"},{"language":"python","snippet":"# Daily K-line (symbol without exchange prefix)\nak.stock_zh_a_hist(\n    symbol=\"000001\",      # Stock code\n    period=\"daily\",       # daily/weekly/monthly\n    start_date=\"20200101\",\n    end_date=\"20231231\",\n    adjust=\"qfq\"         # qfq=forward, hfq=backward, \"\"=none\n)"},{"language":"python","snippet":"# Shanghai Composite\nak.stock_zh_index_daily(symbol=\"sh000001\")\n\n# Shenzhen Component\nak.stock_zh_index_daily(symbol=\"sz399001\")"},{"language":"python","snippet":"# Fund rankings\nak.fund_open_fund_rank_em(symbol=\"全部\")\n\n# Fund net value history\nak.fund_open_fund_info_em(fund=\"000001\", indicator=\"单位净值走势\")\n\n# ETF real-time quotes\nak.fund_etf_spot_em()"},{"language":"python","snippet":"# Futures real-time quotes\nak.futures_zh_spot(symbol=\"主力合约\")\n\n# Futures historical data\nak.futures_zh_daily_sina(symbol=\"CU0\", start_date=\"20230101\", end_date=\"20231231\")"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: akshare\ndescription: Fetch Chinese stock market data (A-shares, Hong Kong stocks, futures, funds, macroeconomic indicators) using AKShare library. Use when you need to get real-time or historical financial data from Chinese markets, including stock prices, trading volumes, financial statements, fund data, futures data, or macroeconomic statistics. Supports daily/weekly/monthly K-line data, stock fundamentals, market indices, and more. No API key required - completely free.\n---\n\n# AKShare - Chinese Financial Data\n\nAKShare is a free, open-source Python library for accessing Chinese financial market data.\n\n## Quick Start\n\n```python\nimport akshare as ak\n\n# Get A-share real-time quotes\nstock_spot = ak.stock_zh_a_spot_em()\n\n# Get historical K-line data (with forward adjustment)\ndf = ak.stock_zh_a_hist(symbol=\"000001\", period=\"daily\", \n                        start_date=\"20200101\", end_date=\"20231231\", \n                        adjust=\"qfq\")\n```\n\n## Core Functions\n\n### Stock Data\n\n**Real-time quotes:**\n```python\n# All A-shares\nak.stock_zh_a_spot_em()\n\n# Individual stock info\nak.stock_individual_info_em(symbol=\"000001\")\n```\n\n**Historical data:**\n```python\n# Daily K-line (symbol without exchange prefix)\nak.stock_zh_a_hist(\n    symbol=\"000001\",      # Stock code\n    period=\"daily\",       # daily/weekly/monthly\n    start_date=\"20200101\",\n    end_date=\"20231231\",\n    adjust=\"qfq\"         # qfq=forward, hfq=backward, \"\"=none\n)\n```\n\n**Index data:**\n```python\n# Shanghai Composite\nak.stock_zh_index_daily(symbol=\"sh000001\")\n\n# Shenzhen Component\nak.stock_zh_index_daily(symbol=\"sz399001\")\n```\n\n### Fund Data\n\n```python\n# Fund rankings\nak.fund_open_fund_rank_em(symbol=\"全部\")\n\n# Fund net value history\nak.fund_open_fund_info_em(fund=\"000001\", indicator=\"单位净值走势\")\n\n# ETF real-time quotes\nak.fund_etf_spot_em()\n```\n\n### Futures Data\n\n```python\n# Futures real-time quotes\nak.futures_zh_spot(symbol=\"主力合约\")\n\n# Futures historical data\nak.futures_zh_daily_sina(symbol=\"CU0\", start_date=\"20230101\", end_date=\"20231231\")\n```\n\n### Macroeconomic Data\n\n```python\n# GDP\nak.macro_china_gdp()\n\n# CPI\nak.macro_china_cpi()\n\n# PMI\nak.macro_china_pmi()\n\n# Money supply\nak.macro_china_money_supply()\n```\n\n## Important Notes\n\n### Rate Limiting\n- AKShare scrapes public websites - add delays between requests\n- Recommended: `time.sleep(1)` between calls\n- Batch downloads may trigger rate limits\n\n### Data Quality\n- Free data may have occasional gaps or errors\n- For production use, consider Tushare Pro (paid)\n- Always validate critical data\n\n### Stock Code Format\n- Use 6-digit code without exchange prefix: `\"000001\"` not `\"sz000001\"`\n- Index codes need prefix: `\"sh000001\"`, `\"sz399001\"`\n\n## Common Patterns\n\n**Get multiple stocks:**\n```python\nimport time\n\nstocks = [\"000001\", \"600519\", \"000858\"]\ndata = {}\n\nfor code in stocks:\n    data[code] = ak.stock_zh_a_hist(symbol=code, period=\"daily\", adjust=\"qfq\")\n    time.sleep(1)  # Avoid rate limiting\n```\n\n**Calculate returns:**\n```python\ndf = ak.stock_z"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn75bgq44z2zty8c3zmqcg3vhn80avsd\",\n  \"slug\": \"akshare\",\n  \"version\": \"1.0.0\",\n  \"publishedAt\": 1771510939248\n}"},{"path":"references/api_reference.md","content":"# AKShare API Reference\n\nQuick reference for commonly used AKShare functions.\n\n## Stock Data\n\n### Real-time Quotes\n\n```python\n# All A-shares real-time\nak.stock_zh_a_spot_em()\n# Returns: DataFrame with columns [代码, 名称, 最新价, 涨跌幅, 涨跌额, 成交量, 成交额, ...]\n\n# Individual stock info\nak.stock_individual_info_em(symbol=\"000001\")\n# Returns: DataFrame with stock basic information\n```\n\n### Historical K-line\n\n```python\nak.stock_zh_a_hist(\n    symbol=\"000001\",           # Stock code (6 digits)\n    period=\"daily\",            # \"daily\", \"weekly\", \"monthly\"\n    start_date=\"20200101\",     # YYYYMMDD format\n    end_date=\"20231231\",       # YYYYMMDD format\n    adjust=\"qfq\"               # \"qfq\"=forward, \"hfq\"=backward, \"\"=none\n)\n# Returns: DataFrame with columns [日期, 开盘, 收盘, 最高, 最低, 成交量, 成交额, 振幅, 涨跌幅, 涨跌额, 换手率]\n```\n\n### Index Data\n\n```python\n# Shanghai Composite Index\nak.stock_zh_index_daily(symbol=\"sh000001\")\n\n# Shenzhen Component Index\nak.stock_zh_index_daily(symbol=\"sz399001\")\n\n# ChiNext Index\nak.stock_zh_index_daily(symbol=\"sz399006\")\n\n# Returns: DataFrame with columns [date, open, high, low, close, volume]\n```\n\n## Fund Data\n\n### Fund Rankings\n\n```python\nak.fund_open_fund_rank_em(symbol=\"全部\")\n# symbol options: \"全部\", \"股票型\", \"混合型\", \"债券型\", \"指数型\", \"QDII\", \"FOF\"\n# Returns: DataFrame with fund rankings and performance\n```\n\n### Fund Net Value\n\n```python\nak.fund_open_fund_info_em(fund=\"000001\", indicator=\"单位净值走势\")\n# indicator options: \"单位净值走势\", \"累计净值走势\", \"累计收益率走势\", \"同类排名走势\", \"同类排名百分比走势\"\n# Returns: DataFrame with historical net values\n```\n\n### ETF Data\n\n```python\nak.fund_etf_spot_em()\n# Returns: DataFrame with ETF real-time quotes\n```\n\n## Futures Data\n\n### Futures Quotes\n\n```python\nak.futures_zh_spot(symbol=\"主力合约\")\n# symbol options: \"主力合约\", \"中金所\", \"上期所\", \"大商所\", \"郑商所\"\n# Returns: DataFrame with futures real-time quotes\n```\n\n### Futures Historical\n\n```python\nak.futures_zh_daily_sina(symbol=\"CU0\", start_date=\"20230101\", end_date=\"20231231\")\n# symbol: Futures code (e.g., \"CU0\" for copper main contract)\n# Returns: DataFrame with columns [date, open, high, low, close, volume, hold]\n```\n\n## Macroeconomic Data\n\n### GDP\n\n```python\nak.macro_china_gdp()\n# Returns: DataFrame with quarterly GDP data\n```\n\n### CPI\n\n```python\nak.macro_china_cpi()\n# Returns: DataFrame with monthly CPI data\n```\n\n### PMI\n\n```python\nak.macro_china_pmi()\n# Returns: DataFrame with monthly manufacturing PMI\n```\n\n### Money Supply\n\n```python\nak.macro_china_money_supply()\n# Returns: DataFrame with M0, M1, M2 data\n```\n\n### Foreign Exchange Reserves\n\n```python\nak.macro_china_fx_reserves()\n# Returns: DataFrame with monthly FX reserves\n```\n\n### Interest Rates\n\n```python\nak.macro_china_shibor()\n# Returns: DataFrame with Shibor rates\n```\n\n## US Market Data\n\n### US Stocks\n\n```python\nak.stock_us_daily(symbol=\"AAPL\", adjust=\"qfq\")\n# Returns: DataFrame with US stock historical data\n```\n\n### US GDP\n\n```python\nak.macro_usa_gdp()\n# Returns: DataFrame with US GDP data\n```\n\n## Common Data Columns\n\n### Stock Historical Data (stock_zh"}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":"Fetch Chinese stock market data (A-shares, Hong Kong stocks, futures, funds, macroeconomic indicators) using AKShare library. Use when you need to get real-t... Skill: Akshare Owner: learner1999 Summary: Fetch Chinese stock market data (A-shares, Hong Kong stocks, futures, funds, macroeconomic indicators) using AKShare library. Use when you need to get real-t... Tags: latest:1.0.0 Version history: v1.0.0 | 2026-02-19T14:22:19.248Z | auto - Initial release of the akshare skill. - Fetch Chinese stock market, fund, futures, and macroeconomic data using the AKShare Python librar","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":912,"uniquenessScore":48,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-09T09:33:11.068Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-10-09T09:33:11.068Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-09T14:54:18.327Z","emptyReason":null},"items":[{"id":"b917f68a-ebff-438e-84f8-3f4b2494c0bc","entityType":"agent","canonicalPath":"/agent/activepieces-activepieces","slug":"activepieces-activepieces","name":"activepieces","description":"AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents","url":"https://github.com/activepieces/activepieces","homepage":"https://www.activepieces.com","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-15T02:22:12.426Z","createdAt":"2026-02-25T03:38:12.412Z","downloads":null},{"id":"5cb26759-3a39-483f-94cf-276a98c13bb8","entityType":"agent","canonicalPath":"/agent/cherryhq-cherry-studio","slug":"cherryhq-cherry-studio","name":"cherry-studio","description":"AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs","url":"https://github.com/CherryHQ/cherry-studio","homepage":"https://cherry-ai.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-11T14:38:40.986Z","createdAt":"2026-02-25T03:38:19.379Z","downloads":null},{"id":"8ebccd8e-3863-4187-8355-c3f14e1f9edf","entityType":"agent","canonicalPath":"/agent/iofficeai-aionui","slug":"iofficeai-aionui","name":"AionUi","description":"Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!","url":"https://github.com/iOfficeAI/AionUi","homepage":"https://www.aionui.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-10T18:48:31.762Z","createdAt":"2026-02-25T03:38:16.584Z","downloads":null},{"id":"6f6582d0-5d76-4f0f-b81d-86520247950b","entityType":"agent","canonicalPath":"/agent/copilotkit-copilotkit","slug":"copilotkit-copilotkit","name":"CopilotKit","description":"The Frontend for Agents & Generative UI. React + Angular","url":"https://github.com/CopilotKit/CopilotKit","homepage":"https://docs.copilotkit.ai","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-03-25T09:50:57.846Z","createdAt":"2026-02-25T03:39:14.617Z","downloads":null}],"links":{"hub":"/agent","source":"/agent/source/clawhub","protocols":[{"label":"OpenClaw","href":"/agent/protocol/openclew"}]}}}