Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: WSAPI & Multiplex WebSockets #509

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft

WIP: WSAPI & Multiplex WebSockets #509

wants to merge 6 commits into from

Conversation

tiagosiebler
Copy link
Owner

@tiagosiebler tiagosiebler commented Jan 30, 2025

Summary

This major release brings major upgrades to the Node.js, TypeScript & JavaScript SDK for Binance's REST APIs and WebSockets.

Key points, with further details below:

Major Changes

Auth/Performance (REST & WS)
  • TODO: Use the Web Crypto API for request sign/auth by default.
    • This is marginally slower than node's native crypto module, but provides better compatibility with browser environments.
    • See for context: Web Crypto API bybit-api#321
  • TODO: Add customSignMessageFn() parameter to WebsocketClient and REST clients.
    • If you're latency sensitive, use this to inject a custom sign method to use something faster than the Web Crypto API.
    • See the examples/fasterHmacSign.ts example for a demonstration on using the faster node crypto createHmac function instead (same behaviour as before this upgrade).

Breaking Changes

WebsocketClient
  • Consolidated the internal DefaultLogger methods, in line with my other SDKs
    • Into 3 key levels: trace | info | error.
    • Similar to the silly level before this release, the trace level is disabled/silent by default.

Copy link

socket-security bot commented Jan 30, 2025

New and updated dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/[email protected] 🔁 npm/[email protected] Transitive: environment, filesystem +8 2.5 MB jasonsaayman
npm/[email protected] 🔁 npm/[email protected] Transitive: eval, network, shell +156 15.5 MB kul
npm/[email protected] 🔁 npm/[email protected] None 0 22.7 MB typescript-bot

View full report↗︎

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.

1 participant