Skip to content

Commit

Permalink
Update Trade.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
silahian authored Jun 26, 2024
1 parent 9ae16fc commit 2ac4d9c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions VisualHFT.Commons/Model/Trade.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class Trade
private DateTime _timestamp;
private bool? _isBuy;
private string _flags;

private double _midMarketPrice;

public int ProviderId { get => _providerId; set => _providerId = value; }
public string ProviderName { get => _providerName; set => _providerName = value; }
Expand All @@ -20,7 +20,8 @@ public class Trade
public DateTime Timestamp { get => _timestamp; set => _timestamp = value; }
public bool? IsBuy { get => _isBuy; set => _isBuy = value; }
public string Flags { get => _flags; set => _flags = value; }

public double MarketMidPrice { get => _midMarketPrice; set => _midMarketPrice = value; }

internal void CopyTo(Trade target)
{
if (target == null) throw new ArgumentNullException(nameof(target));
Expand All @@ -35,4 +36,4 @@ internal void CopyTo(Trade target)

}
}
}
}

0 comments on commit 2ac4d9c

Please sign in to comment.