From 7e9fe9b846a3676eef774994bb07b1e78f859773 Mon Sep 17 00:00:00 2001 From: Michael Lake Date: Wed, 15 Feb 2023 15:18:48 +0100 Subject: [PATCH 1/3] string type error in createSubAPIKeyRequest --- src/types/request/account-asset.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/request/account-asset.ts b/src/types/request/account-asset.ts index 2f9cd18..7ca7436 100644 --- a/src/types/request/account-asset.ts +++ b/src/types/request/account-asset.ts @@ -232,7 +232,7 @@ export interface CreateSubAPIKeyRequestV3 { readOnly: 0 | 1; ips?: string[]; permissions: { - ContractTrade?: []; + ContractTrade?: string[]; Spot?: string[]; Wallet?: string[]; Options?: string[]; From 6ccc084bc0405d94ccc125ba8e9bc28fb91ab9cf Mon Sep 17 00:00:00 2001 From: Michael Lake Date: Wed, 15 Feb 2023 15:34:21 +0100 Subject: [PATCH 2/3] correctly call GET instead of POST when querying query-sub-members --- src/account-asset-client-v3.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/account-asset-client-v3.ts b/src/account-asset-client-v3.ts index 002d395..6649c38 100644 --- a/src/account-asset-client-v3.ts +++ b/src/account-asset-client-v3.ts @@ -265,7 +265,7 @@ export class AccountAssetClientV3 extends BaseRestClient { * Get Sub UID List */ getSubMembers(): Promise> { - return this.postPrivate('/user/v3/private/query-sub-members'); + return this.getPrivate('/user/v3/private/query-sub-members'); } /** From 6ae67d50d8f3b5f9691d20866a9188de139d6dc5 Mon Sep 17 00:00:00 2001 From: Tiago Date: Wed, 15 Feb 2023 15:21:07 +0000 Subject: [PATCH 3/3] v3.4.1: fix(#225) fix typos in account asset v3 client --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8e839a4..a07eddc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bybit-api", - "version": "3.4.0", + "version": "3.4.1", "description": "Complete & robust node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & integration tests.", "main": "lib/index.js", "types": "lib/index.d.ts",