lzwme/akshare
AKShare 开源金融数据接口库,提供股票、期货、期权、基金、外汇、债券、指数、加密货币等全品类金融数据;当用户需要获取各类金融市场数据时使用
npx skills add https://github.com/lzwme/finance-quant-skills --skill akshare
pip install akshare --upgradepython scripts/stock_data.py --type hist --symbol 000001 --start 20240101 --end 20240131python scripts/futures_data.py --type daily --exchange CFFEX --start 20240101 --end 20240131python scripts/fund_data.py --type etf --symbol 510300python scripts/forex_data.py --type spot --symbol usdpython scripts/macro_data.py --type gdppython scripts/crypto_data.py --type price --symbol BTC/USDT--period 参数(daily/weekly/monthly)--adjust 参数(qfq/hfq/空值)python scripts/stock_data.py --type hist --symbol 600519 --start 20240101 --end 20241231 --period daily --adjust qfqpython scripts/futures_data.py --type daily --symbol IF2406 --start 20240101 --end 20240131python scripts/fund_data.py --type etf --symbol 510300python scripts/macro_data.py --type gdp完整的 API 函数清单(70+ 个接口,覆盖股票/期货/基金/期权/债券/外汇/指数/加密货币/宏观经济/特色数据)见 references/api-catalog.md。
快速索引:
ak.stock_zh_a_hist(), ak.stock_zh_a_spot_em()ak.futures_zh_spot(), ak.get_futures_daily()ak.fund_etf_spot_em(), ak.fund_etf_hist_em()ak.macro_china_gdp(), ak.macro_usa_cpi_monthly()ak.stock_lhb_detail_em()(龙虎榜), ak.stock_hsgt_hist_em()(北向资金)pip install akshare --upgrade{asset_type}_{market}_{data_type}_{data_source}
stock(股票), futures(期货), fund(基金), bond(债券), forex(外汇), option(期权), macro(宏观), index(指数)zh(中国), us(美国), hk(香港), 或交易所代码spot(实时), hist(历史), daily(日线), minute(分钟)em(东方财富), sina(新浪财经), 交易所缩写"" - 不复权"qfq" - 前复权"hfq" - 后复权"daily" - 日线"weekly" - 周线"monthly" - 月线"1", "5", "15", "30", "60" - 分钟线Take lzwme/akshare from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.
The instructions reference pip.
Without those the skill loads but fails at the first command.