π¦ ClawHub
Global Market Feed
by @fengxiaozi-liu
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.
TERMINAL
clawhub install datatk-quoteπ About This Skill
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
X-API-KEY header and send JSON request bodies.ak, endpoint, market, permission, and rate-limit handling.For background, read:
references/architecture.mdQuick Start
# copy example env file, then edit env.json to add your endpoint and apiKey
cp {baseDir}/env.json.example {baseDir}/env.jsontest 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:
endpoint and apiKey from datatk-quote-skill/env.json.request.mjs --body must be valid JSON.200, it prints the status code and response body.endpoint and apiKey from the dataTrack service page.endpoint and apiKey in datatk-quote-skill/env.json.references/reference.md first. If you are unsure about response fields, read references/response.md.π‘ Examples
# copy example env file, then edit env.json to add your endpoint and apiKey
cp {baseDir}/env.json.example {baseDir}/env.jsontest with a sample request
node {baseDir}/scripts/request.mjs --path /Api/V1/Quotation/Detail --body '{"instrument":"US|AAPL","lang":"en"}'