# simonlin1212/a-stock-data architecture

> Architecture diagram of the GitHub repository simonlin1212/a-stock-data, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/simonlin1212/a-stock-data
- Repository: https://github.com/simonlin1212/a-stock-data

## Overview

a-stock-data is a self-contained Markdown skill with embedded Python that exposes A-share and related-market data capabilities to AI coding assistants. The documented user workflow is to install or inject SKILL.md into an assistant, request a data capability, and receive normalized data from the relevant market-data source. The tree contains no runtime source files, so this map uses the documented SKILL.md entry point and README capability descriptions; internal implementation calls and most source-specific links cannot be verified.

Main entry points: [`SKILL.md`](https://github.com/simonlin1212/a-stock-data/blob/main/SKILL.md) (Embedded Python skill)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Assistant access"]
  node_skill["Embedded Python skill<br/>[SKILL.md]"]
end

subgraph group_equities["Equity data"]
  node_quote["Quotes and charts<br/>[SKILL.md]"]
  node_signals["Signals and trading<br/>[SKILL.md]"]
  node_fundamentals["Financial fundamentals<br/>[SKILL.md]"]
end

subgraph group_research["Research data"]
  node_reports["Reports and forecasts<br/>[SKILL.md]"]
  node_news["News and announcements<br/>[SKILL.md]"]
  node_sentiment["Investor interaction<br/>[SKILL.md]"]
end

subgraph group_markets["Market extensions"]
  node_macro["Macro and rates<br/>[SKILL.md]"]
  node_indices["Indices and calendar<br/>[SKILL.md]"]
  node_derivatives["Futures and options<br/>[SKILL.md]"]
  node_events["Events and convertibles<br/>[SKILL.md]"]
end

node_user(("AI assistant user"))
node_sources[("34 external data sources")]
node_result["Returned market data"]

node_user -->|"requests data"| node_skill
node_skill -->|"offers capability"| node_quote
node_skill -->|"offers capability"| node_signals
node_skill -->|"offers capability"| node_fundamentals
node_skill -->|"offers capability"| node_reports
node_skill -->|"offers capability"| node_news
node_skill -->|"offers capability"| node_sentiment
node_skill -->|"offers capability"| node_macro
node_skill -->|"offers capability"| node_indices
node_skill -->|"offers capability"| node_derivatives
node_skill -->|"offers capability"| node_events
node_quote -->|"retrieves from"| node_sources
node_signals -->|"retrieves from"| node_sources
node_fundamentals -->|"retrieves from"| node_sources
node_reports -->|"retrieves from"| node_sources
node_news -->|"retrieves from"| node_sources
node_sentiment -->|"retrieves from"| node_sources
node_macro -->|"retrieves from"| node_sources
node_indices -->|"retrieves from"| node_sources
node_derivatives -->|"retrieves from"| node_sources
node_events -->|"retrieves from"| node_sources
node_skill -->|"returns data"| node_result

click node_skill "https://github.com/simonlin1212/a-stock-data/blob/main/SKILL.md"
click node_quote "https://github.com/simonlin1212/a-stock-data/blob/main/SKILL.md"
click node_signals "https://github.com/simonlin1212/a-stock-data/blob/main/SKILL.md"
click node_fundamentals "https://github.com/simonlin1212/a-stock-data/blob/main/SKILL.md"
click node_reports "https://github.com/simonlin1212/a-stock-data/blob/main/SKILL.md"
click node_news "https://github.com/simonlin1212/a-stock-data/blob/main/SKILL.md"
click node_sentiment "https://github.com/simonlin1212/a-stock-data/blob/main/SKILL.md"
click node_macro "https://github.com/simonlin1212/a-stock-data/blob/main/SKILL.md"
click node_indices "https://github.com/simonlin1212/a-stock-data/blob/main/SKILL.md"
click node_derivatives "https://github.com/simonlin1212/a-stock-data/blob/main/SKILL.md"
click node_events "https://github.com/simonlin1212/a-stock-data/blob/main/SKILL.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_skill,node_user toneBlue
class node_quote,node_signals,node_fundamentals,node_sources toneAmber
class node_reports,node_news,node_sentiment toneMint
class node_macro,node_indices,node_derivatives,node_events toneRose
class node_result toneIndigo
```

## Components

### Assistant access

- [Embedded Python skill](https://github.com/simonlin1212/a-stock-data/blob/main/SKILL.md): `SKILL.md`

### Equity data

- [Quotes and charts](https://github.com/simonlin1212/a-stock-data/blob/main/SKILL.md): `SKILL.md`
- [Signals and trading](https://github.com/simonlin1212/a-stock-data/blob/main/SKILL.md): `SKILL.md`
- [Financial fundamentals](https://github.com/simonlin1212/a-stock-data/blob/main/SKILL.md): `SKILL.md`

### Research data

- [Reports and forecasts](https://github.com/simonlin1212/a-stock-data/blob/main/SKILL.md): `SKILL.md`
- [News and announcements](https://github.com/simonlin1212/a-stock-data/blob/main/SKILL.md): `SKILL.md`
- [Investor interaction](https://github.com/simonlin1212/a-stock-data/blob/main/SKILL.md): `SKILL.md`

### Market extensions

- [Macro and rates](https://github.com/simonlin1212/a-stock-data/blob/main/SKILL.md): `SKILL.md`
- [Indices and calendar](https://github.com/simonlin1212/a-stock-data/blob/main/SKILL.md): `SKILL.md`
- [Futures and options](https://github.com/simonlin1212/a-stock-data/blob/main/SKILL.md): `SKILL.md`
- [Events and convertibles](https://github.com/simonlin1212/a-stock-data/blob/main/SKILL.md): `SKILL.md`

### Other components

- **AI assistant user**
- **34 external data sources**
- **Returned market data**

## Connections

- AI assistant user → Embedded Python skill: requests data (evidence: `README.md`)
- Embedded Python skill → Quotes and charts: offers capability (evidence: `README.md`)
- Embedded Python skill → Signals and trading: offers capability (evidence: `README.md`)
- Embedded Python skill → Financial fundamentals: offers capability (evidence: `README.md`)
- Embedded Python skill → Reports and forecasts: offers capability (evidence: `README.md`)
- Embedded Python skill → News and announcements: offers capability (evidence: `README.md`)
- Embedded Python skill → Investor interaction: offers capability (evidence: `README.md`)
- Embedded Python skill → Macro and rates: offers capability (evidence: `README.md`)
- Embedded Python skill → Indices and calendar: offers capability (evidence: `README.md`)
- Embedded Python skill → Futures and options: offers capability (evidence: `README.md`)
- Embedded Python skill → Events and convertibles: offers capability (evidence: `README.md`)
- Quotes and charts → 34 external data sources: retrieves from (evidence: `README.md`)
- Signals and trading → 34 external data sources: retrieves from (evidence: `README.md`)
- Financial fundamentals → 34 external data sources: retrieves from (evidence: `README.md`)
- Reports and forecasts → 34 external data sources: retrieves from (evidence: `README.md`)
- News and announcements → 34 external data sources: retrieves from (evidence: `README.md`)
- Investor interaction → 34 external data sources: retrieves from (evidence: `README.md`)
- Macro and rates → 34 external data sources: retrieves from (evidence: `README.md`)
- Indices and calendar → 34 external data sources: retrieves from (evidence: `README.md`)
- Futures and options → 34 external data sources: retrieves from (evidence: `README.md`)
- Events and convertibles → 34 external data sources: retrieves from (evidence: `README.md`)
- Embedded Python skill → Returned market data: returns data (evidence: `README.md`)
