Table of Contents

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 ISecurityProvider

Security meta info provider.

Properties

Count

Gets the number of instruments contained in the ISecurityProvider.

public int Count { get; }

Property Value

int

Methods

DisposeManaged()

Release resources.

protected override void DisposeManaged()

Lookup(SecurityLookupMessage)

Lookup securities by criteria criteria.

public IEnumerable<Security> Lookup(SecurityLookupMessage criteria)

Parameters

criteria SecurityLookupMessage

Message 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 SecurityId

Security ID.

Returns

Security

The got instrument. If there is no instrument by given criteria, null is returned.

Events

Added

New instruments added.

public event Action<IEnumerable<Security>> Added

Event Type

Action<IEnumerable<Security>>

Cleared

The storage was cleared.

public event Action Cleared

Event Type

Action

Removed

Instruments removed.

public event Action<IEnumerable<Security>> Removed

Event Type

Action<IEnumerable<Security>>