Merge branch 'master' into wsapi
This commit is contained in:
@@ -12,6 +12,7 @@ import {
|
||||
AddOrReduceMarginParamsV5,
|
||||
AddOrReduceMarginResultV5,
|
||||
AffiliateUserInfoV5,
|
||||
AffiliateUserListItemV5,
|
||||
AllCoinsBalanceV5,
|
||||
AllowedDepositCoinInfoV5,
|
||||
AmendOrderParamsV5,
|
||||
@@ -995,6 +996,19 @@ export class RestClientV5 extends BaseRestClient {
|
||||
return this.getPrivate('/v5/account/wallet-balance', params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Query the available amount to transfer of a specific coin in the Unified wallet.
|
||||
*
|
||||
* @param coinName Coin name, uppercase only
|
||||
*/
|
||||
getTransferableAmount(params: { coinName: string }): Promise<
|
||||
APIResponseV3WithTime<{
|
||||
availableWithdrawal: string;
|
||||
}>
|
||||
> {
|
||||
return this.getPrivate('/v5/account/withdrawal', params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Upgrade to unified account.
|
||||
*
|
||||
@@ -1782,6 +1796,29 @@ export class RestClientV5 extends BaseRestClient {
|
||||
return this.postPrivate('/v5/user/del-submember', params);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
****** Affiliate APIs
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Get Affiliate User List.
|
||||
* To use this endpoint, you should have an affiliate account and only tick "affiliate" permission while creating the API key.
|
||||
*
|
||||
* TIP:
|
||||
* - Use master UID only
|
||||
* - The api key can only have "Affiliate" permission
|
||||
*/
|
||||
getAffiliateUserList(params?: { size?: number; cursor?: string }): Promise<
|
||||
APIResponseV3WithTime<{
|
||||
list: AffiliateUserListItemV5[];
|
||||
nextPageCursor: string;
|
||||
}>
|
||||
> {
|
||||
return this.getPrivate('/v5/affiliate/aff-user-list', params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Affiliate User Info.
|
||||
*
|
||||
|
||||
@@ -75,6 +75,10 @@ export interface LinearInverseInstrumentInfoV5 {
|
||||
copyTrading: CopyTradingV5;
|
||||
upperFundingRate: string;
|
||||
lowerFundingRate: string;
|
||||
riskParameters: {
|
||||
priceLimitRatioX: string;
|
||||
priceLimitRatioY: string;
|
||||
};
|
||||
isPreListing: boolean;
|
||||
preListingInfo: {
|
||||
curAuctionPhase: string;
|
||||
@@ -97,7 +101,7 @@ export interface OptionInstrumentInfoV5 {
|
||||
status: InstrumentStatusV5;
|
||||
baseCoin: string;
|
||||
quoteCoin: string;
|
||||
settleCoin: boolean;
|
||||
settleCoin: string;
|
||||
launchTime: string;
|
||||
deliveryTime: string;
|
||||
deliveryFeeRate: string;
|
||||
@@ -120,6 +124,7 @@ export interface SpotInstrumentInfoV5 {
|
||||
innovation: '0' | '1';
|
||||
status: InstrumentStatusV5;
|
||||
marginTrading: MarginTradingV5;
|
||||
stTag: '0' | '1';
|
||||
lotSizeFilter: {
|
||||
basePrecision: string;
|
||||
quotePrecision: string;
|
||||
@@ -132,8 +137,8 @@ export interface SpotInstrumentInfoV5 {
|
||||
tickSize: string;
|
||||
};
|
||||
riskParameters: {
|
||||
limitParameter: string;
|
||||
marketParameter: string;
|
||||
priceLimitRatioX: string;
|
||||
priceLimitRatioY: string;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -78,6 +78,14 @@ export interface SubAccountAllApiKeysResultV5 {
|
||||
nextPageCursor: string;
|
||||
}
|
||||
|
||||
export interface AffiliateUserListItemV5 {
|
||||
userId: string;
|
||||
registerTime: string;
|
||||
source: string;
|
||||
remarks: string;
|
||||
isKyc: boolean;
|
||||
}
|
||||
|
||||
export interface AffiliateUserInfoV5 {
|
||||
uid: string;
|
||||
vipLevel: string;
|
||||
|
||||
Reference in New Issue
Block a user