From 7c67d5f98f906dd0e0e8918d5536858c30a4ca52 Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Mon, 30 Oct 2023 13:53:25 +0000 Subject: [PATCH] v3.7.4: feat(#251, #291) add optional endpoint rate limit parsing, add deprecation warnings for v1/v2 rest clients, improve v5 types, bump dependencies --- README.md | 6 ++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6b77069..87b7a37 100644 --- a/README.md +++ b/README.md @@ -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'; diff --git a/package-lock.json b/package-lock.json index 0d39227..5449efa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "bybit-api", - "version": "3.7.3", + "version": "3.7.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "bybit-api", - "version": "3.7.3", + "version": "3.7.4", "license": "MIT", "dependencies": { "axios": "^0.21.0", diff --git a/package.json b/package.json index c397e1c..ee96ea9 100644 --- a/package.json +++ b/package.json @@ -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",