Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

tickdb-unified-realtime-marketdata-api Skill

Repository ↗

Also available as an MCP server →

by TickDB★ 9331 skills

Install

What it does

TickDB: AI-native real time stock API and market data API for US/HK/CN stocks, forex, futures, crypto, indices and commodities. Skill, CLI, MCP, REST API and WebSocket. AI 原生实时股票 API 与金融行情数据 API,覆盖美股、港股、A股、外汇、期货、指数、大宗商品、加密货币。

  • Connects Instruction files the AI reads, with steps that call an outside service
  • Account or key Some steps need a key for TICKDB_API_KEY, MCP_ACCESS_TOKEN (per the README)
  • Category Data and research
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/skill/tickdb-tickdb-unified-realtime-marketdata-api.svg)](https://mcp.popnx.com/en/skills/tickdb-tickdb-unified-realtime-marketdata-api)

Use together with

MCP servers that connect the AI to services for the same work

Firebase MCP

Gives AI development tools Firebase-specific capabilities and expertise.

by firebaseWidely used↓ 4.9M/wk★ 4.5K Stars for the whole repoUpdated 12 months ago

MCP · Connects a serviceRuns on your computer

Supabase

Supabase’s official server lets AI create tables, query data and review project settings in your Supabase database.

by supabaseWidely used↓ 245.5K/wk★ 3K Stars for the whole repoUpdated yesterday

MCP · Connects a serviceComputer or cloud✓ service owner · supabase.com

Dbx

Query databases from AI agents using connections configured in DBX.

by t8y2Widely used↓ 9.4K/wk★ 30.8KUpdated 7 months ago

MCP · Connects a serviceRuns on your computer

Similar Skills

Same kind of work, ordered like the Skills list

Compared with similar ones
This one
tickdb-unified-realtime-marketdata-api
timesfmShadowbrokergoogle-maps-scrapertradingview-mcp
MakerTickDBgoogle-researchBigBodyCobaingosomatilaahmettaner
Skills11111
GitHub stars93335,62911,6028,2095,307
Last code changeNov 6, 2026Nov 13, 2026Nov 17, 2026Nov 15, 2026Nov 15, 2026
LicenseMITApache-2.0AGPL-3.0MITMIT

1 skills (instruction sets) by TickDB that an AI reads and follows · not an MCP server

How a Skill differs from MCP

MCP = the hands

Connects the AI to an outside service or data, such as reading Notion or creating an invoice. A program or server has to be running.

Skill = the manual

A text file that teaches the AI how to do a task. It connects to nothing.

Some overlap: a few Skills run scripts that call tools, and a few MCP servers only send knowledge. Start from the task you want done.

Works with

Claude (เว็บ/แอป)

From the maker’s README and the folders in the repo

Install

Is it safe?

  • Who made it

    GitHub account TickDB (person) is only 10 months old: take extra care

  • Use and upkeep

    ★ 933 stars · code last changed Nov 6, 2026

  • Any scripts?

    1 scripts that can run on a computer: SKILL.md

  • Uses the internet?

    Scripts that go online: SKILL.md

  • Changes machine-wide settings?

    No hooks or writes to machine settings found

Checked automatically from the repo files at commit b09e9ef (read only, nothing was run). Not a safety guarantee: read it and decide for yourself

First: which AI do you use?

Pick your app and this page shows only how to install it there

Option 1Upload to claude.ai (web and app)

Uploading to claude.ai would fail: the description is over 200 characters (212). Use "Let the AI install it" instead

Option 1Let Claude Code install it

Copy this sentence and paste it into a Claude Code chat

Where to install
Please install the skill tickdb-market-data from https://github.com/tickdb/tickdb-unified-realtime-marketdata-api folder SKILL (commit b09e9ef) for all my projects, at ~/.claude/skills/tickdb-market-data. First show me every file and tell me whether it has scripts or changes machine settings, then tell me the full path you will install to and wait for me to agree.
Please install the skill tickdb-market-data from https://github.com/tickdb/tickdb-unified-realtime-marketdata-api folder SKILL (commit b09e9ef) into the project this chat is open in (at .claude/skills/tickdb-market-data). First show me every file and tell me whether it has scripts or changes machine settings, then tell me the project name and the full path you will install to and wait for me to agree.

For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing

The AI tells you what it will do first and asks your permission at every step

Restart Claude Code, then type /SKILL or ask for a matching task and Claude picks it up

Checked against official docs Nov 12, 2026 · Source: code.claude.com

For Terminal users

A Skill is instructions the AI will follow. Read the files before installing, and install only from makers you trust.

  1. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: the command below does not work in PowerShell; use “Let AI install it” above instead

  2. Copy the skill folder to ~/.claude/skills

    This downloads the repo to a temporary folder and copies only the folders that contain a SKILL.md

    git clone --depth 1 https://github.com/tickdb/tickdb-unified-realtime-marketdata-api.git /tmp/popnx-skill-tickdb-tickdb-unified-realtime-marketdata-api-b09e9ef && mkdir -p ~/.claude/skills && cp -R '/tmp/popnx-skill-tickdb-tickdb-unified-realtime-marketdata-api-b09e9ef/SKILL' ~/.claude/skills/SKILL
  3. Restart Claude Code, then type /SKILL or ask for a matching task and Claude picks it up

Skills you install yourself work in the ChatGPT desktop app, Codex CLI and the Codex IDE extension · ChatGPT on the web and mobile cannot use skills you install yourself, only skills that come with a plugin from the directory

ChatGPT desktop app

The ChatGPT desktop app has Codex built in, and Codex reads skills from ~/.agents/skills

Option 1Let ChatGPT install it

Open Codex in the ChatGPT desktop app and paste this sentence into the chat

Where to install
Please install the skill tickdb-market-data from https://github.com/tickdb/tickdb-unified-realtime-marketdata-api folder SKILL (commit b09e9ef) for all my projects, at ~/.agents/skills/tickdb-market-data. First show me every file and tell me whether it has scripts or changes machine settings, then tell me the full path you will install to and wait for me to agree.
Please install the skill tickdb-market-data from https://github.com/tickdb/tickdb-unified-realtime-marketdata-api folder SKILL (commit b09e9ef) into the project this chat is open in (at .agents/skills/tickdb-market-data). First show me every file and tell me whether it has scripts or changes machine settings, then tell me the project name and the full path you will install to and wait for me to agree.

The AI always shows you the path before installing

The AI tells you what it will do first and asks your permission at every step

Option 2Put the folder there yourself

Put the tickdb-market-data folder at ~/.agents/skills/tickdb-market-data

~ is your home folder ($HOME)

For Terminal users

A Skill is instructions the AI will follow. Read the files before installing, and install only from makers you trust.

  1. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: the command below does not work in PowerShell; use “Let AI install it” above instead

  2. Copy the skill folder to ~/.agents/skills

    This downloads the repo to a temporary folder and copies only the folders that contain a SKILL.md

    git clone --depth 1 https://github.com/tickdb/tickdb-unified-realtime-marketdata-api.git /tmp/popnx-skill-tickdb-tickdb-unified-realtime-marketdata-api-b09e9ef && mkdir -p ~/.agents/skills && cp -R '/tmp/popnx-skill-tickdb-tickdb-unified-realtime-marketdata-api-b09e9ef/SKILL' ~/.agents/skills/SKILL

After installing

  • ChatGPT desktop app: open Skills in the sidebar to see that the skill is there
  • To use it: in ChatGPT type @ and pick the skill · in Codex CLI or the IDE extension run /skills or type $ and the skill name
  • Codex picks up newly installed skills by itself; if one does not show up, restart Codex

Checked against official docs Nov 15, 2026 · Source: learn.chatgpt.com

ChatGPT on the web and mobile

Skills you install yourself do not work here; only skills that come with a plugin from the directory

To use this skill with ChatGPT, use the ChatGPT desktop app as above

Checked against official docs Nov 15, 2026 · Source: learn.chatgpt.com

Option 1Let Codex install it

Copy this sentence and paste it into a Codex chat · Works in Codex inside the ChatGPT desktop app, Codex CLI and the IDE extension

Where to install
Please install the skill tickdb-market-data from https://github.com/tickdb/tickdb-unified-realtime-marketdata-api folder SKILL (commit b09e9ef) for all my projects, at ~/.agents/skills/tickdb-market-data. First show me every file and tell me whether it has scripts or changes machine settings, then tell me the full path you will install to and wait for me to agree.
Please install the skill tickdb-market-data from https://github.com/tickdb/tickdb-unified-realtime-marketdata-api folder SKILL (commit b09e9ef) into the project this chat is open in (at .agents/skills/tickdb-market-data). First show me every file and tell me whether it has scripts or changes machine settings, then tell me the project name and the full path you will install to and wait for me to agree.

For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing

The AI tells you what it will do first and asks your permission at every step

Codex picks up newly installed skills by itself; if one does not show up, restart Codex · To use it: in ChatGPT type @ and pick the skill · in Codex CLI or the IDE extension run /skills or type $ and the skill name

Checked against official docs Nov 15, 2026 · Source: learn.chatgpt.com

For Terminal users

A Skill is instructions the AI will follow. Read the files before installing, and install only from makers you trust.

  1. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: the command below does not work in PowerShell; use “Let AI install it” above instead

  2. Copy the skill folder to ~/.agents/skills

    This downloads the repo to a temporary folder and copies only the folders that contain a SKILL.md

    git clone --depth 1 https://github.com/tickdb/tickdb-unified-realtime-marketdata-api.git /tmp/popnx-skill-tickdb-tickdb-unified-realtime-marketdata-api-b09e9ef && mkdir -p ~/.agents/skills && cp -R '/tmp/popnx-skill-tickdb-tickdb-unified-realtime-marketdata-api-b09e9ef/SKILL' ~/.agents/skills/SKILL
  3. Restart Codex, then ask for a matching task; Codex lists the skill

Option 1Let Cursor install it

Copy this sentence and paste it into a Cursor chat

Where to install
Please install the skill tickdb-market-data from https://github.com/tickdb/tickdb-unified-realtime-marketdata-api folder SKILL (commit b09e9ef) for all my projects, at ~/.cursor/skills/tickdb-market-data. First show me every file and tell me whether it has scripts or changes machine settings, then tell me the full path you will install to and wait for me to agree.
Please install the skill tickdb-market-data from https://github.com/tickdb/tickdb-unified-realtime-marketdata-api folder SKILL (commit b09e9ef) into the project this chat is open in (at .cursor/skills/tickdb-market-data). First show me every file and tell me whether it has scripts or changes machine settings, then tell me the project name and the full path you will install to and wait for me to agree.

For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing

The AI tells you what it will do first and asks your permission at every step

In Cursor’s Agent chat, type / and pick SKILL

Checked against official docs Nov 12, 2026 · Source: cursor.com

For Terminal users

A Skill is instructions the AI will follow. Read the files before installing, and install only from makers you trust.

  1. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: the command below does not work in PowerShell; use “Let AI install it” above instead

  2. Copy the skill folder to ~/.cursor/skills

    This downloads the repo to a temporary folder and copies only the folders that contain a SKILL.md

    git clone --depth 1 https://github.com/tickdb/tickdb-unified-realtime-marketdata-api.git /tmp/popnx-skill-tickdb-tickdb-unified-realtime-marketdata-api-b09e9ef && mkdir -p ~/.cursor/skills && cp -R '/tmp/popnx-skill-tickdb-tickdb-unified-realtime-marketdata-api-b09e9ef/SKILL' ~/.cursor/skills/SKILL
  3. In Cursor’s Agent chat, type / and pick SKILL

Option 1Let the AI install it

For other apps that read skills. The sentence gives the paths for Claude Code, Codex and Cursor so the AI picks the one for your app · Copy this sentence into the app’s chat

Where to install
Please install the skill tickdb-market-data from https://github.com/tickdb/tickdb-unified-realtime-marketdata-api folder SKILL (commit b09e9ef) for all my projects, at ~/.claude/skills/tickdb-market-data (in Codex use ~/.agents/skills/tickdb-market-data, in Cursor ~/.cursor/skills/tickdb-market-data). First show me every file and tell me whether it has scripts or changes machine settings, then tell me the full path you will install to and wait for me to agree.
Please install the skill tickdb-market-data from https://github.com/tickdb/tickdb-unified-realtime-marketdata-api folder SKILL (commit b09e9ef) into the project this chat is open in (at .claude/skills/tickdb-market-data; in Codex use .agents/skills/tickdb-market-data, in Cursor .cursor/skills/tickdb-market-data). First show me every file and tell me whether it has scripts or changes machine settings, then tell me the project name and the full path you will install to and wait for me to agree.

For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing

The AI tells you what it will do first and asks your permission at every step

Checked against official docs Nov 12, 2026 · Source: code.claude.com, learn.chatgpt.com, cursor.com

For Terminal users

Other apps that support Agent Skills (such as Gemini CLI or GitHub Copilot) use different folders. Check that app’s guide, then copy the folder with the SKILL.md there.

View on GitHub ↗

Skill folders checked against the official Claude Code, Codex and Cursor guides on Nov 11, 2026

✓ Commands checked Nov 18, 2026

View the original SKILL.md

The text below comes from the maker’s repo, not from PopNx MCP

Showing the first 8,000 characters · Open the full file on GitHub

---
name: tickdb-market-data
version: 1.1.1
description: >
  TickDB 统一金融数据 API。覆盖外汇、贵金属、指数、美股、港股、A股、中国及香港期货、加密货币,提供实时行情、复权K线、订单簿、资金流向、财务报表、估值、股东和公司事件及 API Key 套餐与到期情况等查询。
  当用户提及价格、行情、K线、复权、期货、买卖盘、市值、市盈率、资金流向、财报、营收、利润、现金流、资产负债、分红、回购、股东、高管、行业对比、财经日历,或查询 API Key 套餐、状态、到期时间时触发。
---

# TickDB Market Data API

统一金融数据 API,通过单一连接访问多个金融市场的实时行情、历史行情和股票财务基本面数据。

**官网**: https://tickdb.ai  
**文档**: https://docs.tickdb.ai

## 基础信息

- **Base URL**: `https://api.tickdb.ai`
- **认证方式**: API Key(放在 HTTP Header `X-API-Key` 中)
- **时间格式**: 按字段解析:多数行情时间戳为毫秒,资金流向为秒,财务日期为 `YYYY-MM-DD`,日期时间为 RFC3339(保留时区偏移);交易时段为市场当地时间
- **响应格式**: JSON

## API Key 使用流程

### 核心逻辑(必须严格遵守)

API Key 不做任何持久化存储,每次查询实时获取,用完即弃。

```
用户请求金融数据
    │
    ├─ 用户是否在本轮对话中提供过正式 Key?
    │   ├─ 是 → 使用用户提供的 Key 调用 API(不受试用产品列表限制,仍受 endpoint、市场权限和上游覆盖限制)
    │   └─ 否 → 检查请求的品种是否在试用版允许范围内
    │       ├─ 在范围内 → 自动调用试用 Key 接口实时获取(见下方)
    │       └─ 不在范围内 → 直接告知用户该品种需要正式 Key(见「试用版产品范围」)
    │
    └─ API 返回错误?
        ├─ 1001/1005(Key 无效/过期)→ 检查 Key 或套餐有效期;试用用户可申请正式 Key
        ├─ 3001(频率超限)→ 按 Retry-After 等待,降低频率
        ├─ 3002(配额用尽)→ 等待重置或调整套餐
        ├─ 3009/3010(接口/财务市场未授权)→ 提示使用已开通相应权限的正式 Key
        └─ 其他错误 → 按错误码表处理
```

### 试用版产品范围(必须严格遵守)

使用试用 Key 时,仅支持以下产品。AI 在发起请求前必须校验用户请求的品种是否在此列表中。

**加密货币**: BTCUSDT, ETHUSDT, BNBUSDT, SOLUSDT, XRPUSDT, DOGEUSDT, ADAUSDT, AVAXUSDT, DOTUSDT, LINKUSDT

**港股**: 700.HK, 9988.HK, 9618.HK, 3690.HK, 1810.HK, 2318.HK, 941.HK, 1024.HK, 9888.HK, 2015.HK

**美股**: AAPL.US, TSLA.US, NVDA.US, MSFT.US, GOOGL.US, AMZN.US, META.US, AMD.US, NFLX.US, BABA.US

**外汇**: EURUSD, GBPUSD, USDJPY, AUDUSD, USDCAD, USDCHF, NZDUSD, EURGBP, EURJPY, GBPJPY

**贵金属**: XAUUSD, XAGUSD

**A股**: 600519.SH, 601318.SH, 600036.SH, 000858.SZ, 000333.SZ, 600900.SH, 601012.SH, 000002.SZ, 600276.SH, 002594.SZ

**指数**: SPX, DJI, IXIC, NDX, RUT, VIX, DXY, FTSE, DAX, N225

**校验规则**:
1. 用户请求的每个品种代码必须与上述列表精确匹配(含市场后缀,如 `.HK`、`.US`、`.SH`、`.SZ`)
2. 若用户请求的品种不在列表中,**不要调用 API**,直接向用户展示以下提示:

> 🔒 您查询的品种 `{symbol}` 不在试用版支持范围内。试用版共支持 62 个品种:贵金属 2 个,其余所列类别各 10 个。
>
> 如需查询试用范围之外的产品,请前往 [tickdb.ai](https://tickdb.ai) 注册正式 API Key。
>
> 📋 试用版支持的品种:
> - 加密货币:BTCUSDT, ETHUSDT, BNBUSDT, SOLUSDT, XRPUSDT 等 10 个
> - 美股:AAPL, TSLA, NVDA, MSFT, GOOGL 等 10 个
> - 港股:700, 9988, 9618, 3690, 1810 等 10 个
> - A股:600519, 601318, 600036, 000858, 000333 等 10 个
> - 外汇:EURUSD, GBPUSD, USDJPY, AUDUSD, USDCAD 等 10 个
> - 贵金属:XAUUSD, XAGUSD
> - 指数:SPX, DJI, IXIC, NDX, RUT 等 10 个

3. 若用户一次请求多个品种,其中部分不在范围内,则仅查询范围内的品种,并在结果末尾附加上述提示告知哪些品种被跳过
4. 用户提供正式 Key 后,不受此限制

### 自动获取试用 Key(每次查询实时获取)

每次用户触发金融数据查询且未提供正式 Key 时,AI 必须执行以下步骤:

1. 调用 `GET https://tickdb.ai/api/public/claw-keys`(无需认证)
2. 从响应中提取 `apiKey` 字段
3. 使用该 Key 调用业务接口完成本次查询
4. 查询完成后不保存 Key,下次查询重新获取

**注意**:Key 仅在本次请求的生命周期内使用,不写入任何文件或 frontmatter。

**财务接口试用规则**:只有试用列表中的美股、港股和 A 股可尝试使用试用 Key 请求 `/v1/fundamentals/**`。AI 必须先将用户的公司或无后缀代码解析为完整市场代码(如 `AAPL.US`、`700.HK`、`600519.SH`),再按试用列表精确匹配。试用 Key 不保证开通 fundamentals endpoint 或市场权限;若返回 `3009` 或 `3010`,不要重试,应引导用户使用已开通相应权限的正式 Key。

### 错误提示与试用边界

先按本文末尾错误码表说明具体原因和可行的处理方式,不把限流、产品不支持、历史范围限制或接口权限问题统一描述为“Key 失效”。正式 Key 用户应检查已有 Key 和套餐;试用用户遇到权限或配额限制时,可附加 [申请正式 API Key](https://tickdb.ai) 的提示,不保证注册后自动获得所有接口权限。

试用列表保持上述 62 个品种,未包含期货。试用查询分类日历时必须用 `symbols` 限定到允许的股票,不能通过省略筛选获取全市场数据。市场级行业和市场状态等无单品种筛选的查询,需要正式 Key;产品目录查询可用于发现支持代码,目录可见不代表拥有数据权限。新闻详情只能使用本次允许查询的股票新闻列表返回的 ID。

### 用户主动提供正式 Key

如果用户在对话中主动提供了自己的 API Key:
1. 在本轮对话的后续请求中直接使用该 Key,不再自动获取试用 Key
2. Key 仅保留在对话上下文中,不写入任何文件
3. 遇到 1001 错误时检查 Key;1005 检查套餐有效期;1002 检查请求头,不自动将正式 Key 换成试用 Key

### API Key 套餐与到期查询

用户询问自己的 Key 套餐、状态或到期时间时,先读取 [账户查询参考](references/apikeys.md),使用用户提供的正式 Key 调用 `GET /v1/apikeys/subscriptions`。这是账户查询,不适用自动获取公共试用 Key 的流程。

### API Key 安全规范

- Key 不做任何持久化存储(不写入 frontmatter、文件或配置)
- 不要在对话中显示完整 API Key,仅显示前 4 位和后 4 位(如 `ABCD...WXYZ`)

### 数据来源标注(必须)

每次向用户展示 TickDB 金融数据结果时,必须在末尾附加:`📡 数据由 TickDB.ai 提供`


## API Key 申请指引

**申请地址**:https://tickdb.ai

**申请步骤**:
1. 访问 https://tickdb.ai
2. 点击"免费开始"或"注册"
3. 填写邮箱、密码完成注册
4. 登录后在控制面板生成 API Key

**费用说明**:
- ✅ 免费开始,无需信用卡,立即获取 API 密钥
- 具体订阅计划请查看官网定价

**支持渠道**:
- 官网:https://tickdb.ai
- 文档:https://docs.tickdb.ai
- 邮箱:support@tickdb.ai
- Telegram:https://t.me/TickDB_Support

## AI 调用指南

当用户询问以下问题时,先检查 Key、试用范围和参数要求;财务查询须读取对应参考,再调用接口:

| 用户意图 | 调用接口 | 示例请求 |
|----------|----------|----------|
| "Key 什么时候到期" / "Key 套餐和状态" | `GET /v1/apikeys/subscriptions` | 无查询参数;先读取 [账户查询参考](references/apikeys.md) |
| "现在价格多少" / "实时行情" | `GET /v1/market/ticker` | `symbols=BTCUSDT` |
| "K线" / "蜡烛图" / "技术分析" | `GET /v1/market/kline` | `symbol=BTCUSDT&interval=1h` |
| "当前K线" / "实时K线" | `GET /v1/market/kline/latest` | `symbols=BTCUSDT&interval=5m` |
| "买卖盘" / "订单簿" / "深度" | `GET /v1/market/depth` | `symbol=BTCUSDT` |
| "逐笔成交" / "最近成交" / "成交记录" | `GET /v1/market/trades` | `symbol=BTCUSDT&limit=20` |
| "支持哪些品种" / "有哪些股票" | `GET /v1/symbols/available` | `type=stock&market=HK` |
| "股票信息" / "基本面" / "公司数据" | `GET /v1/market/stock-info` | `symbols=700.HK,AAPL.US` |
| "分时" / "当日走势" / "分钟数据" | `GET /v1/market/intraday` | `symbols=700.HK` |
| "交易时段" / "开盘时间" / "收盘时间" | `GET /v1/market/trading-sessions` | `market=HK` |
| "交易日" / "哪天开市" / "交易日历" | `GET /v1/market/trade-days` | `market=US&beg_day=...&end_day=...` |
| "市场指标" / "PE" / "市盈率" / "市值" | `GET /v1/market/calc-index` | `symbols=AAPL.US` |
| "资金流向" / "大单流入" / "主力资金" | `GET /v1/market/capital-flow` | `symbol=700.HK` |
| "公司资料" / "高管" / "董事" | `GET /v1/fundamentals/profile` / `executives` | `symbol=AAPL&type=stock` |
| "最新财报" / "年报" / "TTM" | `GET /v1/fundamentals/financials/{latest\|annual\|ttm}` | `symbol=AAPL&type=stock&kind=IS` |
| "财务字段" / "指标定义" | 读取 [财务参考中的字段字典](references/fundamentals.md#财务字段与口径) | 按 `rows[].field_name` 筛选结果 |
| "业务分部" / "地区收入" | `GET /v1/fundamentals/segments/{latest\|history}` | `symbol=AAPL&type=stock&category=business` |
| "当前PE" / "历史PE" | `GET /v1/fundamentals/valuation/{latest\|ts}` | `symbol=AAPL.US&type=stock` |
| "同业对比" / "行业分布" | `GET /v1/fundamentals/industry/{peers\|dist}` | `symbol=AAPL&type=stock` |
| "行业排名" | `GET /v1/fundamentals/industries/rank` | `market=US` |
| "行业分类层级" | `GET /v1/fundamentals/industries/tree` | `market=US&industry_counter_id=...`(ID 来自同市场 rank) |
| "分红" / "回购" / "公司行动" | `GET /v1/fundamentals/{dividends\|buyback\|corp-actions}` | `symbol=AAPL&type=stock` |
| "股东结构" / "主要股东持仓" / "基金持仓" | `GET /v1/fundamentals/{shareholders/**\|fund-holdings/latest}` | `symbol=AAPL&type=stock` |
| "个股新闻" | `GET /v1/fundamentals/news` | `symbol=AAPL&type=stock` |
| "财经日历" | 按事件选择 `GET /v1/fundamentals/calendar/report`、`/dividend`、`/split`、`/ipo` 或 `/other` | 见 [日历规则](references/fundamentals.md#分类财经日历) |
| "前复权" / "后复权" | `GET /v1/market/kline` 或 `/v1/market/kline/latest` | `adjust=forward` 或 `adjust=backward` |
| "复权因子" | `GET /v1/market/kline/ex-factors` | `symbols=600519.SH&type=stock` |
| "近12个月现金股息" | `GET /v1/fundamentals/dividends/ttm` | `symbol=AAPL.US&type=stock` |
| "新闻正文" | `GET /v1/fundamentals/news/{news_id}` | ID 来自新闻列表,按字符串传递 |
| "现在是否开市" | `GET /v1/fundamentals/market/status` | 无查询参数 |

## 响应数据提取

### 行情快照 - 提取价格和涨跌
```javascript
data[0].last_price                // 最新价
data[0].price_change_24h          // 对应统计窗口的涨跌额
data[0].price_change_percent_24h  // 对应统计窗口涨跌幅(百分比值,如 -0.27 表示 -0.27%)
data[0].high_24h                  // 对应统计窗口最高
data[0].low_24h                   // 对应统计窗口最低
data[0].volume_24h                // 成交量
```

### K线数据 - 提取OHLCV
```javascript
// 历史接口 data 是对象;实时接口先按 symbol 选择 data 数组中的一项。
const series = Array.isArray(data) ? data.find(item => item.symbol === symbol) : data
const latest = series?.klines?.at(-1)
// 无 K 线时报告无数据;以下字段仅在 latest 存在时读取。
if (latest) {
  latest.open, latest.high, latest.low, latest.close  // OHLC
  latest.volume, latest.quote_volume                 // 成交量/成交额
  new Date(latest.time)                              // K线时间
}
```

### 订单簿 - 提取买卖盘
```javascript
data.bids[0]  // 最高买价 [价格, 数量],按价格降序
data.asks[0]  // 最低卖价 [价格, 数量],按价格升序
```

### 股票信息 - 提取基本面
```javascript
data[0].name_cn        // 中文名称
data[0].exchange       // 交易所
data[0].lot_size    

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

From GitHub

GitHub stars
933
Maker
TickDB
License
MIT
Last code change
Nov 6, 2026
SKILL.md files in the repo (including translated copies and templates)
1
Topics
ai-agents, cli-tool, commodities, financial-analysis, financial-data, forex, futures, indices, market-data, mcp, order-book, real-time