原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。使用 Google 登录即可撰写评价。原型 · 每 30 分钟更新
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

tickdb-unified-realtime-marketdata-api Skill

代码仓库 ↗

同一项目也有 MCP 版本 →

作者:TickDB★ 9331 个 skill

安装

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 数据与研究
给作者:在 README 中加徽章

如果你是作者,可把这段代码贴到 README。徽章会链接回本页。

[![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)

可搭配使用

在同一工作中把 AI 连到服务的 MCP

Firebase MCP

Gives AI development tools Firebase-specific capabilities and expertise.

作者:firebase广泛使用↓ 490.6万/周★ 4489 整个仓库的星标12个月前更新

MCP · 连接服务在你的电脑上运行✓ Brand-named GitHub · github.com/firebase

Supabase

MCP server for interacting with the Supabase platform

作者:supabase广泛使用↓ 24.6万/周★ 3018 整个仓库的星标昨天更新

MCP · 连接服务电脑或云端✓ 服务方 · supabase.com

Dbx

Query databases from AI agents using connections configured in DBX.

作者:t8y2广泛使用↓ 9446/周★ 3.1万7个月前更新

MCP · 连接服务在你的电脑上运行

相似的 Skill

同类工作,排序与 Skill 列表相同

与相似项目对比
本项
tickdb-unified-realtime-marketdata-api
timesfmShadowbrokergoogle-maps-scrapertradingview-mcp
作者TickDBgoogle-researchBigBodyCobaingosomatilaahmettaner
Skill 数11111
GitHub 星标93335,62911,6028,2095,307
最近代码更新2026年11月6日2026年11月13日2026年11月17日2026年11月15日2026年11月15日
许可证MITApache-2.0AGPL-3.0MITMIT

TickDB 提供的 1 个 Skill(指令集),AI 读取后照做 · 不是 MCP server

Skill 和 MCP 有什么不同

MCP = 手

把 AI 连到外部服务或数据,例如读取 Notion 或开发票。需要有程序或服务器在运行。

Skill = 手册

教 AI 怎么做某项工作的文本文件,不连接任何服务。

有些会重叠:少数 Skill 带有调用工具的脚本,少数 MCP 只提供知识。请从你想完成的工作出发。

适用的应用

Claude (เว็บ/แอป)

依据开发者 README 和 repo 中的文件夹

安装

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 2026年11月6日

  • 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

第一步:你用哪个 AI?

选择你用的应用,本页只显示该应用的安装方法

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 1让 Claude Code 帮你安装

复制这句话,粘贴到 Claude Code 的对话中

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

重新打开 Claude Code,输入 /SKILL,或直接提出相关任务,Claude 会自动选用

Checked against official docs 2026年11月12日 · Source: code.claude.com

For Terminal users

Skill 是 AI 会照做的指令。安装前先阅读文件,只安装可信开发者的 Skill。

  1. 打开终端

    Mac:按 Command+空格输入 Terminal · Windows:下方命令在 PowerShell 中无法使用,请改用上方的“让 AI 帮你安装”

  2. 把 skill 文件夹复制到 ~/.claude/skills

    这条命令把 repo 下载到临时文件夹,只复制含 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. 重新打开 Claude Code,输入 /SKILL,或直接提出相关任务,Claude 会自动选用

自己安装的 Skill 可用于 ChatGPT 桌面应用、Codex CLI 和 IDE 中的 Codex 扩展 · 网页版和手机版 ChatGPT 不能使用自己安装的 Skill,只能使用目录中插件自带的 Skill

ChatGPT 桌面应用

ChatGPT 桌面应用内置 Codex,Codex 从 ~/.agents/skills 文件夹读取 Skill

Option 1让 ChatGPT 帮你安装

在 ChatGPT 桌面应用中打开 Codex,把这句话粘贴到对话中

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 2自己放入文件夹

把 tickdb-market-data 文件夹放到 ~/.agents/skills/tickdb-market-data

~ 是你的主文件夹($HOME)

For Terminal users

Skill 是 AI 会照做的指令。安装前先阅读文件,只安装可信开发者的 Skill。

  1. 打开终端

    Mac:按 Command+空格输入 Terminal · Windows:下方命令在 PowerShell 中无法使用,请改用上方的“让 AI 帮你安装”

  2. 把 skill 文件夹复制到 ~/.agents/skills

    这条命令把 repo 下载到临时文件夹,只复制含 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

安装之后

  • ChatGPT 桌面应用:打开侧边栏中的 Skills,确认 Skill 已出现
  • 使用方法:在 ChatGPT 中输入 @ 并选择 Skill · 在 Codex CLI 或 IDE 扩展中运行 /skills,或输入 $ 加 Skill 名称
  • Codex 会自动发现新安装的 Skill;如果没有出现,请重启 Codex

Checked against official docs 2026年11月15日 · Source: learn.chatgpt.com

网页版和手机版 ChatGPT

不能使用你自己安装的 Skill,只能使用目录中插件自带的 Skill

想在 ChatGPT 中使用这个 Skill,请按上面的方法使用 ChatGPT 桌面应用

Checked against official docs 2026年11月15日 · Source: learn.chatgpt.com

Option 1让 Codex 帮你安装

复制这句话,粘贴到 Codex 的对话中 · 适用于 ChatGPT 桌面应用中的 Codex、Codex CLI 和 IDE 扩展

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 会自动发现新安装的 Skill;如果没有出现,请重启 Codex · 使用方法:在 ChatGPT 中输入 @ 并选择 Skill · 在 Codex CLI 或 IDE 扩展中运行 /skills,或输入 $ 加 Skill 名称

Checked against official docs 2026年11月15日 · Source: learn.chatgpt.com

For Terminal users

Skill 是 AI 会照做的指令。安装前先阅读文件,只安装可信开发者的 Skill。

  1. 打开终端

    Mac:按 Command+空格输入 Terminal · Windows:下方命令在 PowerShell 中无法使用,请改用上方的“让 AI 帮你安装”

  2. 把 skill 文件夹复制到 ~/.agents/skills

    这条命令把 repo 下载到临时文件夹,只复制含 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. 重新打开 Codex 并提出相关任务,Codex 会列出这个 skill

Option 1让 Cursor 帮你安装

复制这句话,粘贴到 Cursor 的对话中

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

在 Cursor 的 Agent 聊天中输入 / 并选择 SKILL

Checked against official docs 2026年11月12日 · Source: cursor.com

For Terminal users

Skill 是 AI 会照做的指令。安装前先阅读文件,只安装可信开发者的 Skill。

  1. 打开终端

    Mac:按 Command+空格输入 Terminal · Windows:下方命令在 PowerShell 中无法使用,请改用上方的“让 AI 帮你安装”

  2. 把 skill 文件夹复制到 ~/.cursor/skills

    这条命令把 repo 下载到临时文件夹,只复制含 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. 在 Cursor 的 Agent 聊天中输入 / 并选择 SKILL

Option 1Let the AI install it

适用于其他能读取 Skill 的应用。这句话列出了 Claude Code、Codex 和 Cursor 的路径,AI 会按你的应用选择 · 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 2026年11月12日 · Source: code.claude.com, learn.chatgpt.com, cursor.com

For Terminal users

其他支持 Agent Skills 的应用(如 Gemini CLI、GitHub Copilot)使用不同文件夹,请查看该应用的指南,再把含 SKILL.md 的文件夹复制过去。

在 GitHub 上查看 ↗

已于 2026年11月11日 对照 Claude Code、Codex 和 Cursor 官方指南核实 skill 文件夹

✓ 命令已检查 2026年11月18日

查看原始 SKILL.md

以下文字来自开发者的 repo,不是 PopNx MCP 的指令

显示前 8,000 个字符 · 在 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    

讨论

提问、分享技巧或报告无法使用。按“有帮助”数量排序。

还没有帖子,欢迎第一个提问或分享。

此处内容由用户撰写,不代表 PopNx 团队。

登录后发帖

来自 GitHub

GitHub 星标
933
开发者
TickDB
许可证
MIT
最近代码更新
2026年11月6日
repo 中的 SKILL.md 文件(含译本和模板)
1
主题
ai-agents, cli-tool, commodities, financial-analysis, financial-data, forex, futures, indices, market-data, mcp, order-book, real-time