19 using Newtonsoft.Json;
23 using System.Collections.Generic;
45 public string SessionId {
get;
set; } =
string.Empty;
50 public string DeployId {
get;
set; } =
string.Empty;
55 public string CompileId {
get;
set; } =
string.Empty;
95 Log.
Trace($
"LiveResultPacket(): Error converting json: {err}");
118 catch (Exception err) {
131 new Dictionary<string, Chart>(),
new Dictionary<int, Order>(),
new Dictionary<DateTime, decimal>(),
132 new Dictionary<string, Holding>(),
new CashBook(),
new Dictionary<string, string>(),
133 new SortedDictionary<string, string>(),
new List<OrderEvent>(),
new Dictionary<string, string>(),
149 [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
150 public IDictionary<string, Holding>
Holdings {
get;
set; }
166 Cash = _cashBook?.ToDictionary(pair => pair.Key, pair => pair.Value);
175 [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
176 public Dictionary<string, Cash>
Cash {
get;
set; }
181 [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
187 [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]