public class MetaStatsClient extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MetaStatsClient.CurrencySummaryHistoryDayMetrics
Profit from trading a currency pair in one trading day
|
static class |
MetaStatsClient.CurrencySummaryMetrics
Provides statistics on winning and losing trades indicating the amount in the context
of long and short positions.
|
static class |
MetaStatsClient.CurrencySummaryTotalMetrics
Provides general data of this currency trading
|
static class |
MetaStatsClient.CurrencySummaryTradeMetrics
Provides profit and number of trades in specific trade and currency
|
static class |
MetaStatsClient.DailyGrowthMetrics
Provides each profit received from the volume of trade and changes in balance, total
accumulated income and existing account drawdown by day
|
static class |
MetaStatsClient.Metrics
Trading statistics metrics
|
protected static class |
MetaStatsClient.MetricsResponse
Metrics response model
|
static class |
MetaStatsClient.MonthlyAnalyticCurrencyMetrics
Currency pair trading information for monthly analysis
|
static class |
MetaStatsClient.MonthlyAnalyticsMetrics
Monthly analysis of trading on this account
|
static class |
MetaStatsClient.OneTradeDurationMetrics
Metrics of one trade duration
|
static class |
MetaStatsClient.PeriodMetrics
Provides statistics for one trade period compared to the results for the previous period
|
static class |
MetaStatsClient.Periods
Provides statistics for today, this week, this month, this year
|
static class |
MetaStatsClient.RiskOfRuinMetrics
Risk of ruin of balance metrics
|
static class |
MetaStatsClient.TradeByTimeMetrics
Opening/closing deals by days of the week or by by hours of the day
|
static class |
MetaStatsClient.TradeDurationDiagramColumnCollectionMetrics
Collection of metrics of trades in the current column for the diagram
|
static class |
MetaStatsClient.TradeDurationDiagramColumnMetrics
Information column about the duration of trades for the diagram
|
static class |
MetaStatsClient.TradeDurationMetrics
Metrics for each duration of trades
|
| Constructor and Description |
|---|
MetaStatsClient(HttpClient httpClient,
String token)
Constructs MetaStats API client instance with default domain agiliumtrade.agiliumtrade.ai
|
MetaStatsClient(HttpClient httpClient,
String token,
String domain)
Constructs MetaStats API client instance
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<MetaStatsClient.Metrics> |
getMetrics(String accountId)
Returns metrics of MetaApi account without including open positions
Https://metastats-api-v1.agiliumtrade.agiliumtrade.ai/swagger/#!/default/get_users_current_accounts_accountId_metrics
|
CompletableFuture<MetaStatsClient.Metrics> |
getMetrics(String accountId,
boolean includeOpenPositions)
Returns metrics of MetaApi account
Https://metastats-api-v1.agiliumtrade.agiliumtrade.ai/swagger/#!/default/get_users_current_accounts_accountId_metrics
|
public MetaStatsClient(HttpClient httpClient, String token)
httpClient - HTTP clienttoken - authorization tokenpublic MetaStatsClient(HttpClient httpClient, String token, String domain)
httpClient - HTTP clienttoken - authorization tokendomain - domain to connect topublic CompletableFuture<MetaStatsClient.Metrics> getMetrics(String accountId)
accountId - MetaApi account idpublic CompletableFuture<MetaStatsClient.Metrics> getMetrics(String accountId, boolean includeOpenPositions)
accountId - MetaApi account idincludeOpenPositions - indicates whether open positions will be included
In the metrics, default falseCopyright © 2021. All rights reserved.