16 using System.ComponentModel;
17 using Newtonsoft.Json;
18 using Newtonsoft.Json.Converters;
31 public virtual string Id => $
"{AlgorithmId}-{OrderId}-{OrderEventId}";
36 [JsonProperty(
"algorithmId")]
42 [JsonProperty(
"orderId")]
48 [JsonProperty(
"orderEventId")]
54 [JsonProperty(
"symbol")]
60 [JsonProperty(PropertyName =
"symbolValue")]
66 [JsonProperty(PropertyName =
"symbolPermtick")]
72 [JsonProperty(
"time")]
73 public double Time {
get;
set; }
78 [JsonProperty(
"status"), JsonConverter(typeof(StringEnumConverter),
true)]
84 [JsonProperty(
"orderFeeAmount", DefaultValueHandling = DefaultValueHandling.Ignore)]
90 [JsonProperty(
"orderFeeCurrency", DefaultValueHandling = DefaultValueHandling.Ignore)]
96 [JsonProperty(
"fillPrice")]
102 [JsonProperty(
"fillPriceCurrency")]
108 [JsonProperty(
"fillQuantity")]
114 [JsonProperty(
"direction"), JsonConverter(typeof(StringEnumConverter),
true)]
120 [DefaultValue(
""), JsonProperty(
"message", DefaultValueHandling = DefaultValueHandling.Ignore)]
126 [JsonProperty(
"isAssignment")]
132 [JsonProperty(
"quantity")]
138 [JsonProperty(
"stopPrice", DefaultValueHandling = DefaultValueHandling.Ignore)]
144 [JsonProperty(
"limitPrice", DefaultValueHandling = DefaultValueHandling.Ignore)]
150 [JsonProperty(
"isInTheMoney", DefaultValueHandling = DefaultValueHandling.Ignore)]
190 #region BackwardsCompatibility
192 [JsonProperty(
"algorithm-id")]
193 string OldAlgorithmId
200 [JsonProperty(
"order-id")]
208 [JsonProperty(
"order-event-id")]
216 [JsonProperty(PropertyName =
"symbol-value")]
217 string OldSymbolValue
224 [JsonProperty(PropertyName =
"symbol-permtick")]
225 string OldSymbolPermtick
232 [JsonProperty(
"order-fee-amount", DefaultValueHandling = DefaultValueHandling.Ignore)]
233 decimal? OldOrderFeeAmount
240 [JsonProperty(
"order-fee-currency", DefaultValueHandling = DefaultValueHandling.Ignore)]
241 string OldOrderFeeCurrency
248 [JsonProperty(
"fill-price")]
256 [JsonProperty(
"fill-price-currency")]
257 string OldFillPriceCurrency
264 [JsonProperty(
"fill-quantity")]
265 decimal OldFillQuantity
272 [JsonProperty(
"is-assignment")]
280 [JsonProperty(
"stop-price", DefaultValueHandling = DefaultValueHandling.Ignore)]
281 decimal? OldStopPrice
288 [JsonProperty(
"limit-price", DefaultValueHandling = DefaultValueHandling.Ignore)]
289 decimal? OldLimitPrice
296 [JsonProperty(
"is-in-the-money", DefaultValueHandling = DefaultValueHandling.Ignore)]