InMemoryExchangeInfoProvider
StockSharp.BusinessEntities
The in memory provider of stocks and trade boards.
Implementiert: IExchangeInfoProvider, IBoardMessageProvider
Konstruktoren
InMemoryExchangeInfoProvider()
Initializes a new instance of the InMemoryExchangeInfoProvider.
Eigenschaften
Boards : IEnumerable<ExchangeBoard>
All exchanges.
Exchanges : IEnumerable<Exchange>
List of exchanges.
Methoden
InitAsync(CancellationToken) : ValueTask
Initialize the storage.
- cancellationToken
- CancellationToken
TryGetExchange(string) : Exchange
To get an exchange by the code.
- code
- The exchange code Name.
Rückgabe: Exchange. If the exchange with the specified code does not exist, then will be returned.
TryGetExchangeBoard(string) : ExchangeBoard
To get a board by the code.
- code
- The board code Code.
Rückgabe: Trading board. If the board with the specified code does not exist, then will be returned.
Ereignisse
BoardAdded : Action<ExchangeBoard>
Notification about adding a new board.
BoardRemoved : Action<ExchangeBoard>
Notification about removing the existing board.
ExchangeAdded : Action<Exchange>
Notification about adding a new exchange.
ExchangeRemoved : Action<Exchange>
Notification about removing the existing exchange.