fix: Add nullcheck in TradeLogRow ctr

This commit is contained in:
John Colvin committed 2022-05-02 17:29:29 -04:00
1 parent 193b1025ad
commit 19fb08e7ff
1 file changed
+1 -1
+1 -1
View File
@@ -27,7 +27,7 @@ namespace mbts {
theo = price;
account = m_fill.AccountName;
is_day_trade = true;
time_entered = m_fill.Timestamp.ToDateTime();
time_entered = m_fill.Timestamp?.ToDateTime() ?? DateTime.MinValue;
security_expiration =
new SecurityExpiration(sec.Exchange, security_type, symbol,
expiration.HasValue ? expiration.Value : DateTime.MinValue);