Class FilterableSecurityProvider
- Namespace
- StockSharp.Algo
- Assembly
- StockSharp.Algo.dll
Provider of information about instruments supporting search using SecurityTrie.
public class FilterableSecurityProvider : Disposable, ISecurityProvider, ISecurityMessageProvider
- Inheritance
-
FilterableSecurityProvider
- Implements
- Extension Methods
Constructors
FilterableSecurityProvider(ISecurityProvider)
Initializes a new instance of the FilterableSecurityProvider.
public FilterableSecurityProvider(ISecurityProvider provider)
Parameters
provider
ISecurityProviderSecurity meta info provider.
Properties
Count
Gets the number of instruments contained in the ISecurityProvider.
public int Count { get; }
Property Value
Methods
DisposeManaged()
Release resources.
protected override void DisposeManaged()
Lookup(SecurityLookupMessage)
Lookup securities by criteria criteria
.
public IEnumerable<Security> Lookup(SecurityLookupMessage criteria)
Parameters
criteria
SecurityLookupMessageMessage security lookup for specified criteria.
Returns
- IEnumerable<Security>
Found instruments.
LookupById(SecurityId)
To get the instrument by the identifier.
public Security LookupById(SecurityId id)
Parameters
id
SecurityIdSecurity ID.
Returns
Events
Added
New instruments added.
public event Action<IEnumerable<Security>> Added
Event Type
Cleared
The storage was cleared.
public event Action Cleared
Event Type
Removed
Instruments removed.
public event Action<IEnumerable<Security>> Removed