IExchangeInfoProvider
StockSharp.BusinessEntities
Interface describing exchanges and trading boards provider.
Implements: IBoardMessageProvider
Properties
Boards
public IEnumerable<ExchangeBoard> Boards { get; }
value = iExchangeInfoProvider.Boards
All exchanges.
Exchanges
public IEnumerable<Exchange> Exchanges { get; }
value = iExchangeInfoProvider.Exchanges
All boards.
Methods
Delete
public void Delete(Exchange exchange)
iExchangeInfoProvider.Delete(exchange)
Delete exchange.
- exchange
- Exchange.
Delete
public void Delete(ExchangeBoard board)
iExchangeInfoProvider.Delete(board)
Delete exchange board.
- board
- Exchange board.
InitAsync
public ValueTask InitAsync(CancellationToken cancellationToken)
result = iExchangeInfoProvider.InitAsync(cancellationToken)
Initialize the storage.
Save
public void Save(ExchangeBoard board)
iExchangeInfoProvider.Save(board)
To save the board.
- board
- Trading board.
Save
public void Save(Exchange exchange)
iExchangeInfoProvider.Save(exchange)
To save the exchange.
- exchange
- Exchange.
TryGetExchange
public Exchange TryGetExchange(string code)
result = iExchangeInfoProvider.TryGetExchange(code)
To get an exchange by the code.
- code
- The exchange code Name.
Returns: Exchange. If the exchange with the specified code does not exist, then will be returned.
TryGetExchangeBoard
public ExchangeBoard TryGetExchangeBoard(string code)
result = iExchangeInfoProvider.TryGetExchangeBoard(code)
To get a board by the code.
- code
- The board code Code.
Returns: Trading board. If the board with the specified code does not exist, then will be returned.
Events
BoardAdded
public event Action<ExchangeBoard> BoardAdded
iExchangeInfoProvider.BoardAdded += handler
Notification about adding a new board.
BoardRemoved
public event Action<ExchangeBoard> BoardRemoved
iExchangeInfoProvider.BoardRemoved += handler
Notification about removing the existing board.
ExchangeAdded
public event Action<Exchange> ExchangeAdded
iExchangeInfoProvider.ExchangeAdded += handler
Notification about adding a new exchange.
ExchangeRemoved
public event Action<Exchange> ExchangeRemoved
iExchangeInfoProvider.ExchangeRemoved += handler
Notification about removing the existing exchange.