Skip to content

docs(binance): add a frequently asked questions hub and five question pages - #91

Merged
tiagosiebler merged 2 commits into
mainfrom
docs/binance-faq
Dec 2, 2026
Merged

tiagosiebler merged 2 commits into
mainfrom
docs/binance-faq

Conversation

@harbourlark

@harbourlark harbourlark commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

What's new

A small frequently asked questions section for the Binance SDK docs, with a hub page and five question pages. Each page opens with the direct answer, then shows a short TypeScript example and links to the related guides.

  • A hub page (sdks/binance/docs/faq/index.md) listing every question with a one-line answer and a link
  • How do I get a Binance API key and use it in Node.js?
  • Why does Binance return error -2015?
  • Does Binance have a WebSocket API?
  • How do I get Binance futures liquidations in Node.js?
  • Is there a Binance SDK for TypeScript and Node.js?

Where the pages appear

The pages stay out of the navigation bar and the sidebar. They are reachable from a small link at the bottom of the Binance SDK documentation page, from the related guides (API key setup, errors, troubleshooting, WebSocket streams, WebSocket API and Futures API) and from the sitemap. They are indexable and listed in llms.txt.

Other changes

  • Three new checked examples in sdks/binance/examples: a liquidations stream, a WebSocket API price request and a key permissions check. The build type-checks them against the published binance package.
  • shared/config.mjs adds FAQPage structured data to any page that lists faq entries in its frontmatter.

Checks

  • npm run build -- --sdk binance with an indexable build passes, including the site link check.
  • npm run check:content, npm run check:site-tests and node scripts/check-public.mjs dist pass.
  • The three new examples were also run against Binance: the liquidations stream printed live events, the WebSocket API request returned the BTCUSDT price, and a made-up key returned -2015.

});

const orders = await futures.getForceOrders({ symbol: 'BTCUSDT', autoCloseType: 'LIQUIDATION' });
console.log(orders.length, 'liquidation orders on this account');

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This just logs the order total without any other details? Maybe console.table or some other way log them too?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call, it now logs symbol, side, price, quantity, total and time for each liquidation.

Log symbol, side, average fill price, filled quantity, quote notional and time for every returned order, rather than only the count.

@tiagosiebler tiagosiebler left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@tiagosiebler
tiagosiebler merged commit ea81923 into main Dec 2, 2026
4 checks passed
@tiagosiebler
tiagosiebler deleted the docs/binance-faq branch December 2, 2026 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants