Repository navigation
docs(examples): add kraken-examples-nodejs.md (one page of copy-ready snippets) - #71
Open
harbourlark wants to merge 1 commit into
Open
harbourlark wants to merge 1 commit into
harbourlark wants to merge 1 commit into
Conversation
Add comprehensive examples for Kraken API using Node.js, JavaScript, and TypeScript SDK, covering installation, client creation, market data, account management, trading, and WebSocket usage.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
examples/kraken-examples-nodejs.md, a single page of short, copy-ready snippets in the same style askucoin-api/examples/kucoin-*-examples-nodejs.mdand the new hyperliquid-api examples page (sieblyio/hyperliquid-api#19).Why: Context7 parses markdown, and its benchmark for /sieblyio/kraken-api is 25 after the 27 Nov refresh, the lowest of the Siebly SDKs, while kucoin-api (with examples markdown) scores 73.88 and okx-api 75.78. The runnable
.tsexamples andexamples/apidocstay as they are; this page gives indexers and readers one place to find each task.Covers: which client to use, client setup (public and private Spot, Derivatives, CommonJS), the retired Futures demo note, Spot market data (time and status, ticker, order book, OHLC, trades and spreads, assets and pairs), Spot account (balances, open and closed orders, trade history, ledgers), Spot trading (limit with cl_ord_id, market, post-only, validate-only, batch, amend, cancel, cancel all, dead man's switch), Derivatives market data (tickers, order book, candles, instruments, public executions), Derivatives account and trading (accounts, positions, fills, limit, market, reduce-only, edit, cancel, cancel all), WebSockets (Spot v2 public and private incl. level3, Futures public and private, unsubscribe and close), the Spot WebSocket API, and error handling.
Checked against @siebly/kraken-api 1.1.12:
tsc --strict(module nodenext); the CommonJS one ran under Node.Once #62 (Unified WebSocket) is released, a Unified section can be added to this page.