public static interface ServiceProvider.MetaApiConnectionProvider
MetaApiConnection. Using this interface it is possible to set MetaApiConnection
mock with function instead of passing already created object.| Modifier and Type | Method and Description |
|---|---|
MetaApiConnection |
create(MetaApiWebsocketClient websocketClient,
MetatraderAccount account,
HistoryStorage historyStorage,
ConnectionRegistry connectionRegistry,
IsoTime historyStartTime)
Creates MetaApiConnection mock
|
MetaApiConnection create(MetaApiWebsocketClient websocketClient, MetatraderAccount account, HistoryStorage historyStorage, ConnectionRegistry connectionRegistry, IsoTime historyStartTime)
websocketClient - MetaApi websocket clientaccount - MetaTrader account to connect tohistoryStorage - optional local terminal history storage. Use for accounts in user synchronization mode.
By default an instance of MemoryHistoryStorage will be used.connectionRegistry - metatrader account connection registryhistoryStartTime - history start sync time, or nullCopyright © 2022. All rights reserved.