public class HistoryClient extends MetaApiClient
host, httpClient, token| Constructor and Description |
|---|
HistoryClient(HttpClient httpClient,
String token)
Constructs CopyFactory history API client instance.
|
HistoryClient(HttpClient httpClient,
String token,
String domain)
Constructs CopyFactory history API client instance
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<List<CopyFactoryStrategyIdAndName>> |
getProvidedStrategies()
Returns list of strategies the current user provides to other users
https://trading-api-v1.agiliumtrade.agiliumtrade.ai/swagger/#!
|
CompletableFuture<List<CopyFactoryTransaction>> |
getProvidedStrategiesTransactions(IsoTime from,
IsoTime till)
Returns list of transactions on the strategies the current user provides to other users.
|
CompletableFuture<List<CopyFactoryTransaction>> |
getProvidedStrategiesTransactions(IsoTime from,
IsoTime till,
List<String> strategyIds,
List<String> subscriberIds)
Returns list of transactions on the strategies the current user provides to other users.
|
CompletableFuture<List<CopyFactoryTransaction>> |
getProvidedStrategiesTransactions(IsoTime from,
IsoTime till,
List<String> strategyIds,
List<String> subscriberIds,
Integer offset,
Integer limit)
Returns list of transactions on the strategies the current user provides to other users
https://trading-api-v1.agiliumtrade.agiliumtrade.ai/swagger/#!
|
CompletableFuture<List<CopyFactorySubscriberOrProvider>> |
getProviders()
Returns list of providers providing strategies to the current user
https://trading-api-v1.agiliumtrade.agiliumtrade.ai/swagger/#!
|
CompletableFuture<List<CopyFactoryStrategyIdAndName>> |
getStrategiesSubscribed()
Returns list of strategies the current user is subscribed to
https://trading-api-v1.agiliumtrade.agiliumtrade.ai/swagger/#!
|
CompletableFuture<List<CopyFactoryTransaction>> |
getStrategiesSubscribedTransactions(IsoTime from,
IsoTime till)
Returns list of trades on the strategies the current user subscribed to
https://trading-api-v1.agiliumtrade.agiliumtrade.ai/swagger/#!
|
CompletableFuture<List<CopyFactoryTransaction>> |
getStrategiesSubscribedTransactions(IsoTime from,
IsoTime till,
List<String> strategyIds,
List<String> providerIds)
Returns list of trades on the strategies the current user subscribed to
https://trading-api-v1.agiliumtrade.agiliumtrade.ai/swagger/#!
|
CompletableFuture<List<CopyFactoryTransaction>> |
getStrategiesSubscribedTransactions(IsoTime from,
IsoTime till,
List<String> strategyIds,
List<String> providerIds,
Integer offset,
Integer limit)
Returns list of trades on the strategies the current user subscribed to
https://trading-api-v1.agiliumtrade.agiliumtrade.ai/swagger/#!
|
CompletableFuture<List<CopyFactorySubscriberOrProvider>> |
getSubscribers()
Returns list of subscribers subscribed to the strategies of the current user
https://trading-api-v1.agiliumtrade.agiliumtrade.ai/swagger/#!
|
getTokenType, handleNoAccessError, isNotAccountToken, isNotJwtTokenpublic HistoryClient(HttpClient httpClient, String token)
agiliumtrade.agiliumtrade.aihttpClient - HTTP clienttoken - authorization tokenpublic HistoryClient(HttpClient httpClient, String token, String domain)
httpClient - HTTP clienttoken - authorization tokendomain - domain to connect topublic CompletableFuture<List<CopyFactorySubscriberOrProvider>> getProviders()
public CompletableFuture<List<CopyFactorySubscriberOrProvider>> getSubscribers()
public CompletableFuture<List<CopyFactoryStrategyIdAndName>> getStrategiesSubscribed()
public CompletableFuture<List<CopyFactoryStrategyIdAndName>> getProvidedStrategies()
public CompletableFuture<List<CopyFactoryTransaction>> getProvidedStrategiesTransactions(IsoTime from, IsoTime till)
from - time to load transactions fromtill - time to load transactions tillpublic CompletableFuture<List<CopyFactoryTransaction>> getProvidedStrategiesTransactions(IsoTime from, IsoTime till, List<String> strategyIds, List<String> subscriberIds)
from - time to load transactions fromtill - time to load transactions tillstrategyIds - optional list of strategy ids to filter transactions by, or nullsubscriberIds - optional list of subscribers to filter transactions by, or nullpublic CompletableFuture<List<CopyFactoryTransaction>> getProvidedStrategiesTransactions(IsoTime from, IsoTime till, List<String> strategyIds, List<String> subscriberIds, Integer offset, Integer limit)
from - time to load transactions fromtill - time to load transactions tillstrategyIds - optional list of strategy ids to filter transactions by, or nullsubscriberIds - optional list of subscribers to filter transactions by, or nulloffset - pagination offset, or null. Default value is 0limit - pagination limit, or null. Default value is 10000public CompletableFuture<List<CopyFactoryTransaction>> getStrategiesSubscribedTransactions(IsoTime from, IsoTime till)
from - time to load transactions fromtill - time to load transactions tillpublic CompletableFuture<List<CopyFactoryTransaction>> getStrategiesSubscribedTransactions(IsoTime from, IsoTime till, List<String> strategyIds, List<String> providerIds)
from - time to load transactions fromtill - time to load transactions tillstrategyIds - optional list of strategy ids to filter transactions by, or nullproviderIds - optional list of providers to filter transactions by, or nullpublic CompletableFuture<List<CopyFactoryTransaction>> getStrategiesSubscribedTransactions(IsoTime from, IsoTime till, List<String> strategyIds, List<String> providerIds, Integer offset, Integer limit)
from - time to load transactions fromtill - time to load transactions tillstrategyIds - optional list of strategy ids to filter transactions by, or nullproviderIds - optional list of providers to filter transactions by, or nulloffset - pagination offset, or null. Default value is 0limit - pagination limit, or null. Default value is 10000Copyright © 2021. All rights reserved.