InMemoryExchangeInfoProvider
StockSharp.BusinessEntities
The in memory provider of stocks and trade boards.
Implementa: IExchangeInfoProvider, IBoardMessageProvider
Constructores
InMemoryExchangeInfoProvider()
Initializes a new instance of the InMemoryExchangeInfoProvider.
Propiedades
Boards : IEnumerable<ExchangeBoard>
All exchanges.
Exchanges : IEnumerable<Exchange>
List of exchanges.
Métodos
InitAsync(CancellationToken) : ValueTask
Initialize the storage.
- cancellationToken
- CancellationToken
TryGetExchange(string) : Exchange
To get an exchange by the code.
- code
- The exchange code Name.
Devuelve: 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.
Devuelve: Trading board. If the board with the specified code does not exist, then will be returned.
Eventos
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.