30 public DateTime
Expiry {
get;
private set; }
74 expired = time.Date >
Expiry.Date;
84 expired = time >= exchangeHours.GetNextMarketClose(
Expiry.Date,
false);
109 var cutOffTimeSpan = TimeSpan.FromHours(17);
111 var expiryTime =
Expiry.Date.Add(cutOffTimeSpan);
115 var orderTime = order.
Time.ConvertFromUtc(cutOffTimeZone);
116 if (orderTime.TimeOfDay > cutOffTimeSpan)
119 expiryTime = expiryTime.AddDays(1);
123 return expiryTime.ConvertToUtc(cutOffTimeZone);