akshare

Retrieve free historical OHLCV and quote data across global markets.

Updated May 5, 2026
One-click install
npx skills add https://github.com/wudye/traderAssistHK --skill akshare-wudye
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: akshare
Source: https://github.com/wudye/traderAssistHK/tree/main/backend/src/skills/akshare
Command: npx skills add https://github.com/wudye/traderAssistHK --skill akshare-wudye

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Traders and researchers need consistent historical and real-time market data across A-shares, US, HK, futures, macro, and forex, but paid APIs or brittle providers can break workflows or slow experimentation.

Core Features & Use Cases

  • Broad market coverage: Pulls OHLCV and quote data for A-shares, US stocks, and HK stocks, plus macro indicators, forex rates, and futures quotes.
  • No API key required: Uses a free, open-source data library that aggregates from public sources (e.g., Sina, East Money).
  • Backtest-friendly fallback: Provides a primary fallback in the project’s loader when tushare/yfinance are unavailable.

Use case: You want to backtest a strategy on an HK stock and need daily OHLCV with a specific adjustment mode; use AKShare to retrieve the dataset and feed it into the backtesting pipeline.

Quick Start

Ask the system to load AKShare data for an HK stock’s daily OHLCV between two dates with a chosen adjustment (e.g., qfq) so you can run your backtest.

Frequently Asked Questions about akshare

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch free historical OHLCV data for backtesting A-shares and US stocks without an API key?

You can fetch free historical OHLCV data for backtesting A-shares and US stocks without an API key by using a data library that aggregates public financial sources like Sina and East Money, requiring no paid subscriptions.

What is the best way to get market data when tushare or yfinance fails?

The best way to get market data when tushare or yfinance fails is using a backtest-friendly fallback data source that retrieves historical quotes across A-shares, US, and HK markets without needing API keys.

How do I format stock symbols and dates for historical market data queries?

Format stock symbols and dates for historical market data queries by using digits for A-shares, prefixes like 105.AAPL or 106.BABA for US stocks, zero-padded codes for HK stocks, and YYYYMMDD inputs for date ranges.

Can I retrieve backtesting data for futures, forex, and macro indicators without paid APIs?

Yes, you can retrieve backtesting data for futures, forex, and macro indicators without paid APIs by using an open-source data library that aggregates broad market coverage from publicly available financial sources.

Does AKShare support specific adjustment modes like qfq for backtesting pipelines?

AKShare does support specific adjustment modes like qfq for backtesting pipelines, allowing you to retrieve daily OHLCV datasets with a chosen adjustment method to feed directly into your trading strategy analysis.