Click or drag to resize

StorageHelperLoadTData Method

To create an iterative loader of market data for the time 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<TData> Load<TData>(
	this IMarketDataStorage<TData> storage,
	Nullable<DateTimeOffset> from = null,
	Nullable<DateTimeOffset> to = null
)

Parameters

storage
Type: StockSharp.Algo.StoragesIMarketDataStorageTData
Market-data storage.
from (Optional)
Type: SystemNullableDateTimeOffset
The start time for data loading. If the value is not specified, data will be loaded from the starting time GetFromDate(IMarketDataStorage).
to (Optional)
Type: SystemNullableDateTimeOffset
The end time for data loading. If the value is not specified, data will be loaded up to the GetToDate(IMarketDataStorage) date, inclusive.

Type Parameters

TData
Data type.

Return Value

Type: IEnumerableTData
The iterative loader of market data.

Usage Note

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