Interface ISecurityProvider
- Namespace
- StockSharp.BusinessEntities
- Assembly
- StockSharp.BusinessEntities.dll
The interface for access to provider of information about instruments.
public interface ISecurityProvider : ISecurityMessageProvider- Inherited Members
- Extension Methods
Properties
Count
Gets the number of instruments contained in the ISecurityProvider.
int Count { get; }Property Value
Methods
Lookup(SecurityLookupMessage)
Lookup securities by criteria criteria.
IEnumerable<Security> Lookup(SecurityLookupMessage criteria)Parameters
- criteriaSecurityLookupMessage
- Message security lookup for specified criteria. 
Returns
- IEnumerable<Security>
- Found instruments. 
LookupById(SecurityId)
To get the instrument by the identifier.
Security LookupById(SecurityId id)Parameters
- idSecurityId
- Security ID. 
Returns
Events
Added
New instruments added.
event Action<IEnumerable<Security>> AddedEvent Type
Cleared
The storage was cleared.
event Action ClearedEvent Type
Removed
Instruments removed.
event Action<IEnumerable<Security>> Removed