fix: Add nullcheck in TradeLogRow ctr
This commit is contained in:
1 parent
193b1025ad
commit
19fb08e7ff
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user