InMemoryExchangeInfoProvider

StockSharp.BusinessEntities

The in memory provider of stocks and trade boards.

Реализует: IExchangeInfoProvider, IBoardMessageProvider

Конструкторы

InMemoryExchangeInfoProvider()

Initializes a new instance of the InMemoryExchangeInfoProvider.

Свойства

Boards : IEnumerable<ExchangeBoard>

All exchanges.

Exchanges : IEnumerable<Exchange>

List of exchanges.

Методы

Delete(Exchange)

Delete exchange.

exchange
Exchange.
Delete(ExchangeBoard)

Delete exchange board.

board
Exchange board.
InitAsync(CancellationToken) : ValueTask

Initialize the storage.

cancellationToken
CancellationToken
Save(ExchangeBoard)

To save the board.

board
Trading board.
Save(Exchange)

To save the exchange.

exchange
Exchange.
TryGetExchange(string) : Exchange

To get an exchange by the code.

code
The exchange code Name.

Возвращает: 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.

Возвращает: Trading board. If the board with the specified code does not exist, then will be returned.

События

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.