Skip to content

Commit

Permalink
Merge pull request #29 from tiagosiebler/subrequestlimit
Browse files Browse the repository at this point in the history
fix(v2.1.9): split subscription requests into batches of 20
  • Loading branch information
tiagosiebler authored Nov 18, 2024
2 parents 9800670 + e52fdd7 commit 7bf6fc3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bitmart-api",
"version": "2.1.8",
"version": "2.1.9",
"description": "Complete & robust Node.js SDK for BitMart's REST APIs and WebSockets, with TypeScript declarations.",
"scripts": {
"clean": "rm -rf dist/*",
Expand Down
2 changes: 1 addition & 1 deletion src/WebsocketClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ export class WebsocketClient extends BaseWebsocketClient<
case 'futuresPrivateV2':
case 'futuresPublicV2': {
// Return a number if there's a limit on the number of sub topics per rq
return null;
return 20;
}
default: {
throw neverGuard(wsKey, `getWsKeyForTopic(): Unhandled wsKey`);
Expand Down

0 comments on commit 7bf6fc3

Please sign in to comment.