ISecurityMessageProvider
StockSharp.Messages
The interface for access to provider of information about instruments.
Methods
LookupMessageByIdAsync
public ValueTask<SecurityMessage> LookupMessageByIdAsync(SecurityId id, CancellationToken cancellationToken)
result = iSecurityMessageProvider.LookupMessageByIdAsync(id, cancellationToken)
To get the instrument by the identifier.
- id
- Security ID.
- cancellationToken
- CancellationToken
Returns: The got instrument. If there is no instrument by given criteria, is returned.
LookupMessagesAsync
public IAsyncEnumerable<SecurityMessage> LookupMessagesAsync(SecurityLookupMessage criteria)
result = iSecurityMessageProvider.LookupMessagesAsync(criteria)
Lookup securities by criteria .
- criteria
- Message security lookup for specified criteria.
Returns: Found instruments.