Interface IMarketRuleList
The interface, describing the rules list.
Namespace: StockSharp.Algo
Assembly: StockSharp.Algo.dll
Syntax
public interface IMarketRuleList : INotifyList<IMarketRule>, INotifyCollection<IMarketRule>, ICollection<IMarketRule>, IEnumerable<IMarketRule>, IEnumerable, IList<IMarketRule>
Properties
Tokens
To get all active tokens of rules.
Declaration
IEnumerable<object> Tokens { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Object> |
Methods
GetRulesByToken(Object)
To get all rules, associated with tokens.
Declaration
IEnumerable<IMarketRule> GetRulesByToken(object token)
Parameters
Type | Name | Description |
---|---|---|
Object | token | Token rules. |
Returns
Type | Description |
---|---|
IEnumerable<IMarketRule> | All rules, associated with token. |
RemoveRulesByToken(Object, IMarketRule)
Delete all rules, for which Token is equal to token
.
Declaration
void RemoveRulesByToken(object token, IMarketRule currentRule)
Parameters
Type | Name | Description |
---|---|---|
Object | token | Token rules. |
IMarketRule | currentRule | The current rule that has initiated deletion. If it was passed, it will not be deleted. |