| Package | Description |
|---|---|
| cloud.metaapi.sdk.meta_api | |
| cloud.metaapi.sdk.util |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<MetaApiConnection> |
MetatraderAccount.connect()
Connects to MetaApi with default history storage.
|
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 |
|---|
ConnectionHealthMonitor(MetaApiConnection connection)
Constructs the listener
|
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
ServiceProvider.setMetApiConnectionMock(MetaApiConnection mock)
Sets metaapi connection mock that will be created by this provider.
|
Copyright © 2022. All rights reserved.