whatisgithub

What is a-stock-data?

simonlin1212/a-stock-data — explained in plain English

Analysis updated 2026-05-18

1,091Audience · developerComplexity · 3/5Setup · moderate

In one sentence

A Python toolkit that lets AI coding assistants answer questions about Chinese A-share stock data through one bundled Skill file.

Mindmap

mindmap
  root((a-stock-data))
    What it does
      A-share stock data
      AI assistant Skill file
    Tech stack
      Python
    Use cases
      Stock price lookup
      Financial statement queries
    Audience
      Developers
      AI assistant users

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Ask an AI assistant for a stock's PE ratio or price data directly in chat

USE CASE 2

Query which stocks are attracting the most northbound capital today

USE CASE 3

Pull financial statements, analyst reports, or regulatory announcements for A-share companies

USE CASE 4

Add real-time A-share data access to any AI assistant that supports context injection

What is it built with?

Python

How does it compare?

simonlin1212/a-stock-datagudong2003/xianyu-auto-reply-fixn8n-io/n8n-nodes-starter
Stars1,0911,0841,100
LanguagePythonTypeScript
Setup difficultymoderatemoderatemoderate
Complexity3/53/53/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Connects directly to multiple Chinese financial data provider APIs, each with its own authentication quirks.

So what is it?

a-stock-data is a data toolkit designed to help AI coding assistants (like Claude Code or Codex) answer questions about Chinese A-share stocks, the stocks listed on mainland China's Shanghai and Shenzhen exchanges. The challenge it solves is that raw data for Chinese stocks is scattered across more than a dozen different sources, each with its own authentication quirks, header requirements, and API formats. This toolkit bundles all of that into a single "Skill" file, which is a structured document containing instructions plus embedded Python code that an AI assistant can read and use directly. Once set up, you can ask your AI assistant plain questions like "what is the PE ratio of stock 688017" or "which stocks are attracting the most northbound capital today" (northbound capital refers to money flowing from Hong Kong into mainland Chinese markets through cross-border trading programs), and the assistant knows how to fetch and return the data. The toolkit covers 28 data endpoints across 7 layers: real-time price and candlestick charts, analyst research reports, sector and theme signals, margin trading and block trade data, company news, financial statements, and regulatory announcements. The project is a self-contained Python toolkit requiring no third-party data wrapper libraries, it connects directly to the underlying HTTP APIs of Chinese financial data providers. It is compatible with any AI coding assistant that supports context injection, not just one specific tool. The full README is longer than what was provided.

Copy-paste prompts

Prompt 1
How do I load the a-stock-data Skill file into my AI coding assistant?
Prompt 2
How do I ask my assistant for the PE ratio of a specific A-share stock using this toolkit?
Prompt 3
Which of the 28 data endpoints does a-stock-data support for financial statements?

Frequently asked questions

What is a-stock-data?

A Python toolkit that lets AI coding assistants answer questions about Chinese A-share stock data through one bundled Skill file.

How hard is a-stock-data to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is a-stock-data for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.