Click or drag to resize

TraderHelperGetFortsJumps Method (String, DateTime, DateTime, FuncString, Security, Boolean)

To get real expiration instruments for base part of the code.

Namespace:  StockSharp.Algo
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
public static IEnumerable<Security> GetFortsJumps(
	this string baseCode,
	DateTime from,
	DateTime to,
	Func<string, Security> getSecurity,
	bool throwIfNotExists = true
)

Parameters

baseCode
Type: SystemString
The base part of the instrument code.
from
Type: SystemDateTime
The start of the expiration range.
to
Type: SystemDateTime
The end of the expiration range.
getSecurity
Type: SystemFuncString, Security
The function to get instrument by the code.
throwIfNotExists (Optional)
Type: SystemBoolean
To generate exception, if some of instruments are not available.

Return Value

Type: IEnumerableSecurity
Expiration instruments.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also