Esempio n. 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() +
            "}");
 }
Esempio n. 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() +
            "}");
 }