ideabrowser.com — find trending startup ideas with real demand
Try itnpx skills add https://github.com/succ985/openclaw-akshare-skill --skill akshareAkShare is a free, open-source Python library for accessing Chinese financial market data. This skill provides guidance for fetching data from Chinese exchanges including Shanghai Stock Exchange, Shenzhen Stock Exchange, Hong Kong Exchange, and more.
Install AkShare:
pip install akshare
Basic stock quote:
import akshare as ak
df = ak.stock_zh_a_spot_em() # Real-time A-share data
Real-time quotes:
# All A-shares real-time data
df = ak.stock_zh_a_spot_em()
# Single stock real-time quote
df = ak.stock_zh_a_spot()
Historical data:
# Historical daily data
df = ak.stock_zh_a_hist(symbol="000001", period="daily", start_date="20240101", end_date="20241231", adjust="qfq")
Stock list:
# Get all A-share stock list
df = ak.stock_info_a_code_name()
Real-time quotes:
df = ak.stock_hk_spot_em()
Historical data:
df = ak.stock_hk_hist(symbol="00700", period="daily", adjust="qfq")
Real-time data:
df = ak.stock_us_spot_em()
Real-time futures:
# Commodity futures
df = ak.futures_zh_spot()
Historical futures:
df = ak.futures_zh_hist_sina(symbol="IF0")
Fund list:
df = ak.fund_open_fund_info_em()
Fund historical data:
df = ak.fund_open_fund_info_em(fund="000001", indicator="单位净值走势")
GDP data:
df = ak.macro_china_gdp()
CPI data:
df = ak.macro_china_cpi()
PMI data:
df = ak.macro_china_pmi()
Period (周期):
daily - 日线weekly - 周线monthly - 月线Adjustment (复权):
qfq - 前复权hfq - 后复权"" - 不复权For complete API documentation and advanced usage, see: