public class MetatraderDemoAccountClient extends MetaApiClient
host, httpClient, token| Constructor and Description |
|---|
MetatraderDemoAccountClient(HttpClient httpClient,
String token)
Constructs class instance.
|
MetatraderDemoAccountClient(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
|
getTokenType, handleNoAccessError, isNotAccountToken, isNotJwtTokenpublic MetatraderDemoAccountClient(HttpClient httpClient, String token)
agiliumtrade.agiliumtrade.aihttpClient - HTTP clienttoken - authorization tokenpublic MetatraderDemoAccountClient(HttpClient httpClient, String token, String domain)
httpClient - HTTP clienttoken - authorization tokendomain - domain to connect topublic 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 © 2022. All rights reserved.