Table of Contents

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

int

Methods

Lookup(SecurityLookupMessage)

Lookup securities by criteria criteria.

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.

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.

event Action<IEnumerable<Security>> Added

Event Type

Action<IEnumerable<Security>>

Cleared

The storage was cleared.

event Action Cleared

Event Type

Action

Removed

Instruments removed.

event Action<IEnumerable<Security>> Removed

Event Type

Action<IEnumerable<Security>>