360 Secure SkillHub
360 安全技能中心

Global Market Feed

该 Skill 通过 QuoteNode REST 接口查询美国、香港和中国市场的实时行情、K 线、逐笔成交、Level-2 深度及交易日历;使用 X-API-KEY 认证,并提供通用 POST 请求脚本与接口、字段、错误码参考文档。WebSocket 不在范围内。

fengxiaozi-liu
fengxiaozi-liu
热度 55.63
最近更新 2026-05-11 17:30:24
分类:数据依赖:第三方 API / 代码执行 / 读写文件应用场景:财务 / 市场分析 / API 集成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add datatk-quote
Metadata
name
datatk-quote-skill
description
Real-time stock market data via QuoteNode API. Query quotes, K-lines, tick trades, Level-2 depth, and trading calendars for US/HK/CN markets.

QuoteNode REST

Use this skill for QuoteNode REST market-data integration. WebSocket is out of scope.

Project Overview

  • QuoteNode is a market-data aggregation service that exposes a unified REST OpenAPI surface to downstream callers.
  • Downstream clients authenticate with the X-API-KEY header and send JSON request bodies.
  • The REST path is handled by OpenAPI authorization middleware, which centralizes ak, endpoint, market, permission, and rate-limit handling.

For background, read:

  • references/architecture.md

Quick Start

# copy example env file, then edit env.json to add your endpoint and apiKey
cp {baseDir}/env.json.example {baseDir}/env.json

# test with a sample request
node {baseDir}/scripts/request.mjs --path /Api/V1/Quotation/Detail --body '{"instrument":"US|AAPL","lang":"en"}'

Workflow

  1. Start with references/openapi.md to choose the endpoint and request parameters.
  2. If you need market codes, enum values, adjustment types, or error codes, read references/reference.md.
  3. If you need response structure or field meanings, read references/response.md.
  4. If you need the architectural position of the REST layer in this project, read references/architecture.md.

Script

  • scripts/request.mjs: generic POST caller for any REST endpoint.

Notes:

  • All requests read endpoint and apiKey from datatk-quote-skill/env.json.
  • request.mjs --body must be valid JSON.
  • The script prints the raw JSON response by default. If the HTTP status is not 200, it prints the status code and response body.
  • Get endpoint and apiKey from the dataTrack service page.
  • Configure endpoint and apiKey in datatk-quote-skill/env.json.
  • If you are unsure about parameter values, market codes, or error codes, read references/reference.md first. If you are unsure about response fields, read references/response.md.