Skip to content

Bar.OpenTime

property · Bar · cAlgo.API

DesktopCLICloud

Gets the bar open time.

Definition

public DateTime OpenTime {get;}
bar.OpenTime: DateTime

Returns DateTime

Examples

Print("Last bar opened at {0}", Bars.LastBar.OpenTime);
api.Print(f"Last bar opened at {api.Bars.LastBar.OpenTime}")