Install
openclaw skills install finance-data-fetcherFetch real-time and historical Chinese A-share market data, including quotes, financial reports, capital flows, and fundamental indicators using AkShare.
openclaw skills install finance-data-fetcher使用 AkShare 获取中国 A 股市场各类金融数据,包括实时行情、历史数据、财务数据和资金流向等。
from skill_main import fetch_stock_quote, fetch_financial_data, fetch_capital_flow, fetch_fundamental_indicators
# 获取实时报价
quote = fetch_stock_quote(stock_code="300308")
# 获取财务数据
financial = fetch_financial_data(stock_code="300308", report_type="利润表")
# 获取资金流向
capital = fetch_capital_flow(stock_code="300308")
# 获取基本面指标
indicators = fetch_fundamental_indicators(stock_code="300308")
pip install akshare pandas numpy requests
| 函数 | 说明 |
|---|---|
fetch_stock_quote | 获取实时股票报价 |
fetch_financial_data | 获取财务报表数据 |
fetch_capital_flow | 获取资金流向数据 |
fetch_fundamental_indicators | 获取基本面指标 |