Skip to content

Commit

Permalink
v3.7.4: feat(#251, #291) add optional endpoint rate limit parsing, ad…
Browse files Browse the repository at this point in the history
…d deprecation warnings for v1/v2 rest clients, improve v5 types, bump dependencies
  • Loading branch information
tiagosiebler committed Oct 30, 2023
1 parent 27192d2 commit 7c67d5f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,12 @@ const restClientOptions = {

/** Default: true. whether to try and post-process request exceptions. */
parse_exceptions?: boolean;

/** Default: false. Enable to parse/include per-API/endpoint rate limits in responses. */
parseAPIRateLimits?: boolean;

/** Default: false. Enable to throw error if rate limit parser fails */
throwOnFailedRateLimitParse?: boolean;
};

const API_KEY = 'xxx';
Expand Down
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": "bybit-api",
"version": "3.7.3",
"version": "3.7.4",
"description": "Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down

0 comments on commit 7c67d5f

Please sign in to comment.