From 96427fac99f25c669278b3dba84f0acac3425060 Mon Sep 17 00:00:00 2001 From: Blake Johnson Date: Thu, 18 Feb 2021 16:08:50 -0600 Subject: [PATCH 1/2] change when you initialize the requestwrapper to pass along the restInverseOptions to getBaseUrl currently the ability to pass your own baseUrl is not working --- src/inverse-client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inverse-client.ts b/src/inverse-client.ts index 405c4b1..30f3ab9 100644 --- a/src/inverse-client.ts +++ b/src/inverse-client.ts @@ -26,7 +26,7 @@ export class InverseClient extends SharedEndpoints { this.requestWrapper = new RequestWrapper( key, secret, - getRestBaseUrl(useLivenet), + getRestBaseUrl(useLivenet, restInverseOptions), restInverseOptions, requestOptions ); From 66d7120fa3eeb88ddc5f2d3dbb5f41e17dba94ba Mon Sep 17 00:00:00 2001 From: Blake Johnson Date: Thu, 18 Feb 2021 17:10:59 -0600 Subject: [PATCH 2/2] package json update version and also fix same bug on linear client --- package.json | 2 +- src/linear-client.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 0dd0b4f..9944d18 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bybit-api", - "version": "2.0.0", + "version": "2.0.1", "description": "Node.js connector for Bybit's Inverse & Linear REST APIs and WebSockets", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/linear-client.ts b/src/linear-client.ts index d44d6ad..b623902 100644 --- a/src/linear-client.ts +++ b/src/linear-client.ts @@ -26,7 +26,7 @@ export class LinearClient extends SharedEndpoints { this.requestWrapper = new RequestWrapper( key, secret, - getRestBaseUrl(useLivenet), + getRestBaseUrl(useLivenet, restInverseOptions), restInverseOptions, requestOptions );