From e6717857ccff73d53d55a18bef762ea642cfdf25 Mon Sep 17 00:00:00 2001 From: Pranay Pratyush Date: Sat, 30 Oct 2021 11:58:13 +0530 Subject: [PATCH 1/2] Fix bool to strings --- src/inverse-client.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/inverse-client.ts b/src/inverse-client.ts index 897f701..6eb6a0b 100644 --- a/src/inverse-client.ts +++ b/src/inverse-client.ts @@ -110,7 +110,7 @@ export class InverseClient extends SharedEndpoints { * */ - /** + /** * Active orders */ @@ -124,8 +124,8 @@ export class InverseClient extends SharedEndpoints { take_profit?: number; stop_loss?: number; reduce_only?: boolean; - tp_trigger_by?: boolean; - sl_trigger_by?: boolean; + tp_trigger_by?: 'LastPrice' | 'MarkPrice' | 'IndexPrice'; + sl_trigger_by?: 'LastPrice' | 'MarkPrice' | 'IndexPrice'; close_on_trigger?: boolean; order_link_id?: string; }): GenericAPIResponse { @@ -174,7 +174,7 @@ export class InverseClient extends SharedEndpoints { return this.requestWrapper.get('v2/private/order', params); } - /** + /** * Conditional orders */ @@ -237,7 +237,7 @@ export class InverseClient extends SharedEndpoints { return this.requestWrapper.get('v2/private/stop-order', params); } - /** + /** * Position */ @@ -340,7 +340,7 @@ export class InverseClient extends SharedEndpoints { return this.requestWrapper.post('v2/private/position/switch-isolated', params); } - /** + /** * Risk Limit */ @@ -355,7 +355,7 @@ export class InverseClient extends SharedEndpoints { return this.requestWrapper.post('open-api/wallet/risk-limit', params); } - /** + /** * Funding */ @@ -377,7 +377,7 @@ export class InverseClient extends SharedEndpoints { return this.requestWrapper.get('v2/private/funding/predicted-funding', params); } - /** + /** * LCP Info */ From 42e8477079b4b8137b5f430b1694c61cda5eddd5 Mon Sep 17 00:00:00 2001 From: Pranay Pratyush Date: Thu, 4 Nov 2021 18:01:49 +0530 Subject: [PATCH 2/2] Version bump --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e2d6412..16f630e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bybit-api", - "version": "2.1.3", + "version": "2.1.4", "description": "Node.js connector for Bybit's REST APIs and WebSockets, with TypeScript & integration tests.", "main": "lib/index.js", "types": "lib/index.d.ts",