public SymbolRecord(JSONObject body) { this.Ask = (double)body["ask"]; this.Bid = (double)body["bid"]; this.CategoryName = (string)body["categoryName"]; this.Currency = (string)body["currency"]; this.CurrencyPair = (bool)body["currencyPair"]; this.CurrencyProfit = (string)body["currencyProfit"]; this.Description = (string)body["description"]; this.GroupName = (string)body["groupName"]; this.High = (double)body["high"]; this.Leverage = (double)body["leverage"]; this.LotMax = (double)body["lotMax"]; this.LotMin = (double)body["lotMin"]; this.LotStep = (double)body["lotStep"]; this.Low = (double)body["low"]; this.Precision = (int)body["precision"]; this.ContractSize = (int)body["contractSize"]; this.MarginMode = MarginMode.FromCode((int)body["marginMode"]); this.Percentage = (double)body["percentage"]; this.ProfitMode = ProfitMode.FromCode((int)body["profitMode"]); this.QuoteId = (int)body["quoteId"]; this.SpreadRaw = (double)body["spreadRaw"]; this.SpreadTable = (double)body["spreadTable"]; this.StopsLevel = (int)body["stopsLevel"]; this.SwapEnable = (bool)body["swapEnable"]; this.SwapLong = (double)body["swapLong"]; this.SwapShort = (double)body["swapShort"]; this.SwapType = (int)body["swapType"]; this.Symbol = (string)body["symbol"]; this.TickSize = (double?)body["tickSize"]; this.TickValue = (double?)body["tickValue"]; this.Time = (long)body["time"]; this.TimeString = (string)body["timeString"]; this.Type = (int)body["type"]; }