Use this skill for QuoteNode REST market-data integration. WebSocket is out of scope.
X-API-KEY header and send JSON request bodies.
ak, endpoint, market, permission, and rate-limit handling.
For background, read:
references/architecture.md
# 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"}'
references/openapi.md to choose the endpoint and request parameters.
references/reference.md.
references/response.md.
references/architecture.md.
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.
共 1 个版本