Click or drag to resize

DerivativesHelperGetExpirationTimeLine Method (DateTimeOffset, DateTimeOffset, TimeSpan)

To get the option period before expiration.

Namespace:  StockSharp.Algo.Derivatives
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
public static Nullable<double> GetExpirationTimeLine(
	DateTimeOffset expirationTime,
	DateTimeOffset currentTime,
	TimeSpan timeLine
)

Parameters

expirationTime
Type: SystemDateTimeOffset
The option expiration time.
currentTime
Type: SystemDateTimeOffset
The current time.
timeLine
Type: SystemTimeSpan
The length of the total period.

Return Value

Type: NullableDouble
The option period before expiration. If the value is equal to , then the value calculation currently is impossible.
See Also