How redbtc/node-red-contrib-kraken works
This package provides Node-RED nodes for making Kraken API requests. A flow supplies a method and payload to the API node; the node uses a configured client, which sends the request and returns the result in the message payload. Users configure API credentials in the editor, and the runtime creates a Kraken client from them. The sampled runtime shows method dispatch and HTTP requests; the README documents the editor setup and message contract. The separate editor flow is documented but its implementation was not sampled.
Main entry points: kraken-api.ts API node · kraken-client.ts Kraken client · kraken-api-config.ts Config node · index.ts Client editor
Components 9
Node-RED flow
- API node
src/nodes/kraken-api/kraken-api.ts - Flow message
Credential editor
- API node editor
src/nodes/kraken-api/kraken-api.html/index.ts - Client editor
src/nodes/kraken-api-config/kraken-api-config.html/index.ts - API credentials
src/nodes/kraken-api-config/kraken-api-config.html/modules/config.ts
Request runtime
- Config node
src/nodes/kraken-api-config/kraken-api-config.ts - Kraken client
src/nodes/kraken-api-config/modules/kraken-client.ts
Other components
- Flow author
- Kraken API
Connections 13
- Flow author → API node editor: configures node
README.md - Flow author → Client editor: enters credentials
README.md - Client editor → API credentials: sets credential fields
src/nodes/kraken-api-config/kraken-api-config.html/modules/config.ts - API credentials → Config node: provides credentials
README.md - Config node → Kraken client: creates client
src/nodes/kraken-api-config/kraken-api-config.ts - Flow author → Flow message: supplies method and payload
README.md - Flow message → API node: triggers request
README.md - API node → Config node: gets configured client
src/nodes/kraken-api/kraken-api.ts - API node → Kraken client: calls request
src/nodes/kraken-api/kraken-api.ts - Kraken client → Kraken API: posts API request
src/nodes/kraken-api-config/modules/kraken-client.ts - Kraken API → Kraken client: returns API result
src/nodes/kraken-api-config/modules/kraken-client.ts - API node → Flow message: sets result payload
src/nodes/kraken-api/kraken-api.ts - API node → Flow author: sends response message
src/nodes/kraken-api/kraken-api.ts