Skip to content

TimeSeries.Item

property · TimeSeries · cAlgo.API

DesktopCLICloud

Returns the DateTime value at the specified index.

Definition

DateTime Item {get;}
timeSeries[index: int] -> DateTime

Parameters

Name C# type Python type Description
index int int The index of the returned value within the series.

Returns DateTime

Examples

var firstBarTime = Bars.OpenTimes[0];
Print("The first loaded bar opened at {0}", firstBarTime);
firstBarTime = api.Bars.OpenTimes[0]
api.Print(f"The first loaded bar opened at {firstBarTime}")