| Package | Description |
|---|---|
| cloud.metaapi.sdk.clients.meta_api | |
| cloud.metaapi.sdk.meta_api |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<MetatraderCandle> |
MetaApiWebsocketClient.getCandle(String accountId,
String symbol,
String timeframe)
Retrieves price for a symbol (see
https://metaapi.cloud/docs/client/websocket/api/retrieveMarketData/readCandle/).
|
CompletableFuture<List<MetatraderCandle>> |
HistoricalMarketDataClient.getHistoricalCandles(String accountId,
String symbol,
String timeframe,
cloud.metaapi.sdk.clients.models.IsoTime startTime,
Integer limit)
Returns historical candles for a specific symbol and timeframe from a MetaTrader account.
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
SynchronizationListener.onCandlesUpdated(String instanceIndex,
List<MetatraderCandle> candles,
Double equity,
Double margin,
Double freeMargin,
Double marginLevel,
Double accountCurrencyExchangeRate)
Invoked when symbol candles were updated
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<MetatraderCandle> |
MetaApiConnection.getCandle(String symbol,
String timeframe)
Retrieves latest candle for a symbol and timeframe (see
https://metaapi.cloud/docs/client/websocket/api/retrieveMarketData/readCandle/).
|
CompletableFuture<List<MetatraderCandle>> |
MetatraderAccount.getHistoricalCandles(String symbol,
String timeframe)
Returns historical candles for a specific symbol and timeframe from the MetaTrader account.
|
CompletableFuture<List<MetatraderCandle>> |
MetatraderAccount.getHistoricalCandles(String symbol,
String timeframe,
cloud.metaapi.sdk.clients.models.IsoTime startTime)
Returns historical candles for a specific symbol and timeframe from the MetaTrader account.
|
CompletableFuture<List<MetatraderCandle>> |
MetatraderAccount.getHistoricalCandles(String symbol,
String timeframe,
cloud.metaapi.sdk.clients.models.IsoTime startTime,
Integer limit)
Returns historical candles for a specific symbol and timeframe from the MetaTrader account.
|
Copyright © 2022. All rights reserved.