Skip to content
Agentmart
Submit a tool

market-data

Fetches and processes real-time and historical stock market data from TDX protocol servers.

Skill by LisonEvf

IndexedMIT★ 2
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/lisonevf-market-data

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Fetches and processes real-time and historical stock market data from TDX protocol servers. Provides K-line data at multiple intervals, real-time quotes, and market overviews. Trigger when the user requests stock prices, market data, or financial instrument data.

Use cases: data, finance

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/market-data

What's inside

Skill name
market-data
Description
Fetches and processes real-time and historical stock market data from TDX protocol servers. Provides K-line data at multiple intervals, real-time quotes, and market overviews. Trigger when the user requests stock prices, market data, or financial instrument data.
License
MIT
Instructions
39 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Market Data

Fetches stock market data from TDX (通达信) protocol servers.

## Real Code Reference

- `tradinglearn/pytdx2/client/quotationClient.py` — `QuotationClient` with `get_KLine_data()`, `get_security_quotes()`, etc.
- `tradinglearn/pytdx2/client/baseStockClient.py` — `BaseStockClient` socket layer with auto-retry
- `tradinglearn/pytdx2/const.py` — `MARKET`, `CATEGORY`, `PERIOD` enums, 43+ server hosts

## Capabilities

- **Real-time quotes**: `get_security_quotes()` / `get_security_quotes_details()` (with 5-level depth)
- **K-line (OHLCV) data**: `get_KLine_data(market, code, period, start, count)` — 1min to yearly
- **Market categories**: Shanghai A, Shenzhen A, Growth Enterprise, Beijing A; futures, options, HK stocks
- **Market overview**: `get_top_stock_board(category)` — top gainers/losers/amplitude, `get_index_info()`

## Typical Workflow

```python
from pytdx2.client.quotationClient import QuotationClient
from pytdx2.const import MARKET, PERIOD

client = QuotationClient()
client.connect().login()
# Daily K-line for 平安银行
klines = client.get_KLine_data(MARKET.SZ, "000001", PERIOD.DAY, start=0, count=800)
# Real-time quotes for a batch
quotes = client.get_security_quotes(["000001", "000002"])
client.disconnect()
```

## Notes

- K-line prices divided by 1000; quote prices divided by 100
- Always call `client.disconnect()` — sockets leak otherwise
- `data_fetcher.py` wraps this with retry logic and DataFrame normalization

From LisonEvf/finance-skills, MIT.

More from LisonEvf/finance-skills

Signals

Stars
2
Forks
1
Open issues
0
Last commit (this folder)
May 15, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from LisonEvf

Cite this page

market-data skill. Agent Mart. https://agentmart.dev/skills/lisonevf-market-data (last updated 2026-10-24)