Click or drag to resize

StorageHelperGetDates Method

To get all dates for stored market data for the specified range.

Namespace:  StockSharp.Algo.Storages
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
public static IEnumerable<DateTime> GetDates(
	this IMarketDataStorage storage,
	Nullable<DateTime> from,
	Nullable<DateTime> to
)

Parameters

storage
Type: StockSharp.Algo.StoragesIMarketDataStorage
Market-data storage.
from
Type: SystemNullableDateTime
The range start time. If the value is not specified, data will be loaded from the start date GetFromDate(IMarketDataStorage).
to
Type: SystemNullableDateTime
The range end time. If the value is not specified, data will be loaded up to the end date GetToDate(IMarketDataStorage), inclusive.

Return Value

Type: IEnumerableDateTime
All available data within the range.

Usage Note

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