Package cloud.metaapi.sdk.util
Interface ServiceProvider.MetaApiConnectionProvider
-
- Enclosing class:
- ServiceProvider
public static interface ServiceProvider.MetaApiConnectionProviderInterface for creatingMetaApiConnection. Using this interface it is possible to set MetaApiConnection mock with function instead of passing already created object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MetaApiConnectioncreate(MetaApiWebsocketClient websocketClient, MetatraderAccount account, HistoryStorage historyStorage, ConnectionRegistry connectionRegistry)Creates MetaApiConnection mock
-
-
-
Method Detail
-
create
MetaApiConnection create(MetaApiWebsocketClient websocketClient, MetatraderAccount account, HistoryStorage historyStorage, ConnectionRegistry connectionRegistry)
Creates MetaApiConnection mock- Parameters:
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 registry- Returns:
- MetaApiConnection mock
-
-