本文へ移動
cccskills
無料GitHub で公開

akshare

AKShare financial data aggregator (18k+ stars). Free, no API key. Covers A-shares, US, HK, futures, macro, forex. Primary fallback for tushare and yfinance.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md3.1 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Overview

AKShare is a completely free, open-source Python financial data library. No registration or API key required. It aggregates data from public sources (Sina, East Money, etc.) covering Chinese and global markets.

Quick Start

import akshare as ak

# A-share daily OHLCV (前复权)
df = ak.stock_zh_a_hist(symbol="000001", period="daily",
                         start_date="20240101", end_date="20260101", adjust="qfq")

# US stock daily
df = ak.stock_us_hist(symbol="105.AAPL", period="daily",
                       start_date="20240101", end_date="20260101", adjust="qfq")

# HK stock daily
df = ak.stock_hk_hist(symbol="00700", period="daily",
                       start_date="20240101", end_date="20260101", adjust="qfq")

Top 10 High-Frequency Interfaces

A-shares

FunctionDescriptionKey Params
stock_zh_a_hist()A-share OHLCVsymbol, period, start_date, end_date, adjust
stock_zh_a_spot_em()Real-time A-share quotes(none)
stock_individual_info_em()Stock basic infosymbol
stock_zh_a_hist_min_em()Intraday barssymbol, period(1/5/15/30/60)

US / HK

FunctionDescriptionKey Params
stock_us_hist()US stock OHLCVsymbol (e.g. "105.AAPL"), period, start_date, end_date
stock_hk_hist()HK stock OHLCVsymbol (e.g. "00700"), period, start_date, end_date

Macro / Forex / Futures

FunctionDescription
macro_china_gdp()China GDP data
macro_china_cpi()China CPI data
futures_main_sina()Futures main contract quotes
currency_boc_sina()BOC forex rates

Column Names

AKShare returns Chinese column names by default:

ChineseEnglishDescription
日期dateTrade date
开盘openOpen price
最高highHigh price
最低lowLow price
收盘closeClose price
成交量volumeVolume
成交额amountTurnover
涨跌幅pct_change% change
换手率turnover_rateTurnover rate

Date Format

  • Input: YYYYMMDD string (e.g. "20240101")
  • Output: 日期 column as string, convert with pd.to_datetime()

Symbol Format

  • A-shares: pure digits "000001" (no .SZ suffix)
  • US stocks: "105.AAPL" (NASDAQ prefix 105), "106.BABA" (NYSE prefix 106)
  • HK stocks: "00700" (5-digit zero-padded)

Built-in Loader

The project has a built-in AKShare DataLoader at backtest/loaders/akshare_loader.py. When backtesting, the runner automatically falls back to AKShare when tushare/yfinance are unavailable.

Reference Docs

For less common interfaces, see the references/ subdirectory or the official docs at https://akshare.akfamily.xyz/

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

ADR/H-share/A-share cross-listing premium analysis — track pricing gaps between US-listed ADRs, HK-listed H-shares, and A-shares for arbitrage signals, dual-listing valuation, and delisting risk assessment.

日本語の概要は準備中です。原文の説明を表示しています。

HKUDS/Vibe-Trading3.5万2026年10月12日 更新

alpha-zoo

無料

Browse and bench the bundled alpha zoos — prebuilt cross-sectional factor libraries (Kakushadze 101, GTJA 191, Qlib 158, Fama-French / Carhart). Use when the user asks "which alphas exist", wants metadata on a named alpha, or wants to run IC/IR on a whole zoo over a universe.

日本語の概要は準備中です。原文の説明を表示しています。

HKUDS/Vibe-Trading3.5万2026年10月12日 更新

A 股 ST/*ST 风险预测框架 — 基于最新中报/三季报或业绩预告/快报,预测下一财年是否会因营收、利润、净资产、分红不达标而被风险警示,并将新浪监管处罚记录作为独立证据面纳入风险等级。仅适用于 A 股,不预测财务造假。

日本語の概要は準備中です。原文の説明を表示しています。

HKUDS/Vibe-Trading3.5万2026年10月12日 更新

Asset allocation theory and optimizer usage — MPT / Black-Litterman / risk budgeting / all-weather strategy, including guides for 5 optimizers and rebalancing rules.

日本語の概要は準備中です。原文の説明を表示しています。

HKUDS/Vibe-Trading3.5万2026年10月12日 更新

Diagnose failed or underperforming backtests, locate the root cause, and fix the issue

日本語の概要は準備中です。原文の説明を表示しています。

HKUDS/Vibe-Trading3.5万2026年10月12日 更新

Behavioral finance applications: theories of overreaction and underreaction, behavioral explanations for momentum and reversal, investor sentiment cycles, cognitive-bias checklists, and debiasing quantitative strategies.

日本語の概要は準備中です。原文の説明を表示しています。

HKUDS/Vibe-Trading3.5万2026年10月12日 更新

HKUDS のスキルをすべて見る

このスキルの問題を報告する