Repository navigation
docs(examples): add bitget-examples-nodejs.md (one page of copy-ready snippets) - #190
Merged
Merged
Conversation
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/bitget-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), kraken-api (sieblyio/kraken-api#71), gateio-api (sieblyio/gateio-api#159) and coinbase-api (sieblyio/coinbase-api#167).Why: Context7 parses markdown, and its benchmark for /sieblyio/bitget-api is 58.21, below kucoin-api (73.88) and okx-api (75.78). The runnable
.tsexamples inV2 - Classic,V3 - UTAandapidocstay as they are; this page gives indexers and readers one place to find each task. It also says up front that V1 URLs and_SPBL/_UMCBLsymbols now return 30032, since old tutorials still send people there.Covers: which client to use (V2 Classic vs V3 UTA, REST, WebSocket and WS API), client setup (public, key/secret/passphrase, demo trading, CommonJS), V2 spot market data (ticker, symbol rules, order book, candles, recent trades), V2 futures market data (ticker, funding, open interest, contract config, candles), V3 market data (instruments, tickers, order book, candles), V2 spot trading (balances, post-only limit and cancel, market order sizing, order status and fills), V2 futures trading (leverage, order, positions, cancel), V3 trading (submitNewOrder, unfilled orders, cancel, positions), WebSockets (V2 public and private, V3 public and private, WebsocketAPIClient orders) and error handling.
Checked against bitget-api 3.2.9:
tsc --strict(module nodenext); the CommonJS one ran under Node.