diff --git a/package-lock.json b/package-lock.json index d68a2ade..2fe238b3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "bybit-api", - "version": "3.10.32", + "version": "3.10.33", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "bybit-api", - "version": "3.10.32", + "version": "3.10.33", "license": "MIT", "dependencies": { "axios": "^1.6.6", diff --git a/package.json b/package.json index f3fc2d9e..a7fa0926 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bybit-api", - "version": "3.10.32", + "version": "3.10.33", "description": "Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/rest-client-v5.ts b/src/rest-client-v5.ts index 02624852..89531aec 100644 --- a/src/rest-client-v5.ts +++ b/src/rest-client-v5.ts @@ -57,7 +57,7 @@ import { DeleteSubMemberParamsV5, DeliveryPriceV5, DeliveryRecordV5, - DepositAddressResultV5, + DepositAddressChainV5, DepositRecordV5, ExchangeBrokerAccountInfoV5, ExchangeBrokerEarningResultV5, @@ -1305,7 +1305,7 @@ export class RestClientV5 extends BaseRestClient { amount: string, fromAccountType: AccountTypeV5, toAccountType: AccountTypeV5, - ): Promise> { + ): Promise> { return this.postPrivate('/v5/asset/transfer/inter-transfer', { transferId, coin, @@ -1365,7 +1365,7 @@ export class RestClientV5 extends BaseRestClient { */ createUniversalTransfer( params: UniversalTransferParamsV5, - ): Promise> { + ): Promise> { return this.postPrivate('/v5/asset/transfer/universal-transfer', params); } @@ -1464,7 +1464,12 @@ export class RestClientV5 extends BaseRestClient { getMasterDepositAddress( coin: string, chainType?: string, - ): Promise> { + ): Promise< + APIResponseV3WithTime<{ + coin: string; + chains: DepositAddressChainV5[]; + }> + > { return this.getPrivate('/v5/asset/deposit/query-address', { coin, chainType, @@ -1478,7 +1483,12 @@ export class RestClientV5 extends BaseRestClient { coin: string, chainType: string, subMemberId: string, - ): Promise> { + ): Promise< + APIResponseV3WithTime<{ + coin: string; + chains: DepositAddressChainV5; + }> + > { return this.getPrivate('/v5/asset/deposit/query-sub-member-address', { coin, chainType, @@ -1488,6 +1498,7 @@ export class RestClientV5 extends BaseRestClient { /** * Query the deposit address information of SUB account. + * @deprecated Duplicate endpoint - Use getSubDepositAddress() instead * * CAUTION * Can use master UID's api key only @@ -1496,7 +1507,12 @@ export class RestClientV5 extends BaseRestClient { coin: string, chainType: string, subMemberId: string, - ): Promise> { + ): Promise< + APIResponseV3<{ + coin: string; + chains: DepositAddressChainV5; + }> + > { return this.getPrivate('/v5/asset/deposit/query-sub-member-address', { coin, chainType,