17 using System.ComponentModel;
18 using Newtonsoft.Json;
29 [ProtoContract(SkipConstructor =
true)]
32 private decimal _fillPrice;
33 private decimal _fillQuantity;
34 private decimal _quantity;
35 private decimal? _limitPrice;
36 private decimal? _triggerPrice;
37 private decimal? _stopPrice;
38 private decimal? _trailingAmount;
39 private bool? _trailingAsPercentage;
51 public int Id {
get;
set; }
83 get {
return _fillPrice; }
84 set { _fillPrice = value.Normalize(); }
99 get {
return _fillQuantity; }
100 set { _fillQuantity = value.Normalize(); }
118 [DefaultValue(
""), JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
131 [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
135 get {
return _stopPrice; }
140 _stopPrice = value.Value.Normalize();
148 [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
152 get {
return _triggerPrice; }
157 _triggerPrice = value.Value.Normalize();
165 [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
169 get {
return _limitPrice; }
174 _limitPrice = value.Value.Normalize();
185 get {
return _quantity; }
186 set { _quantity = value.Normalize(); }
192 [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
199 [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
203 get {
return _trailingAmount; }
208 _trailingAmount = value.Value.Normalize();
216 [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
220 get {
return _trailingAsPercentage; }
225 _trailingAsPercentage = value.Value;
261 decimal fillQuantity,
340 var symbol =
new Symbol(sid, sid.Symbol);
352 serializedOrderEvent.
Status,