| Package | Description |
|---|---|
| cloud.metaapi.sdk.meta_api | |
| cloud.metaapi.sdk.util |
| Modifier and Type | Class and Description |
|---|---|
class |
MemoryHistoryStorage
History storage which stores MetaTrader history in RAM
|
| Modifier and Type | Method and Description |
|---|---|
HistoryStorage |
MetaApiConnection.getHistoryStorage()
Returns local history storage
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<MetaApiConnection> |
MetatraderAccount.connect(HistoryStorage historyStorage)
Connects to MetaApi.
|
CompletableFuture<MetaApiConnection> |
MetatraderAccount.connect(HistoryStorage historyStorage,
IsoTime historyStartTime)
Connects to MetaApi.
|
CompletableFuture<MetaApiConnection> |
ConnectionRegistry.connect(MetatraderAccount account,
HistoryStorage historyStorage)
Creates and returns a new account connection if doesnt exist, otherwise returns old
|
CompletableFuture<MetaApiConnection> |
ConnectionRegistry.connect(MetatraderAccount account,
HistoryStorage historyStorage,
IsoTime historyStartTime)
Creates and returns a new account connection if doesnt exist, otherwise returns old
|
| Constructor and Description |
|---|
HistoryFileManager(String accountId,
String application,
HistoryStorage historyStorage)
Constructs the history file manager instance
|
MetaApiConnection(MetaApiWebsocketClient websocketClient,
MetatraderAccount account,
HistoryStorage historyStorage,
ConnectionRegistry connectionRegistry)
Constructs MetaApi MetaTrader Api connection
|
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 HistoryFileManager |
ServiceProvider.createHistoryFileManager(String accountId,
String application,
HistoryStorage storage)
Constructs history file manager with its corresponding constructor or returns a mock if it is set.
|
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 © 2020. All rights reserved.