public class MetatraderDemoAccountClient
extends cloud.metaapi.sdk.clients.MetaApiClient
| Constructor and Description |
|---|
MetatraderDemoAccountClient(cloud.metaapi.sdk.clients.HttpClient httpClient,
String token)
Constructs class instance.
|
MetatraderDemoAccountClient(cloud.metaapi.sdk.clients.HttpClient httpClient,
String token,
String domain)
Constructs class instance
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<MetatraderDemoAccountDto> |
createMT4DemoAccount(String profileId,
NewMT4DemoAccount account)
Creates new MetaTrader 4 demo account
Method is accessible only with API access token
|
CompletableFuture<MetatraderDemoAccountDto> |
createMT5DemoAccount(String profileId,
NewMT5DemoAccount account)
Creates new MetaTrader 5 demo account
Method is accessible only with API access token
|
public MetatraderDemoAccountClient(cloud.metaapi.sdk.clients.HttpClient httpClient,
String token)
agiliumtrade.agiliumtrade.aihttpClient - HTTP clienttoken - authorization tokenpublic CompletableFuture<MetatraderDemoAccountDto> createMT4DemoAccount(String profileId, NewMT4DemoAccount account)
profileId - id of the provisioning profile that will be used as the basis for creating this accountaccount - demo account to createpublic CompletableFuture<MetatraderDemoAccountDto> createMT5DemoAccount(String profileId, NewMT5DemoAccount account)
profileId - id of the provisioning profile that will be used as the basis for creating this accountaccount - demo account to createCopyright © 2023. All rights reserved.