Merge branch 'master' into wsapi
This commit is contained in:
@@ -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<APIResponseV3WithTime<{ transferId: string }>> {
|
||||
): Promise<APIResponseV3WithTime<{ transferId: string; status: string }>> {
|
||||
return this.postPrivate('/v5/asset/transfer/inter-transfer', {
|
||||
transferId,
|
||||
coin,
|
||||
@@ -1365,7 +1365,7 @@ export class RestClientV5 extends BaseRestClient {
|
||||
*/
|
||||
createUniversalTransfer(
|
||||
params: UniversalTransferParamsV5,
|
||||
): Promise<APIResponseV3WithTime<{ transferId: string }>> {
|
||||
): Promise<APIResponseV3WithTime<{ transferId: string; status: string }>> {
|
||||
return this.postPrivate('/v5/asset/transfer/universal-transfer', params);
|
||||
}
|
||||
|
||||
@@ -1464,7 +1464,12 @@ export class RestClientV5 extends BaseRestClient {
|
||||
getMasterDepositAddress(
|
||||
coin: string,
|
||||
chainType?: string,
|
||||
): Promise<APIResponseV3WithTime<DepositAddressResultV5>> {
|
||||
): 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<APIResponseV3WithTime<DepositAddressResultV5>> {
|
||||
): 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<APIResponseV3<DepositAddressResultV5>> {
|
||||
): Promise<
|
||||
APIResponseV3<{
|
||||
coin: string;
|
||||
chains: DepositAddressChainV5;
|
||||
}>
|
||||
> {
|
||||
return this.getPrivate('/v5/asset/deposit/query-sub-member-address', {
|
||||
coin,
|
||||
chainType,
|
||||
|
||||
@@ -10,6 +10,8 @@ export interface GetCoinExchangeRecordParamsV5 {
|
||||
export interface GetDeliveryRecordParamsV5 {
|
||||
category: CategoryV5;
|
||||
symbol?: string;
|
||||
startTime?: number;
|
||||
endTime?: number;
|
||||
expDate?: string;
|
||||
limit?: number;
|
||||
cursor?: string;
|
||||
|
||||
Reference in New Issue
Block a user