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.
方法
InitAsync(CancellationToken) : ValueTask
Initialize the storage.
- cancellationToken
- CancellationToken
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.