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",
"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",

View File

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

View File

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