بنقرة واحدة
akshare-finance
AKShare财经数据接口库封装,提供股票、期货、期权、基金、外汇、债券、指数、加密货币等金融产品的基本面数据、实时和历史行情数据、衍生数据。
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
AKShare财经数据接口库封装,提供股票、期货、期权、基金、外汇、债券、指数、加密货币等金融产品的基本面数据、实时和历史行情数据、衍生数据。
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Generate PPT with Baidu AI. Smart template selection based on content.
Connect to 100+ APIs (Google Workspace, Microsoft 365, GitHub, Notion, Slack, Airtable, HubSpot, etc.) with managed OAuth. Use this skill when users want to interact with external services. Security: The MATON_API_KEY authenticates with Maton.ai but grants NO access to third-party services by itself. Each service requires explicit OAuth authorization by the user through Maton's connect flow. Access is strictly scoped to connections the user has authorized. Provided by Maton (https://maton.ai).
Automatically update Clawdbot and all installed skills once daily. Runs via cron, checks for updates, applies them, and messages the user with a summary of what changed.
You MUST use this for gathering contexts before any work. This is a Knowledge management for AI agents. Use `brv` to store and retrieve project patterns, decisions, and architectural rules in .brv/context-tree. Uses a configured LLM provider (default: ByteRover, no API key needed) for query and curate operations.
Clawdbot documentation expert with decision tree navigation, search scripts, doc fetching, version tracking, and config snippets for all Clawdbot features
Text-to-speech conversion using node-edge-tts npm package for generating audio from text. Supports multiple voices, languages, speed adjustment, pitch control, and subtitle generation. Use when: (1) User requests audio/voice output with the "tts" trigger or keyword. (2) Content needs to be spoken rather than read (multitasking, accessibility, driving, cooking). (3) User wants a specific voice, speed, pitch, or format for TTS output.
| name | akshare-finance |
| description | AKShare财经数据接口库封装,提供股票、期货、期权、基金、外汇、债券、指数、加密货币等金融产品的基本面数据、实时和历史行情数据、衍生数据。 |
| metadata | {"openclaw":{"emoji":"📈","requires":{"pip":["akshare>=1.12","pandas>=1.5"]},"install":[{"id":"pip-install","kind":"pip","packages":["akshare>=1.12","pandas>=1.5"],"label":"安装AKShare依赖"}]}} |
| keywords | ["股票","财经","行情","加密货币","宏观经济","AKShare"] |
# 安装依赖
pip install akshare pandas
# 测试安装
python -c "import akshare; print(akshare.__version__)"
import akshare as ak
# A股实时行情
stock_zh_a_spot_em() # 东方财富A股
# 股票K线数据
stock_zh_kline(symbol="000001", period="daily", adjust="qfq")
# 港股行情
stock_hk_spot_em() # 港股实时
# 美股
stock_us_spot() # 美股实时
# GDP数据
macro_china_gdp() # 中国GDP
# CPI通胀
macro_china_cpi() # 中国CPI
# PMI采购经理指数
macro_china_pmi() # 中国PMI
# 货币供应量
macro_china_m2() # M2广义货币
# 币种列表
crypto_binance_symbols() # 币安交易对
# 实时价格
crypto_binance_btc_usdt_spot() # BTC/USDT
# K线数据
crypto_binance_btc_usdt_kline(period="daily")
# 外汇汇率
forex_usd_cny() # 美元兑人民币
# 贵金属
metals_shibor() # 上海银行间拆借利率
# 金银价格
metals_gold() # 国际金价
# 股票基本面
stock_fundamental(symbol="000001") # 基本面数据
# 估值指标
stock_valuation(symbol="000001") # PE、PB等
# 盈利能力
stock_profit_em(symbol="000001")
import akshare as ak
import pandas as pd
# 监控自选股
tickers = ["000001", "000002", "600519"]
for ticker in tickers:
df = ak.stock_zh_kline(symbol=ticker, period="daily", adjust="qfq", start_date="20240101")
latest = df.iloc[-1]
print(f"{ticker}: 收盘价={latest['close']}, 涨跌幅={latest['pct_chg']}%")
# A股大盘
index_zh_a_spot() # 大盘指数
# 涨跌幅排行
stock_zh_a_spot_em()[['代码', '名称', '涨跌幅']].sort_values('涨跌幅', ascending=False)
默认返回Pandas DataFrame,可直接处理:
df = ak.stock_zh_a_spot_em()
print(df.head()) # 查看前5行
print(df.columns) # 查看列名
df.to_csv("data.csv") # 保存CSV