Merge pull request #418 from JJ-Cro/update13022025
feat(v3.10.33): Updated return types for getSubDepositAddress, createUniversalTransfer and createInternalTransfer
This commit is contained in:
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "bybit-api",
|
"name": "bybit-api",
|
||||||
"version": "3.10.32",
|
"version": "3.10.33",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "bybit-api",
|
"name": "bybit-api",
|
||||||
"version": "3.10.32",
|
"version": "3.10.33",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^1.6.6",
|
"axios": "^1.6.6",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "bybit-api",
|
"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.",
|
"description": "Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"types": "lib/index.d.ts",
|
"types": "lib/index.d.ts",
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ import {
|
|||||||
DeleteSubMemberParamsV5,
|
DeleteSubMemberParamsV5,
|
||||||
DeliveryPriceV5,
|
DeliveryPriceV5,
|
||||||
DeliveryRecordV5,
|
DeliveryRecordV5,
|
||||||
DepositAddressResultV5,
|
DepositAddressChainV5,
|
||||||
DepositRecordV5,
|
DepositRecordV5,
|
||||||
ExchangeBrokerAccountInfoV5,
|
ExchangeBrokerAccountInfoV5,
|
||||||
ExchangeBrokerEarningResultV5,
|
ExchangeBrokerEarningResultV5,
|
||||||
@@ -1305,7 +1305,7 @@ export class RestClientV5 extends BaseRestClient {
|
|||||||
amount: string,
|
amount: string,
|
||||||
fromAccountType: AccountTypeV5,
|
fromAccountType: AccountTypeV5,
|
||||||
toAccountType: AccountTypeV5,
|
toAccountType: AccountTypeV5,
|
||||||
): Promise<APIResponseV3WithTime<{ transferId: string }>> {
|
): Promise<APIResponseV3WithTime<{ transferId: string; status: string }>> {
|
||||||
return this.postPrivate('/v5/asset/transfer/inter-transfer', {
|
return this.postPrivate('/v5/asset/transfer/inter-transfer', {
|
||||||
transferId,
|
transferId,
|
||||||
coin,
|
coin,
|
||||||
@@ -1365,7 +1365,7 @@ export class RestClientV5 extends BaseRestClient {
|
|||||||
*/
|
*/
|
||||||
createUniversalTransfer(
|
createUniversalTransfer(
|
||||||
params: UniversalTransferParamsV5,
|
params: UniversalTransferParamsV5,
|
||||||
): Promise<APIResponseV3WithTime<{ transferId: string }>> {
|
): Promise<APIResponseV3WithTime<{ transferId: string; status: string }>> {
|
||||||
return this.postPrivate('/v5/asset/transfer/universal-transfer', params);
|
return this.postPrivate('/v5/asset/transfer/universal-transfer', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1464,7 +1464,12 @@ export class RestClientV5 extends BaseRestClient {
|
|||||||
getMasterDepositAddress(
|
getMasterDepositAddress(
|
||||||
coin: string,
|
coin: string,
|
||||||
chainType?: string,
|
chainType?: string,
|
||||||
): Promise<APIResponseV3WithTime<DepositAddressResultV5>> {
|
): Promise<
|
||||||
|
APIResponseV3WithTime<{
|
||||||
|
coin: string;
|
||||||
|
chains: DepositAddressChainV5[];
|
||||||
|
}>
|
||||||
|
> {
|
||||||
return this.getPrivate('/v5/asset/deposit/query-address', {
|
return this.getPrivate('/v5/asset/deposit/query-address', {
|
||||||
coin,
|
coin,
|
||||||
chainType,
|
chainType,
|
||||||
@@ -1478,7 +1483,12 @@ export class RestClientV5 extends BaseRestClient {
|
|||||||
coin: string,
|
coin: string,
|
||||||
chainType: string,
|
chainType: string,
|
||||||
subMemberId: string,
|
subMemberId: string,
|
||||||
): Promise<APIResponseV3WithTime<DepositAddressResultV5>> {
|
): Promise<
|
||||||
|
APIResponseV3WithTime<{
|
||||||
|
coin: string;
|
||||||
|
chains: DepositAddressChainV5;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
return this.getPrivate('/v5/asset/deposit/query-sub-member-address', {
|
return this.getPrivate('/v5/asset/deposit/query-sub-member-address', {
|
||||||
coin,
|
coin,
|
||||||
chainType,
|
chainType,
|
||||||
@@ -1488,6 +1498,7 @@ export class RestClientV5 extends BaseRestClient {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Query the deposit address information of SUB account.
|
* Query the deposit address information of SUB account.
|
||||||
|
* @deprecated Duplicate endpoint - Use getSubDepositAddress() instead
|
||||||
*
|
*
|
||||||
* CAUTION
|
* CAUTION
|
||||||
* Can use master UID's api key only
|
* Can use master UID's api key only
|
||||||
@@ -1496,7 +1507,12 @@ export class RestClientV5 extends BaseRestClient {
|
|||||||
coin: string,
|
coin: string,
|
||||||
chainType: string,
|
chainType: string,
|
||||||
subMemberId: string,
|
subMemberId: string,
|
||||||
): Promise<APIResponseV3<DepositAddressResultV5>> {
|
): Promise<
|
||||||
|
APIResponseV3<{
|
||||||
|
coin: string;
|
||||||
|
chains: DepositAddressChainV5;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
return this.getPrivate('/v5/asset/deposit/query-sub-member-address', {
|
return this.getPrivate('/v5/asset/deposit/query-sub-member-address', {
|
||||||
coin,
|
coin,
|
||||||
chainType,
|
chainType,
|
||||||
|
|||||||
Reference in New Issue
Block a user