Interface ISecurityProvider
The interface for access to provider of information about instruments.
Namespace: StockSharp.BusinessEntities
Assembly: StockSharp.BusinessEntities.dll
Syntax
public interface ISecurityProvider
Properties
Count
Gets the number of instruments contained in the ISecurityProvider.
Declaration
int Count { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
Lookup(SecurityLookupMessage)
Lookup securities by criteria criteria
.
Declaration
IEnumerable<Security> Lookup(SecurityLookupMessage criteria)
Parameters
Type | Name | Description |
---|---|---|
SecurityLookupMessage | criteria | Message security lookup for specified criteria. |
Returns
Type | Description |
---|---|
IEnumerable<Security> | Found instruments. |
LookupById(SecurityId)
To get the instrument by the identifier.
Declaration
Security LookupById(SecurityId id)
Parameters
Type | Name | Description |
---|---|---|
SecurityId | id | Security ID. |
Returns
Type | Description |
---|---|
Security | The got instrument. If there is no instrument by given criteria, null is returned. |
Events
Added
New instruments added.
Declaration
event Action<IEnumerable<Security>> Added
Event Type
Type | Description |
---|---|
Action<IEnumerable<Security>> |
Cleared
The storage was cleared.
Declaration
event Action Cleared
Event Type
Type | Description |
---|---|
Action |
Removed
Instruments removed.
Declaration
event Action<IEnumerable<Security>> Removed
Event Type
Type | Description |
---|---|
Action<IEnumerable<Security>> |