InMemoryExchangeInfoProvider

StockSharp.BusinessEntities

O provedor de memória de ações e conselhos de comércio.

Implementa: IExchangeInfoProvider, IBoardMessageProvider

Construtores

InMemoryExchangeInfoProvider
public InMemoryExchangeInfoProvider()
inMemoryExchangeInfoProvider = InMemoryExchangeInfoProvider()

Inicializa uma nova instância do InMemoryExchangeInfoProvider.

Propriedades

Boards
public IEnumerable<ExchangeBoard> Boards { get; }
value = inMemoryExchangeInfoProvider.Boards

Todas as trocas.

Exchanges
public IEnumerable<Exchange> Exchanges { get; }
value = inMemoryExchangeInfoProvider.Exchanges

Lista de trocas.

Métodos

Delete
public virtual void Delete(Exchange exchange)
inMemoryExchangeInfoProvider.Delete(exchange)

Apagar a troca.

exchange
Troca.
Delete
public virtual void Delete(ExchangeBoard board)
inMemoryExchangeInfoProvider.Delete(board)

Apagar o quadro de troca.

board
- Um quadro de troca.
InitAsync
public virtual ValueTask InitAsync(CancellationToken cancellationToken)
result = inMemoryExchangeInfoProvider.InitAsync(cancellationToken)

Inicializar o armazenamento.

Save
public virtual void Save(ExchangeBoard board)
inMemoryExchangeInfoProvider.Save(board)

Para salvar o tabuleiro.

board
Quadro de negociação.
Save
public virtual void Save(Exchange exchange)
inMemoryExchangeInfoProvider.Save(exchange)

Para salvar a troca.

exchange
Troca.
TryGetExchange
public Exchange TryGetExchange(string code)
result = inMemoryExchangeInfoProvider.TryGetExchange(code)

Para obter uma troca pelo código.

code
O código de troca Nome.

Retorna: Troca. Se a troca com o código especificado não existir, então será devolvido.

TryGetExchangeBoard
public ExchangeBoard TryGetExchangeBoard(string code)
result = inMemoryExchangeInfoProvider.TryGetExchangeBoard(code)

Para obter uma placa pelo código.

code
O código do conselho.

Retorna: Placa de negociação. Se o tabuleiro com o código especificado não existir, então será devolvido.

Eventos

BoardAdded
public event Action<ExchangeBoard> BoardAdded
inMemoryExchangeInfoProvider.BoardAdded += handler

Notificação sobre a adição de um novo tabuleiro.

BoardRemoved
public event Action<ExchangeBoard> BoardRemoved
inMemoryExchangeInfoProvider.BoardRemoved += handler

Notificação sobre a remoção do quadro existente.

ExchangeAdded
public event Action<Exchange> ExchangeAdded
inMemoryExchangeInfoProvider.ExchangeAdded += handler

Notificação sobre a adição de uma nova troca.

ExchangeRemoved
public event Action<Exchange> ExchangeRemoved
inMemoryExchangeInfoProvider.ExchangeRemoved += handler

Notificação sobre a remoção da troca existente.