Click or drag to resize

FinamHistorySourceGetCandles Method

To download candles.

Namespace:  StockSharp.Algo.History.Russian.Finam
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
)

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.

Return Value

Type: IEnumerableTimeFrameCandleMessage
Downloaded candles.
See Also