feat(v2.3.5): added missing affiliate endpoints in broker client, updated examples and endpoint map

This commit is contained in:
JJ-Cro
2025-02-28 09:51:19 +01:00
parent 503baf3107
commit 97012bc1ae
13 changed files with 531 additions and 255 deletions

View File

@@ -171,4 +171,96 @@ export class BrokerClient extends BaseRestClient {
params,
);
}
/** Get Agent Customer List */
getAgentCustomerList(params?: {
startTime?: string;
endTime?: string;
pageNo?: string;
pageSize?: string;
uid?: string;
referralCode?: string;
}): Promise<APIResponse<any>> {
return this.postPrivate('/api/broker/v1/agent/customerList', params);
}
/**
* Get Agent Customer Deposit List
* Includes both on-chain deposits and internal transfers
* Note: Can only query data within the last 90 days
*/
getAgentCustomerDepositList(params?: {
startTime?: string;
endTime?: string;
pageNo?: string;
pageSize?: string;
uid?: string;
}): Promise<APIResponse<any>> {
return this.postPrivate('/api/broker/v1/agent/customerDepositList', params);
}
/**
* Get Agent Customer Trade Volume List
* Includes trading volume for both spot and futures
* Note: Data updates every 10 minutes and can only query last 90 days
*/
getAgentCustomerTradeVolumeList(params?: {
startTime?: string;
endTime?: string;
pageNo?: string;
pageSize?: string;
uid?: string;
}): Promise<APIResponse<any>> {
return this.postPrivate(
'/api/broker/v1/agent/customerTradeVolumnList',
params,
);
}
/**
* Get Agent Customer Assets List
* Returns account balances for customer accounts
* Note: Data updates every 10 minutes
*/
getAgentCustomerAssetsList(params?: {
pageNo?: string;
pageSize?: string;
uid?: string;
}): Promise<APIResponse<any>> {
return this.postPrivate(
'/api/broker/v1/agent/customerAccountAssetsList',
params,
);
}
/**
* Get Agent Direct Commissions
* Returns commission data for direct customers
* Note: Data updates on T+1 (UTC+8) basis and can only query last 90 days
*/
getAgentCustomerCommissions(params?: {
startTime?: string;
endTime?: string;
idLessThan?: string;
limit?: string;
uid?: string;
coin?: string;
symbol?: string;
}): Promise<APIResponse<any>> {
return this.getPrivate('/api/broker/v1/agent/customer-commissions', params);
}
/**
* Get Agent Customer KYC Result
* Returns KYC verification status for customers
*/
getAgentCustomerKycResult(params?: {
startTime?: string;
endTime?: string;
pageNo?: string;
pageSize?: string;
uid?: string;
}): Promise<APIResponse<any>> {
return this.getPrivate('/api/broker/v1/agent/customer-kyc-result', params);
}
}