Click or drag to resize

AlorHistorySourceGetCandles Method

To download candles.

Namespace:  StockSharp.Algo.History.Russian
Assembly:  StockSharp.Algo.History (in StockSharp.Algo.History.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
public IEnumerable<TimeFrameCandleMessage> GetCandles(
	Security security,
	TimeSpan timeFrame,
	DateTime from,
	DateTime to,
	int count = 10000
)

Parameters

security
Type: StockSharp.BusinessEntitiesSecurity
The instrument for which you need to get candles.
timeFrame
Type: SystemTimeSpan
Time-frame. Possible values TimeFrames.
from
Type: SystemDateTime
Begin period.
to
Type: SystemDateTime
End period.
count (Optional)
Type: SystemInt32
The maximum number of candles you need to get (at least 1 and not more than 10000).

Return Value

Type: IEnumerableTimeFrameCandleMessage
Downloaded candles.
See Also