public class HistoryClient
extends cloud.metaapi.sdk.clients.MetaApiClient
| Constructor and Description |
|---|
HistoryClient(cloud.metaapi.sdk.clients.HttpClient httpClient,
String token)
Constructs CopyFactory history API client instance.
|
HistoryClient(cloud.metaapi.sdk.clients.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://metaapi.cloud/docs/copyfactory/restApi/api/history/getProvidedStrategies/
|
CompletableFuture<List<CopyFactoryTransaction>> |
getProvidedStrategiesTransactions(cloud.metaapi.sdk.clients.models.IsoTime from,
cloud.metaapi.sdk.clients.models.IsoTime till)
Returns list of transactions on the strategies the current user provides to other users.
|
CompletableFuture<List<CopyFactoryTransaction>> |
getProvidedStrategiesTransactions(cloud.metaapi.sdk.clients.models.IsoTime from,
cloud.metaapi.sdk.clients.models.IsoTime till,
List<String> strategyIds,
List<String> accountIds,
List<String> subscriberIds)
Returns list of transactions on the strategies the current user provides to other users.
|
CompletableFuture<List<CopyFactoryTransaction>> |
getProvidedStrategiesTransactions(cloud.metaapi.sdk.clients.models.IsoTime from,
cloud.metaapi.sdk.clients.models.IsoTime till,
List<String> strategyIds,
List<String> accountIds,
List<String> subscriberIds,
Integer offset,
Integer limit)
Returns list of transactions on the strategies the current user provides to other users
https://metaapi.cloud/docs/copyfactory/restApi/api/history/getProvidedStrategiesTransactions/
|
CompletableFuture<List<CopyFactorySubscriberOrProvider>> |
getProviders()
Returns list of providers providing strategies to the current user
https://metaapi.cloud/docs/copyfactory/restApi/api/history/getProviders/
|
CompletableFuture<List<CopyFactoryStrategyIdAndName>> |
getStrategiesSubscribed()
Returns list of strategies the current user is subscribed to
https://metaapi.cloud/docs/copyfactory/restApi/api/history/getStrategiesSubscribed/
|
CompletableFuture<List<CopyFactoryTransaction>> |
getStrategiesSubscribedTransactions(cloud.metaapi.sdk.clients.models.IsoTime from,
cloud.metaapi.sdk.clients.models.IsoTime till)
Returns list of trades on the strategies the current user subscribed to
https://metaapi.cloud/docs/copyfactory/restApi/api/history/getStrategiesSubscribedTransactions/
Pagination offset is 0 and limit is default 1000.
|
CompletableFuture<List<CopyFactoryTransaction>> |
getStrategiesSubscribedTransactions(cloud.metaapi.sdk.clients.models.IsoTime from,
cloud.metaapi.sdk.clients.models.IsoTime till,
List<String> strategyIds,
List<String> accountIds,
List<String> providerIds)
Returns list of trades on the strategies the current user subscribed to
https://metaapi.cloud/docs/copyfactory/restApi/api/history/getStrategiesSubscribedTransactions/
Pagination offset is 0 and limit is default 1000.
|
CompletableFuture<List<CopyFactoryTransaction>> |
getStrategiesSubscribedTransactions(cloud.metaapi.sdk.clients.models.IsoTime from,
cloud.metaapi.sdk.clients.models.IsoTime till,
List<String> strategyIds,
List<String> accountIds,
List<String> providerIds,
Integer offset,
Integer limit)
Returns list of trades on the strategies the current user subscribed to
https://metaapi.cloud/docs/copyfactory/restApi/api/history/getStrategiesSubscribedTransactions/
|
CompletableFuture<List<CopyFactorySubscriberOrProvider>> |
getSubscribers()
Returns list of subscribers subscribed to the strategies of the current user
https://metaapi.cloud/docs/copyfactory/restApi/api/history/getSubscribers/
|
public HistoryClient(cloud.metaapi.sdk.clients.HttpClient httpClient,
String token)
agiliumtrade.agiliumtrade.aihttpClient - HTTP clienttoken - authorization tokenpublic CompletableFuture<List<CopyFactorySubscriberOrProvider>> getProviders()
public CompletableFuture<List<CopyFactorySubscriberOrProvider>> getSubscribers()
public CompletableFuture<List<CopyFactoryStrategyIdAndName>> getStrategiesSubscribed()
public CompletableFuture<List<CopyFactoryStrategyIdAndName>> getProvidedStrategies()
public CompletableFuture<List<CopyFactoryTransaction>> getProvidedStrategiesTransactions(cloud.metaapi.sdk.clients.models.IsoTime from, cloud.metaapi.sdk.clients.models.IsoTime till)
from - time to load transactions fromtill - time to load transactions tillpublic CompletableFuture<List<CopyFactoryTransaction>> getProvidedStrategiesTransactions(cloud.metaapi.sdk.clients.models.IsoTime from, cloud.metaapi.sdk.clients.models.IsoTime till, List<String> strategyIds, List<String> accountIds, List<String> subscriberIds)
from - time to load transactions fromtill - time to load transactions tillstrategyIds - optional list of strategy ids to filter transactions by, or nullaccountIds - the list of CopyFactory subscriber account id (64-character long) to filter by, or nullsubscriberIds - optional list of subscribers to filter transactions by, or nullpublic CompletableFuture<List<CopyFactoryTransaction>> getProvidedStrategiesTransactions(cloud.metaapi.sdk.clients.models.IsoTime from, cloud.metaapi.sdk.clients.models.IsoTime till, List<String> strategyIds, List<String> accountIds, 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 nullaccountIds - the list of CopyFactory subscriber account id (64-character long) to filter 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 1000public CompletableFuture<List<CopyFactoryTransaction>> getStrategiesSubscribedTransactions(cloud.metaapi.sdk.clients.models.IsoTime from, cloud.metaapi.sdk.clients.models.IsoTime till)
from - time to load transactions fromtill - time to load transactions tillpublic CompletableFuture<List<CopyFactoryTransaction>> getStrategiesSubscribedTransactions(cloud.metaapi.sdk.clients.models.IsoTime from, cloud.metaapi.sdk.clients.models.IsoTime till, List<String> strategyIds, List<String> accountIds, List<String> providerIds)
from - time to load transactions fromtill - time to load transactions tillstrategyIds - optional list of strategy ids to filter transactions by, or nullaccountIds - the list of CopyFactory subscriber account id (64-character long) to filter by, or nullproviderIds - optional list of providers to filter transactions by, or nullpublic CompletableFuture<List<CopyFactoryTransaction>> getStrategiesSubscribedTransactions(cloud.metaapi.sdk.clients.models.IsoTime from, cloud.metaapi.sdk.clients.models.IsoTime till, List<String> strategyIds, List<String> accountIds, 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 nullaccountIds - the list of CopyFactory subscriber account id (64-character long) to filter 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 1000Copyright © 2023. All rights reserved.