Beispiel #1
0
 public string ToJson()
 {
     return("{\"Time\":" +
            new JavaScriptSerializer().Serialize(Time) +
            ",\"Id\":\"" +
            Id.ToString() +
            "\",\"Security\":\"" +
            Security.ToString() +
            "\",\"Side\":\"" +
            Side.ToString() +
            "\",\"Quantity\":" +
            Quantity.ToString() +
            ",\"Outstanding\":" +
            Outstanding.ToString() +
            ",\"Price\":" +
            Price.ToString() +
            "}");
 }
Beispiel #2
0
 public string ToJson()
 {
     return("{\"Time\":" +
            new JavaScriptSerializer().Serialize(Time) +
            ",\"Id\":\"" + Id.ToString() +
            "\",\"Security\":\"" +
            Security.ToString() +
            "\",\"BuyId\":\"" +
            BuyId.ToString() +
            "\",\"SellId\":\"" +
            SellId.ToString() +
            "\",\"Quantity\":" +
            Quantity.ToString() +
            ",\"BuyPrice\":" +
            BuyPrice.ToString() +
            ",\"SellPrice\":" +
            SellPrice.ToString() +
            "}");
 }