| Package | Description |
|---|---|
| cloud.metaapi.sdk.clients.error_handler | |
| cloud.metaapi.sdk.clients.meta_api | |
| cloud.metaapi.sdk.clients.meta_api.models | |
| cloud.metaapi.sdk.meta_api | |
| cloud.metaapi.sdk.util |
| Modifier and Type | Field and Description |
|---|---|
IsoTime |
TooManyRequestsException.TooManyRequestsExceptionMetadata.recommendedRetryTime
Recommended date to retry request
|
| Modifier and Type | Field and Description |
|---|---|
IsoTime |
LatencyListener.ResponseTimestamps.clientProcessingFinished
Time when request processing have finished on client side
|
IsoTime |
LatencyListener.SymbolPriceTimestamps.clientProcessingFinished
Time the event processing have finished on client side
|
IsoTime |
LatencyListener.UpdateTimestamps.clientProcessingFinished
Time the event processing have finished on client side
|
IsoTime |
LatencyListener.TradeTimestamps.clientProcessingFinished
Time when event processing have finished on client side
|
IsoTime |
LatencyListener.ResponseTimestamps.clientProcessingStarted
Time when request processing have started on client side
|
IsoTime |
LatencyListener.TradeTimestamps.clientProcessingStarted
Time when request processing have started on client side
|
IsoTime |
LatencyListener.SymbolPriceTimestamps.eventGenerated
Time the event was generated on exchange side
|
IsoTime |
LatencyListener.UpdateTimestamps.eventGenerated
Time the event was generated on exchange side
|
IsoTime |
PacketOrderer.Packet.receivedAt
Time of receiving the packet
|
IsoTime |
LatencyListener.ResponseTimestamps.serverProcessingFinished
Time when request processing have finished on server side
|
IsoTime |
LatencyListener.SymbolPriceTimestamps.serverProcessingFinished
Time the event processing have finished on server side
|
IsoTime |
LatencyListener.UpdateTimestamps.serverProcessingFinished
Time the event processing have finished on server side
|
IsoTime |
LatencyListener.TradeTimestamps.serverProcessingFinished
Time when event processing have finished on server side
|
IsoTime |
LatencyListener.ResponseTimestamps.serverProcessingStarted
Time when request processing have started on server side
|
IsoTime |
LatencyListener.SymbolPriceTimestamps.serverProcessingStarted
Time the event processing have started on server side
|
IsoTime |
LatencyListener.UpdateTimestamps.serverProcessingStarted
Time the event processing have started on server side
|
IsoTime |
LatencyListener.TradeTimestamps.serverProcessingStarted
Time when event processing have started on server side
|
IsoTime |
LatencyListener.TradeTimestamps.tradeExecuted
Time the trade was executed on exchange side
|
IsoTime |
LatencyListener.TradeTimestamps.tradeStarted
Time the trade execution was started on server side
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<MetatraderDeals> |
MetaApiWebsocketClient.getDealsByTimeRange(String accountId,
IsoTime startTime,
IsoTime endTime,
int offset,
int limit)
Returns history deals with for a specific time range (see
https://metaapi.cloud/docs/client/websocket/api/retrieveHistoricalData/readDealsByTimeRange/).
|
CompletableFuture<List<MetatraderCandle>> |
HistoricalMarketDataClient.getHistoricalCandles(String accountId,
String symbol,
String timeframe,
IsoTime startTime,
Integer limit)
Returns historical candles for a specific symbol and timeframe from a MetaTrader account.
|
CompletableFuture<List<MetatraderTick>> |
HistoricalMarketDataClient.getHistoricalTicks(String accountId,
String symbol,
IsoTime startTime,
Integer offset,
Integer limit)
Returns historical ticks for a specific symbol from a MetaTrader account.
|
CompletableFuture<MetatraderHistoryOrders> |
MetaApiWebsocketClient.getHistoryOrdersByTimeRange(String accountId,
IsoTime startTime,
IsoTime endTime,
int offset,
int limit)
Returns the history of completed orders for a specific time range (see
https://metaapi.cloud/docs/client/websocket/api/retrieveHistoricalData/readHistoryOrdersByTimeRange/).
|
void |
OutOfOrderListener.onOutOfOrderPacket(String accountId,
int instanceIndex,
long expectedSequenceNumber,
long actualSequenceNumber,
com.fasterxml.jackson.databind.JsonNode packet,
IsoTime receivedAt)
Method to receive out of order packet events
|
void |
MetaApiWebsocketClient.onOutOfOrderPacket(String accountId,
int instanceIndex,
long expectedSequenceNumber,
long actualSequenceNumber,
com.fasterxml.jackson.databind.JsonNode packet,
IsoTime receivedAt)
Restarts the account synchronization process on an out of order packet
|
CompletableFuture<Boolean> |
MetaApiWebsocketClient.synchronize(String accountId,
Integer instanceIndex,
String host,
String synchronizationId,
IsoTime startingHistoryOrderTime,
IsoTime startingDealTime)
Requests the terminal to start synchronization process
(see https://metaapi.cloud/docs/client/websocket/synchronizing/synchronize/).
|
| Modifier and Type | Field and Description |
|---|---|
IsoTime |
MetatraderOrder.doneTime
Time order was executed or canceled at or
null. |
IsoTime |
MetatraderOrder.expirationTime
Optional order expiration time or
null |
IsoTime |
MetatraderSymbolSpecification.expirationTime
Date of the symbol trade end (usually used for futures)
|
IsoTime |
MetatraderSymbolSpecification.startTime
Date of the symbol trade beginning (usually used for futures)
|
IsoTime |
MetatraderBook.time
Time
|
IsoTime |
MetatraderTick.time
Time
|
IsoTime |
MetatraderDeal.time
Time the deal was conducted at
|
IsoTime |
MetatraderOrder.time
Time order was created at
|
IsoTime |
ExpirationOptions.time
Optional pending order expiration time or
null. |
IsoTime |
MetatraderSymbolPrice.time
Quote time, in ISO format
|
IsoTime |
MetatraderPosition.time
Time position was opened at
|
IsoTime |
MetatraderCandle.time
Candle opening time
|
IsoTime |
MetatraderPosition.updateTime
Last position modification time
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<IsoTime> |
HistoryStorage.getLastDealTime()
Returns the time of the last history deal record stored in the history storage
|
CompletableFuture<IsoTime> |
MemoryHistoryStorage.getLastDealTime(Integer instanceNumber) |
abstract CompletableFuture<IsoTime> |
HistoryStorage.getLastDealTime(Integer instanceIndex)
Returns the time of the last history deal record stored in the history storage
|
CompletableFuture<IsoTime> |
HistoryStorage.getLastHistoryOrderTime()
Returns the time of the last history order record stored in the history storage
|
CompletableFuture<IsoTime> |
MemoryHistoryStorage.getLastHistoryOrderTime(Integer instanceNumber) |
abstract CompletableFuture<IsoTime> |
HistoryStorage.getLastHistoryOrderTime(Integer instanceIndex)
Returns the time of the last history order record stored in the history storage
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<MetaApiConnection> |
MetatraderAccount.connect(HistoryStorage historyStorage,
IsoTime historyStartTime)
Connects to MetaApi.
|
CompletableFuture<MetaApiConnection> |
ConnectionRegistry.connect(MetatraderAccount account,
HistoryStorage historyStorage,
IsoTime historyStartTime)
Creates and returns a new account connection if doesnt exist, otherwise returns old
|
CompletableFuture<MetatraderDeals> |
MetaApiConnection.getDealsByTimeRange(IsoTime startTime,
IsoTime endTime,
int offset,
int limit)
Returns history deals with for a specific time range (see
https://metaapi.cloud/docs/client/websocket/api/retrieveHistoricalData/readDealsByTimeRange/).
|
CompletableFuture<List<MetatraderCandle>> |
MetatraderAccount.getHistoricalCandles(String symbol,
String timeframe,
IsoTime startTime)
Returns historical candles for a specific symbol and timeframe from the MetaTrader account.
|
CompletableFuture<List<MetatraderCandle>> |
MetatraderAccount.getHistoricalCandles(String symbol,
String timeframe,
IsoTime startTime,
Integer limit)
Returns historical candles for a specific symbol and timeframe from the MetaTrader account.
|
CompletableFuture<List<MetatraderTick>> |
MetatraderAccount.getHistoricalTicks(String symbol,
IsoTime startTime)
Returns historical ticks for a specific symbol from the MetaTrader account.
|
CompletableFuture<List<MetatraderTick>> |
MetatraderAccount.getHistoricalTicks(String symbol,
IsoTime startTime,
Integer offset,
Integer limit)
Returns historical ticks for a specific symbol from the MetaTrader account.
|
CompletableFuture<MetatraderHistoryOrders> |
MetaApiConnection.getHistoryOrdersByTimeRange(IsoTime startTime,
IsoTime endTime,
int offset,
int limit)
Returns the history of completed orders for a specific time range (see
https://metaapi.cloud/docs/client/websocket/api/retrieveHistoricalData/readHistoryOrdersByTimeRange/)
|
| Constructor and Description |
|---|
MetaApiConnection(MetaApiWebsocketClient websocketClient,
MetatraderAccount account,
HistoryStorage historyStorage,
ConnectionRegistry connectionRegistry,
IsoTime historyStartTime)
Constructs MetaApi MetaTrader Api connection
|
| Modifier and Type | Method and Description |
|---|---|
MetaApiConnection |
ServiceProvider.MetaApiConnectionProvider.create(MetaApiWebsocketClient websocketClient,
MetatraderAccount account,
HistoryStorage historyStorage,
ConnectionRegistry connectionRegistry,
IsoTime historyStartTime)
Creates MetaApiConnection mock
|
static MetaApiConnection |
ServiceProvider.createMetaApiConnection(MetaApiWebsocketClient websocketClient,
MetatraderAccount account,
HistoryStorage historyStorage,
ConnectionRegistry connectionRegistry,
IsoTime historyStartTime)
Constructs metaapi connection with its corresponding constructor or returns a mock if it is set.
|
Copyright © 2021. All rights reserved.