public class TradingClient extends MetaApiClient
host, httpClient, token| Constructor and Description |
|---|
TradingClient(HttpClient httpClient,
String token)
Constructs CopyFactory trading API client instance.
|
TradingClient(HttpClient httpClient,
String token,
String domain)
Constructs CopyFactory trading API client instance
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<List<CopyFactoryStrategyStopout>> |
getStopouts(String accountId)
Returns subscriber account stopouts.
|
CompletableFuture<Void> |
resetStopout(String accountId,
String reason)
Resets account stopout.
|
CompletableFuture<Void> |
resynchronize(String accountId,
List<String> strategyIds)
Resynchronizes the account.
|
getTokenType, handleNoAccessError, isNotAccountToken, isNotJwtTokenpublic TradingClient(HttpClient httpClient, String token)
agiliumtrade.agiliumtrade.aihttpClient - HTTP clienttoken - authorization tokenpublic TradingClient(HttpClient httpClient, String token, String domain)
httpClient - HTTP clienttoken - authorization tokendomain - domain to connect topublic CompletableFuture<Void> resynchronize(String accountId, List<String> strategyIds)
accountId - account idstrategyIds - optional array of strategy ids to recynchronize, or null.
Default is to synchronize all strategiespublic CompletableFuture<List<CopyFactoryStrategyStopout>> getStopouts(String accountId)
accountId - account idpublic CompletableFuture<Void> resetStopout(String accountId, String reason)
accountId - account idreason - stopout reason to reset. One of yearly-balance, monthly-balance, daily-balance,
yearly-equity, monthly-equity, daily-equity, max-drawdownCopyright © 2020. All rights reserved.