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
endpointandapiKeyfromdatatk-quote-skill/env.json. request.mjs --bodymust 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
endpointandapiKeyfrom the dataTrack service page. - Configure
endpointandapiKeyindatatk-quote-skill/env.json. - If you are unsure about parameter values, market codes, or error codes, read
references/reference.mdfirst. If you are unsure about response fields, readreferences/response.md.