Repository navigation
docs(examples): add gateio-examples-nodejs.md (one page of copy-ready snippets) - #159
Merged
Merged
Conversation
…ockets and WS API
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/gateio-examples-nodejs.md, a single page of short, copy-ready snippets in the same style askucoin-api/examples/kucoin-*-examples-nodejs.mdand the new examples pages for hyperliquid-api (sieblyio/hyperliquid-api#19) and kraken-api.Why: Context7 parses markdown, and its benchmark for /sieblyio/gateio-api is 47.67, the weakest of the Siebly SDKs after kraken-api, while kucoin-api (with examples markdown) scores 73.88. 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, private, testnet, CommonJS), Spot market data (server time and pair rules, tickers, order book, trades, candles), Spot account (balances, orders, fills, ledger), Spot trading (limit with a
t-custom id, market buy in quote currency, post-only, get/amend/cancel, cancel all on a pair, batch, countdown cancel), Futures market data (contract rules incl. quanto_multiplier, tickers, order book, candles, trades), Futures account and trading (account, positions, orders, fills, leverage, limit, market reduce-only, amend, cancel, cancel all), WebSockets (public Spot and Futures, private Spot and Futures, unsubscribe and close), the WebSocket API (Spot and Futures orders) and error handling.Checked against gateio-api 1.6.9:
tsc --strict(module nodenext); the CommonJS one ran under Node.