datatk-quote
v1.0.1Real-time stock market data via QuoteNode API. Query quotes, K-lines, tick trades, Level-2 depth, and trading calendars for US/HK/CN markets.
Installation
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-KEYheader 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
- Start with
references/openapi.mdto choose the endpoint and request parameters. - If you need market codes, enum values, adjustment types, or error codes, read
references/reference.md. - If you need response structure or field meanings, read
references/response.md. - 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.