Click or drag to resize

ExtensionsGetTimeFrames Method

Get possible time-frames for the specified instrument.

Namespace:  StockSharp.Messages
Assembly:  StockSharp.Messages (in StockSharp.Messages.dll) Version: 4.4.17.0 (4.4.17)
Syntax
C#
public static IEnumerable<TimeSpan> GetTimeFrames(
	this IMessageAdapter adapter,
	SecurityId securityId = null,
	Nullable<DateTimeOffset> from = null,
	Nullable<DateTimeOffset> to = null
)

Parameters

adapter
Type: StockSharp.MessagesIMessageAdapter
Trading system adapter.
securityId (Optional)
Type: StockSharp.MessagesSecurityId
Security ID.
from (Optional)
Type: SystemNullableDateTimeOffset
The initial date from which you need to get data.
to (Optional)
Type: SystemNullableDateTimeOffset
The final date by which you need to get data.

Return Value

Type: IEnumerableTimeSpan
Possible time-frames.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IMessageAdapter. 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