Merge pull request #80 from blake41/master

change when you initialize the requestwrapper to pass along the restI…
This commit is contained in:
Tiago
2021-02-18 23:21:47 +00:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "bybit-api", "name": "bybit-api",
"version": "2.0.0", "version": "2.0.1",
"description": "Node.js connector for Bybit's Inverse & Linear REST APIs and WebSockets", "description": "Node.js connector for Bybit's Inverse & Linear REST APIs and WebSockets",
"main": "lib/index.js", "main": "lib/index.js",
"types": "lib/index.d.ts", "types": "lib/index.d.ts",

View File

@@ -26,7 +26,7 @@ export class InverseClient extends SharedEndpoints {
this.requestWrapper = new RequestWrapper( this.requestWrapper = new RequestWrapper(
key, key,
secret, secret,
getRestBaseUrl(useLivenet), getRestBaseUrl(useLivenet, restInverseOptions),
restInverseOptions, restInverseOptions,
requestOptions requestOptions
); );

View File

@@ -26,7 +26,7 @@ export class LinearClient extends SharedEndpoints {
this.requestWrapper = new RequestWrapper( this.requestWrapper = new RequestWrapper(
key, key,
secret, secret,
getRestBaseUrl(useLivenet), getRestBaseUrl(useLivenet, restInverseOptions),
restInverseOptions, restInverseOptions,
requestOptions requestOptions
); );