feat(v4.1.3): full support for demo endpoints

This commit is contained in:
JJ-Cro
2025-04-09 10:48:08 +02:00
parent 82287ad59c
commit 6e174e2cc9
3 changed files with 24 additions and 5 deletions

View File

@@ -313,8 +313,27 @@ export class RestClientV5 extends BaseRestClient {
return this.get('/v5/market/time');
}
requestDemoTradingFunds(): Promise<{}> {
return this.postPrivate('/v5/account/demo-apply-money');
/**
*
****** Demo Account APIs
*
*/
requestDemoTradingFunds(params?: {
adjustType?: 0 | 1;
utaDemoApplyMoney?: Array<{
coin: string;
amountStr: string;
}>;
}): Promise<APIResponseV3<{}>> {
return this.postPrivate('/v5/account/demo-apply-money', params);
}
/**
* Create a demo trading account.
*/
createDemoAccount(): Promise<APIResponseV3<{ subMemberId: string }>> {
return this.postPrivate('/v5/user/create-demo-member');
}
/**