FuturesSettings.LastTradeTime
property · FuturesSettings · cAlgo.API Since 5.2
DesktopCLICloud
Gets the last trade time of future contract.
Definition
DateTime LastTradeTime {get;}
futuresSettings.LastTradeTime: DateTime
Returns DateTime
Examples
var futuresSettings = Symbol.FuturesSettings;
if (futuresSettings != null && Server.Time >= futuresSettings.LastTradeTime)
Print("Trading for {0} has ended", SymbolName);
futuresSettings = api.Symbol.FuturesSettings
if futuresSettings is not None and api.Server.Time >= futuresSettings.LastTradeTime:
api.Print(f"Trading for {api.SymbolName} has ended")